Kconfig and make files are updated to build the Freescale P1022DS
image.

Signed-off-by: Renaud Barbier <[email protected]>
---
 arch/ppc/Makefile             |  1 +
 arch/ppc/mach-mpc85xx/Kconfig | 32 ++++++++++++++++++++++++--------
 2 files changed, 25 insertions(+), 8 deletions(-)

diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile
index 87be193..b9b355a 100644
--- a/arch/ppc/Makefile
+++ b/arch/ppc/Makefile
@@ -13,6 +13,7 @@ endif
 
 board-$(CONFIG_MACH_PHYCORE_MPC5200B_TINY)     := pcm030
 board-$(CONFIG_P2020RDB)                       := freescale-p2020rdb
+board-$(CONFIG_P1022DS)                                := freescale-p1022ds
 board-$(CONFIG_DA923RC)                                := geip-da923rc
 
 machine-$(CONFIG_ARCH_MPC5200)                 := mpc5xxx
diff --git a/arch/ppc/mach-mpc85xx/Kconfig b/arch/ppc/mach-mpc85xx/Kconfig
index d02cf9b..ec5f04c 100644
--- a/arch/ppc/mach-mpc85xx/Kconfig
+++ b/arch/ppc/mach-mpc85xx/Kconfig
@@ -1,7 +1,7 @@
 if ARCH_MPC85XX
 
 config MMU
-       default y if CMD_MEMTEST
+       default y
 
 config BTB
        bool
@@ -9,13 +9,13 @@ config BTB
 
 config TEXT_BASE
        hex
-       default 0xeff80000 if P2020RDB
+       default 0xeff80000 if P2020RDB || P1022DS
        default 0xfff80000 if DA923RC
 
 config RESET_VECTOR_ADDRESS
        hex
        default 0xfffffffc if DA923RC
-       default 0xeffffffc if P2020RDB
+       default 0xeffffffc if P2020RDB || P1022DS
 
 config MPC85xx
        bool
@@ -37,6 +37,11 @@ config P2020RDB
        help
          Say Y here if you are using the Freescale P2020RDB
 
+config P1022DS
+       bool "P1022DS"
+       help
+         Say Y here if you are using the Freescale P1022DS
+
 config DA923RC
        bool "DA923RC"
        help
@@ -44,22 +49,33 @@ config DA923RC
 endchoice
 endif
 
+config FSL_ELBC
+       bool
+       default y if P2020RDB || P1022DS
+
+config DDR_SPD
+       bool
+       select CRC16
+       default y if DA923RC || P1022DS
+
 if P2020RDB
 config P2020
        bool
        default y
+endif
 
-config FSL_ELBC
+if P1022DS
+config P1022
        bool
        default y
-endif
 
-if DA923RC
-config MPC8544
+config FSL_DDR3
        bool
        default y
+endif
 
-config DDR_SPD
+if DA923RC
+config MPC8544
        bool
        default y
 
-- 
1.8.4.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to