[2/3] rockchip: rk356x: update the dwc3_device register offset

Message ID 20230223163553.647775-3-abbaraju.manojsai@amarulasolutions.com
State New
Headers show
Series
  • USB OTG support for radxa cm3 IO board
Related show

Commit Message

Manoj Sai Feb. 23, 2023, 4:35 p.m. UTC
update the dwc3_device register offset in board_usb_init()
for rk3568 platforms.

Signed-off-by: Manoj Sai <abbaraju.manojsai@amarulasolutions.com>
---
 arch/arm/mach-rockchip/board.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jagan Teki Feb. 24, 2023, 7:24 a.m. UTC | #1
On Thu, Feb 23, 2023 at 10:06 PM Manoj Sai
<abbaraju.manojsai@amarulasolutions.com> wrote:
>
> update the dwc3_device register offset in board_usb_init()
> for rk3568 platforms.
>
> Signed-off-by: Manoj Sai <abbaraju.manojsai@amarulasolutions.com>
> ---

Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>

Patch

diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c
index f1f70c81d0..c7729c966a 100644
--- a/arch/arm/mach-rockchip/board.c
+++ b/arch/arm/mach-rockchip/board.c
@@ -300,6 +300,9 @@  int usb_gadget_handle_interrupts(int index)
 
 int board_usb_init(int index, enum usb_init_type init)
 {
+	if (IS_ENABLED(CONFIG_ROCKCHIP_RK3568))
+		dwc3_device_data.base = 0xfcc00000;
+
 	return dwc3_uboot_init(&dwc3_device_data);
 }
 #endif /* CONFIG_USB_DWC3_GADGET */