]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
powerpc/85xx: Make inclusion of USB device fixup conditional
authorRamneek Mehresh <ramneek.mehresh@freescale.com>
Tue, 8 Nov 2011 04:51:28 +0000 (10:21 +0530)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 8 Nov 2011 14:36:04 +0000 (08:36 -0600)
Include call to usb device-fixup only when CONFIG_HAS_FSL_DR_USB is
defined for the platform - P1020RDB, P1010RDB, P1020-PC

Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
board/freescale/p1010rdb/p1010rdb.c
board/freescale/p1_p2_rdb/p1_p2_rdb.c
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c

index 03e9da19409163a7e599dba4011bff75e1033548..b9e66f7fa758374dba97032d83492ffcc8cf610f 100644 (file)
@@ -275,7 +275,9 @@ void ft_board_setup(void *blob, bd_t *bd)
 
        fdt_fixup_memory(blob, (u64)base, (u64)size);
 
+#if defined(CONFIG_HAS_FSL_DR_USB)
        fdt_fixup_dr_usb(blob, bd);
+#endif
 
        /* P1014 and it's derivatives don't support CAN and eTSEC3 */
        if (cpu->soc_ver == SVR_P1014 || cpu->soc_ver == SVR_P1014_E) {
index 864b3ce8fb1ed425824a92b6c018c68ee88e777b..cfbae69119872fcff406614afb6ed3bd5f8f06e3 100644 (file)
@@ -264,7 +264,9 @@ void ft_board_setup(void *blob, bd_t *bd)
 
        fdt_fixup_memory(blob, (u64)base, (u64)size);
 
+#if defined(CONFIG_HAS_FSL_DR_USB)
        fdt_fixup_dr_usb(blob, bd);
+#endif
 
 #if defined(CONFIG_SDCARD) || defined(CONFIG_SPIFLASH)
        /* Delete eLBC node as it is muxed with USB2 controller */
index 4671128afd4c23548f7c771b7e63a80720960bc8..a60c5a20a982fdbbe8dfb68654884175788cacec 100644 (file)
@@ -444,6 +444,9 @@ void ft_board_setup(void *blob, bd_t *bd)
        fdt_board_fixup_qe_pins(blob);
 #endif
 #endif
+
+#if defined(CONFIG_HAS_FSL_DR_USB)
        fdt_fixup_dr_usb(blob, bd);
+#endif
 }
 #endif