diff mbox series

[v1,3/4] rockchip: board: change condition board_usb_init() in function

Message ID 20220429214008.26977-3-jbx6244@gmail.com
State Accepted
Commit e0479b71ed549e3df79f8cd7aeb7c4b5ad3baa39
Delegated to: Kever Yang
Headers show
Series [v1,1/4] rockchip: usb: gadget: add rk3066 product id | expand

Commit Message

Johan Jonker April 29, 2022, 9:40 p.m. UTC
Change define condition in board_usb_init() function
to allow rk3066/rk3188 to use the USB PHY driver.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---
 arch/arm/mach-rockchip/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kever Yang May 26, 2022, 7:01 a.m. UTC | #1
On 2022/4/30 05:40, Johan Jonker wrote:
> Change define condition in board_usb_init() function
> to allow rk3066/rk3188 to use the USB PHY driver.
>
> Signed-off-by: Johan Jonker <jbx6244@gmail.com>

Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever
> ---
>   arch/arm/mach-rockchip/board.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c
> index 5304eb05..cbe00d64 100644
> --- a/arch/arm/mach-rockchip/board.c
> +++ b/arch/arm/mach-rockchip/board.c
> @@ -90,7 +90,7 @@ int board_usb_init(int index, enum usb_init_type init)
>   	}
>   	otg_data.regs_otg = ofnode_get_addr(node);
>   
> -#ifdef CONFIG_ROCKCHIP_RK3288
> +#ifdef CONFIG_ROCKCHIP_USB2_PHY
>   	int ret;
>   	u32 phandle, offset;
>   	ofnode phy_node;
diff mbox series

Patch

diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c
index 5304eb05..cbe00d64 100644
--- a/arch/arm/mach-rockchip/board.c
+++ b/arch/arm/mach-rockchip/board.c
@@ -90,7 +90,7 @@  int board_usb_init(int index, enum usb_init_type init)
 	}
 	otg_data.regs_otg = ofnode_get_addr(node);
 
-#ifdef CONFIG_ROCKCHIP_RK3288
+#ifdef CONFIG_ROCKCHIP_USB2_PHY
 	int ret;
 	u32 phandle, offset;
 	ofnode phy_node;