Add configuration for cam5200 board (based on TQM5200S).

This commit is contained in:
Wolfgang Denk 2006-07-22 01:20:03 +02:00
parent 048f6b436b
commit 135ae0062f
4 changed files with 14 additions and 12 deletions

View File

@ -2,6 +2,8 @@
Changes since U-Boot 1.1.4: Changes since U-Boot 1.1.4:
====================================================================== ======================================================================
* Add configuration for cam5200 board (based on TQM5200S).
* More code cleanup * More code cleanup
* Disabled kvme080 board in MAKEALL because of build problems. * Disabled kvme080 board in MAKEALL because of build problems.

View File

@ -406,18 +406,18 @@ TQM5200_B_HIGHBOOT_config \
TQM5200S_config \ TQM5200S_config \
TQM5200S_HIGHBOOT_config \ TQM5200S_HIGHBOOT_config \
TQM5200_STK100_config \ TQM5200_STK100_config \
cameron_config \ cam5200_config \
MiniFAP_config: unconfig MiniFAP_config: unconfig
@ >include/config.h @ >include/config.h
@[ -z "$(findstring MiniFAP,$@)" ] || \ @[ -z "$(findstring MiniFAP,$@)" ] || \
{ echo "#define CONFIG_MINIFAP" >>include/config.h ; \ { echo "#define CONFIG_MINIFAP" >>include/config.h ; \
echo "... TQM5200_AC on MiniFAP" ; \ echo "... TQM5200_AC on MiniFAP" ; \
} }
@[ -z "$(findstring cameron,$@)" ] || \ @[ -z "$(findstring cam5200,$@)" ] || \
{ echo "#define CONFIG_CAMERON" >>include/config.h ; \ { echo "#define CONFIG_CAM5200" >>include/config.h ; \
echo "#define CONFIG_TQM5200S" >>include/config.h ; \ echo "#define CONFIG_TQM5200S" >>include/config.h ; \
echo "#define CONFIG_TQM5200_B" >>include/config.h ; \ echo "#define CONFIG_TQM5200_B" >>include/config.h ; \
echo "... TQM5200S on Cameron" ; \ echo "... TQM5200S on Cam5200" ; \
} }
@[ -z "$(findstring STK100,$@)" ] || \ @[ -z "$(findstring STK100,$@)" ] || \
{ echo "#define CONFIG_STK52XX_REV100" >>include/config.h ; \ { echo "#define CONFIG_STK52XX_REV100" >>include/config.h ; \

View File

@ -288,8 +288,8 @@ int checkboard (void)
# define CARRIER_NAME "STK52xx" # define CARRIER_NAME "STK52xx"
#elif defined(CONFIG_TB5200) #elif defined(CONFIG_TB5200)
# define CARRIER_NAME "TB5200" # define CARRIER_NAME "TB5200"
#elif defined(CONFIG_CAMERON) #elif defined(CONFIG_CAM5200)
# define CARRIER_NAME "Cameron" # define CARRIER_NAME "Cam5200"
#else #else
# error "Unknown carrier board" # error "Unknown carrier board"
#endif #endif

View File

@ -37,7 +37,7 @@
#define CONFIG_TQM5200 1 /* ... on TQM5200 module */ #define CONFIG_TQM5200 1 /* ... on TQM5200 module */
#undef CONFIG_TQM5200_REV100 /* define for revision 100 modules */ #undef CONFIG_TQM5200_REV100 /* define for revision 100 modules */
#ifndef CONFIG_CAMERON /* On a Cameron board or ... */ #ifndef CONFIG_CAM5200 /* On a Cameron board or ... */
#define CONFIG_STK52XX 1 /* ... on a STK52XX board */ #define CONFIG_STK52XX 1 /* ... on a STK52XX board */
#endif #endif
@ -132,7 +132,7 @@
#define ADD_USB_CMD 0 #define ADD_USB_CMD 0
#endif #endif
#ifndef CONFIG_CAMERON #ifndef CONFIG_CAM5200
/* POST support */ /* POST support */
#define CONFIG_POST (CFG_POST_MEMORY | \ #define CONFIG_POST (CFG_POST_MEMORY | \
CFG_POST_CPU | \ CFG_POST_CPU | \
@ -218,7 +218,7 @@
"cp.b 200000 FC000000 ${filesize};" \ "cp.b 200000 FC000000 ${filesize};" \
"protect on FC000000 FC05FFFF\0" "protect on FC000000 FC05FFFF\0"
# endif /* CONFIG_TQM5200_B */ # endif /* CONFIG_TQM5200_B */
#elif defined (CONFIG_CAMERON) #elif defined (CONFIG_CAM5200)
# define ENV_UPDT \ # define ENV_UPDT \
"update=protect off FC000000 FC03FFFF;" \ "update=protect off FC000000 FC03FFFF;" \
"erase FC000000 FC03FFFF;" \ "erase FC000000 FC03FFFF;" \
@ -331,7 +331,7 @@
#define CFG_MAX_FLASH_SECT 512 /* max num of sects on one chip */ #define CFG_MAX_FLASH_SECT 512 /* max num of sects on one chip */
#define CFG_FLASH_USE_BUFFER_WRITE 1 #define CFG_FLASH_USE_BUFFER_WRITE 1
#if defined (CONFIG_CAMERON) #if defined (CONFIG_CAM5200)
# define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x00040000) # define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x00040000)
#elif defined(CONFIG_TQM5200_B) #elif defined(CONFIG_TQM5200_B)
# define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x00080000) # define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x00080000)
@ -371,7 +371,7 @@
"8m(misc)," \ "8m(misc)," \
"16m(big-fs)" "16m(big-fs)"
# endif /* CONFIG_TQM5200_B */ # endif /* CONFIG_TQM5200_B */
#elif defined (CONFIG_CAMERON) #elif defined (CONFIG_CAM5200)
# define MTDPARTS_DEFAULT "mtdparts=TQM5200-0:768k(firmware)," \ # define MTDPARTS_DEFAULT "mtdparts=TQM5200-0:768k(firmware)," \
"1792k(kernel)," \ "1792k(kernel)," \
"3584k(small-fs)," \ "3584k(small-fs)," \
@ -421,7 +421,7 @@
# define CFG_RAMBOOT 1 # define CFG_RAMBOOT 1
#endif #endif
#if defined (CONFIG_CAMERON) #if defined (CONFIG_CAM5200)
# define CFG_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */ # define CFG_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */
#elif defined(CONFIG_TQM5200_B) #elif defined(CONFIG_TQM5200_B)
# define CFG_MONITOR_LEN (512 << 10) /* Reserve 512 kB for Monitor */ # define CFG_MONITOR_LEN (512 << 10) /* Reserve 512 kB for Monitor */