From: lyz Date: Sat, 12 Jul 2014 11:02:46 +0000 (+0800) Subject: 3036: usb: fix wrong address X-Git-Tag: firefly_0821_release~4916^2~245 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9e0a0fd3582f1879d5cf750819f0a8aac04e48a2;p=firefly-linux-kernel-4.4.55.git 3036: usb: fix wrong address --- diff --git a/arch/arm/boot/dts/rk3036.dtsi b/arch/arm/boot/dts/rk3036.dtsi index 4180765ff889..6bbc3e1ce295 100755 --- a/arch/arm/boot/dts/rk3036.dtsi +++ b/arch/arm/boot/dts/rk3036.dtsi @@ -466,6 +466,7 @@ }; dwc_control_usb: dwc-control-usb@20008000 { compatible = "rockchip,rk3036-dwc-control-usb"; + reg = <0x20008000 0x4>; interrupts = ; interrupt-names = "otg_bvalid"; clocks = <&clk_gates9 13>; diff --git a/drivers/usb/dwc_otg_310/usbdev_rk3036.c b/drivers/usb/dwc_otg_310/usbdev_rk3036.c index a8186c15d99f..b8fe46c40ce6 100755 --- a/drivers/usb/dwc_otg_310/usbdev_rk3036.c +++ b/drivers/usb/dwc_otg_310/usbdev_rk3036.c @@ -111,7 +111,7 @@ static void usb20otg_clock_enable(void *pdata, int enable) static int usb20otg_get_status(int id) { int ret = -1; - u32 soc_status0 = readl(RK_GRF_VIRT + RK3036_GRF_CPU_STATUS0); + u32 soc_status0 = readl(RK_GRF_VIRT + RK3036_GRF_SOC_STATUS0); switch (id) { case USB_STATUS_BVABLID: @@ -292,7 +292,7 @@ static void usb20host_clock_enable(void *pdata, int enable) static int usb20host_get_status(int id) { int ret = -1; - u32 soc_status0 = readl(RK_GRF_VIRT + RK3036_GRF_CPU_STATUS0); + u32 soc_status0 = readl(RK_GRF_VIRT + RK3036_GRF_SOC_STATUS0); switch (id) { case USB_STATUS_BVABLID: