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

Message ID 20230226132234.31949-2-abbaraju.manojsai@amarulasolutions.com
State New
Headers show
Series
  • [v2,1/3] arm: dts: rockchip: rk3566: Enable USB OTG for Radxa CM3
Related show

Commit Message

Manoj Sai Feb. 26, 2023, 1:22 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>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
---
Changes for v2:-
- None
---
 arch/arm/mach-rockchip/board.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Kever Yang April 14, 2023, 9:07 a.m. UTC | #1
Hi Manoj,

This functions has been update, please check the latest version.


Thanks,

- Kever

On 2023/2/26 21:22, Manoj Sai 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>
> ---
> Changes for v2:-
> - None
> ---
>   arch/arm/mach-rockchip/board.c | 3 +++
>   1 file changed, 3 insertions(+)
>
> 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 */
FUKAUMI Naoki May 30, 2023, 5:51 a.m. UTC | #2
hi,

could you tell me current status of this patch?

--
FUKAUMI Naoki

On 2/26/23 22:22, Manoj Sai 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>
> ---
> Changes for v2:-
> - None
> ---
>   arch/arm/mach-rockchip/board.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> 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 */

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 */