forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
kernel/arch/arm/mach-mmp/ttc_dkb.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/arch/arm/mach-mmp/ttc_dkb.c
34 *
45 * Support for the Marvell PXA910-based TTC_DKB Development Platform.
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * publishhed by the Free Software Foundation.
96 */
107
118 #include <linux/init.h>
....@@ -282,6 +279,11 @@
282279 sizeof(struct pxa_gpio_platform_data));
283280 platform_add_devices(ARRAY_AND_SIZE(ttc_dkb_devices));
284281
282
+#if IS_ENABLED(CONFIG_USB_SUPPORT)
283
+#if IS_ENABLED(CONFIG_PHY_PXA_USB)
284
+ platform_device_register(&pxa168_device_usb_phy);
285
+#endif
286
+
285287 #if IS_ENABLED(CONFIG_USB_MV_UDC)
286288 pxa168_device_u2o.dev.platform_data = &ttc_usb_pdata;
287289 platform_device_register(&pxa168_device_u2o);
....@@ -296,6 +298,7 @@
296298 pxa168_device_u2ootg.dev.platform_data = &ttc_usb_pdata;
297299 platform_device_register(&pxa168_device_u2ootg);
298300 #endif
301
+#endif
299302
300303 #if IS_ENABLED(CONFIG_MMP_DISP)
301304 add_disp();