This patch adds support for the Micronas VCT board series.
Currently the following platforms are supported:

  vct_premium
  vct_premium_small
  vct_premium_onenand
  vct_premium_onenand_small
  vct_platinum
  vct_platinum_small
  vct_platinum_onenand
  vct_platinum_onenand_small
  vct_platinumavc
  vct_platinumavc_small
  vct_platinumavc_onenand
  vct_platinumavc_onenand_small

One speciality of the VCT board is that it can't access NOR FLASH
memory-mapped. It has to use special access functions for this.

Signed-off-by: Stefan Roese <[email protected]>
---
 MAINTAINERS |    4 ++++
 MAKEALL     |   12 ++++++++++++
 Makefile    |   35 +++++++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index 127604b..a91f427 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -659,6 +659,10 @@ Thomas Lange <[email protected]>
 Vlad Lungu <[email protected]>
        qemu_mips       MIPS32
 
+Stefan Roese <[email protected]>
+
+       vct_xxx         MIPS32 4Kc
+
 #########################################################################
 # Nios-32 Systems:                                                     #
 #                                                                      #
diff --git a/MAKEALL b/MAKEALL
index a16549c..94dc505 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -610,6 +610,18 @@ LIST_arm="         \
 LIST_mips4kc="         \
        incaip          \
        qemu_mips       \
+       vct_platinum    \
+       vct_platinum_small      \
+       vct_platinum_onenand    \
+       vct_platinum_onenand_small      \
+       vct_platinumavc \
+       vct_platinumavc_small   \
+       vct_platinumavc_onenand \
+       vct_platinumavc_onenand_small   \
+       vct_premium     \
+       vct_premium_small       \
+       vct_premium_onenand     \
+       vct_premium_onenand_small       \
 "
 
 LIST_mips5kc="         \
diff --git a/Makefile b/Makefile
index 1fe9e20..0c6dd8f 100644
--- a/Makefile
+++ b/Makefile
@@ -3005,6 +3005,41 @@ incaip_config: unconfig
 tb0229_config: unconfig
        @$(MKCONFIG) $(@:_config=) mips mips tb0229
 
+vct_premium_config             \
+vct_premium_small_config       \
+vct_premium_onenand_config     \
+vct_premium_onenand_small_config \
+vct_platinum_config            \
+vct_platinum_small_config      \
+vct_platinum_onenand_config    \
+vct_platinum_onenand_small_config \
+vct_platinumavc_config         \
+vct_platinumavc_small_config   \
+vct_platinumavc_onenand_config \
+vct_platinumavc_onenand_small_config: unconfig
+       @mkdir -p $(obj)include
+       @if [ "$(findstring _premium,$@)" ] ; then \
+               echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h ; \
+               $(XECHO) "... on Premium board variant" ; \
+       fi
+       @if [ "$(findstring _platinum_,$@)" ] ; then \
+               echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h ; \
+               $(XECHO) "... on Platinum board variant" ; \
+       fi
+       @if [ "$(findstring _platinumavc,$@)" ] ; then \
+               echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h 
; \
+               $(XECHO) "... on PlatinumAVC board variant" ; \
+       fi
+       @if [ "$(findstring _onenand,$@)" ] ; then \
+               echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h ; \
+               $(XECHO) "... on OneNAND board variant" ; \
+       fi
+       @if [ "$(findstring _small,$@)" ] ; then \
+               echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h 
; \
+               $(XECHO) "... stripped down image variant" ; \
+       fi
+       @$(MKCONFIG) -a vct mips mips vct micronas
+
 #########################################################################
 ## MIPS32 AU1X00
 #########################################################################
-- 
1.6.0.5

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to