summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-03-11 06:50:01 +0000
committerTom Rini <trini@ti.com>2013-03-15 16:14:00 -0400
commit660c60c4e70c1f8369e7fc4e23b3bc10e01f1199 (patch)
treeb6db87d77f0c533d49b8e472e77d3ddb42b6d14f /arch/powerpc/include/asm
parentc2240d4dbef98f0bc5f5e99324d1eef8d6e9acdf (diff)
downloadu-boot-imx-660c60c4e70c1f8369e7fc4e23b3bc10e01f1199.zip
u-boot-imx-660c60c4e70c1f8369e7fc4e23b3bc10e01f1199.tar.gz
u-boot-imx-660c60c4e70c1f8369e7fc4e23b3bc10e01f1199.tar.bz2
ppc: Enable generic board support
This enables generic board support so that ppc boards can define CONFIG_SYS_GENERIC_BOARD. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r--arch/powerpc/include/asm/u-boot.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/u-boot.h b/arch/powerpc/include/asm/u-boot.h
index 7229a98..cf972d2 100644
--- a/arch/powerpc/include/asm/u-boot.h
+++ b/arch/powerpc/include/asm/u-boot.h
@@ -34,6 +34,11 @@
* include/asm-ppc/u-boot.h
*/
+#ifdef CONFIG_SYS_GENERIC_BOARD
+/* Use the generic board which requires a unified bd_info */
+#include <asm-generic/u-boot.h>
+#else
+
#ifndef __ASSEMBLY__
typedef struct bd_info {
@@ -144,6 +149,8 @@ typedef struct bd_info {
#endif /* __ASSEMBLY__ */
+#endif /* !CONFIG_SYS_GENERIC_BOARD */
+
/* For image.h:image_check_target_arch() */
#define IH_ARCH_DEFAULT IH_ARCH_PPC