]> git.baikalelectronics.ru Git - uboot.git/commitdiff
rockchip: board: change condition board_usb_init() in function
authorJohan Jonker <jbx6244@gmail.com>
Fri, 29 Apr 2022 21:40:07 +0000 (23:40 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 29 Jun 2022 03:28:16 +0000 (11:28 +0800)
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>
arch/arm/mach-rockchip/board.c

index 5304eb055c6dca8722dab976eb422ecbbe55c52f..cbe00d646cc9a12206f4d69e77830df4505eea80 100644 (file)
@@ -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;