From: John Crispin Date: Wed, 6 Jul 2011 10:36:47 +0000 (+0000) Subject: add support for gigaset SX76X to uboot-lantiq X-Git-Tag: reboot~16330 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8a5ec4142f3d5fad5f18d4e5c57c38a24708116f;p=openwrt%2Fstaging%2Fnoltari.git add support for gigaset SX76X to uboot-lantiq SVN-Revision: 27488 --- diff --git a/package/uboot-lantiq/Makefile b/package/uboot-lantiq/Makefile index f13395f684..943132c60a 100644 --- a/package/uboot-lantiq/Makefile +++ b/package/uboot-lantiq/Makefile @@ -45,6 +45,9 @@ Package/uboot-lantiq-easy50812_DDR166M_ramboot=$(call Package/uboot-lantiq-templ DDR_CONFIG_easy50712_DDR166M_ramboot:=easy50712_DDR166M DDR_CONFIG_easy50812_DDR166M_ramboot:=easy50812 +#Siemens +Package/uboot-lantiq-gigaSX76X_DDRsamsung166=$(call Package/uboot-lantiq-template,gigaSX76X_DDRsamsung166,NOR) + #Arcadyan Package/uboot-lantiq-arv3527P_flash=$(call Package/uboot-lantiq-template,arv3527P_flash,NOR) Package/uboot-lantiq-arv3527P_ramboot=$(call Package/uboot-lantiq-template,arv3527P_ramboot,RAM) @@ -137,6 +140,7 @@ $(eval $(call BuildPackage,uboot-lantiq-easy50712_DDR166M)) $(eval $(call BuildPackage,uboot-lantiq-easy50712_DDR166M_ramboot)) $(eval $(call BuildPackage,uboot-lantiq-easy50812_DDR166M)) $(eval $(call BuildPackage,uboot-lantiq-easy50812_DDR166M_ramboot)) +$(eval $(call BuildPackage,uboot-lantiq-gigaSX76X_DDRsamsung166)) #$(eval $(call BuildPackage,uboot-lantiq-arv3527P_flash)) #$(eval $(call BuildPackage,uboot-lantiq-arv3527P_brnboot)) #$(eval $(call BuildPackage,uboot-lantiq-arv3527P_ramboot)) diff --git a/package/uboot-lantiq/files/board/infineon/easy50712/danube.c b/package/uboot-lantiq/files/board/infineon/easy50712/danube.c index 0b33a3ad4c..51b7577edb 100644 --- a/package/uboot-lantiq/files/board/infineon/easy50712/danube.c +++ b/package/uboot-lantiq/files/board/infineon/easy50712/danube.c @@ -180,6 +180,7 @@ int checkboard (void) switch (part_num) { case 0x129: + case 0x12B: case 0x12D: puts("Danube/Twinpass/Vinax-VE "); break; @@ -233,6 +234,19 @@ static int external_switch_init(void) unsigned short chipid0=0xdead, chipid1=0xbeef; static char * const name = "lq_cpe_eth"; +#ifdef CONFIG_SWITCH_PORT0 + *DANUBE_GPIO_P0_ALTSEL0 &= ~(1<$(obj)board/infineon/easy50712/config.tmp ; \ ++ echo "#define CONFIG_SYS_RAMBOOT" >>$(obj)include/config.h ; \ ++ $(XECHO) "... with ramboot configuration" ; \ ++ } ++ @if [ "$(findstring _DDR,$@)" -a -z "$(findstring ramboot,$@)" ] ; then \ ++ echo "#define CONFIG_USE_DDR_RAM" >>$(obj)include/config.h ; \ ++ echo "#define CONFIG_BOOTSTRAP" >>$(obj)include/config.h ; \ ++ DDR=$(subst DDR,,$(filter DDR%,$(subst _, ,$@))); \ ++ case "$${DDR}" in \ ++ 111M|166M|e111M|e166M|promos400|samsung166|psc166) \ ++ $(XECHO) "... with DDR RAM config $${DDR}" ; \ ++ echo "#define CONFIG_USE_DDR_RAM_CFG_$${DDR}" >>$(obj)include/config.h ;; \ ++ *) $(XECHO) "... DDR RAM config \\\"$${DDR}\\\" unknown, use default"; \ ++ esac; \ ++ fi ++ echo "#define CONFIG_SWITCH_PORT1 1" >>$(obj)include/config.h ++ echo "#define CONFIG_SWITCH_PIN 3" >>$(obj)include/config.h ++ echo "#define CONFIG_BUTTON_PORT0 1" >>$(obj)include/config.h ++ echo "#define CONFIG_BUTTON_PIN 14" >>$(obj)include/config.h ++ echo "#define CONFIG_BUTTON_LEVEL 1" >>$(obj)include/config.h ++ @$(MKCONFIG) -a easy50712 mips mips easy50712 infineon danube ++ + easy50712%config : unconfig + @mkdir -p $(obj)include + @mkdir -p $(obj)board/infineon/easy50712