summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRamneek Mehresh <ramneek.mehresh@freescale.com>2011-08-24 19:22:44 +0530
committerKumar Gala <galak@kernel.crashing.org>2011-09-29 19:01:06 -0500
commit1120ad600be10d4332457d871c98b1fcc61b4a0b (patch)
tree10636954816fa51af7d3c340f6f2923d5c85e087 /include
parent9ec8dec53955a8ad0353df837583d54abf46b166 (diff)
downloadu-boot-imx-1120ad600be10d4332457d871c98b1fcc61b4a0b.zip
u-boot-imx-1120ad600be10d4332457d871c98b1fcc61b4a0b.tar.gz
u-boot-imx-1120ad600be10d4332457d871c98b1fcc61b4a0b.tar.bz2
powerpc/85xx: Fix USB protocol definitions for P1020RDB
USB protocol macros (CONFIG_USB_EHCI ...) to be included only when CONFIG_HAS_FSL_DR_USB is defined for a board. Presence of USB DR controller should be declared along with the underlying protocol used in the controller Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r--include/configs/P1_P2_RDB.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/configs/P1_P2_RDB.h b/include/configs/P1_P2_RDB.h
index 3ffdb1a..043515d 100644
--- a/include/configs/P1_P2_RDB.h
+++ b/include/configs/P1_P2_RDB.h
@@ -581,6 +581,9 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
#endif
#endif
+#define CONFIG_HAS_FSL_DR_USB
+
+#if defined(CONFIG_HAS_FSL_DR_USB)
#define CONFIG_USB_EHCI
#ifdef CONFIG_USB_EHCI
@@ -588,7 +591,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
#define CONFIG_USB_EHCI_FSL
#define CONFIG_USB_STORAGE
-#define CONFIG_HAS_FSL_DR_USB
+#endif
#endif
#if defined(CONFIG_MMC) || defined(CONFIG_USB_EHCI)