From 4035e3996f903064c91e6e1ce9b1328018c6a9d3 Mon Sep 17 00:00:00 2001 From: "Mathieu J. Poirier" Date: Mon, 14 Feb 2011 14:12:27 -0700 Subject: Adding compilation support for snowball. Signed-off-by: Mathieu Poirier --- Makefile | 9 ++++++++- include/configs/u8500.h | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index beed146ec..55f7f3d62 100644 --- a/Makefile +++ b/Makefile @@ -3157,7 +3157,8 @@ u8500_def_config \ u8500_SRAM_config \ u8500_noconsole_config \ u8500_udc_config \ -u8500_auto_config: +u8500_auto_config \ +u8500_snowball_config: @if [ -z "$(shell grep "steconfig:$@" $(obj)include/config.h 2>/dev/null)" ]; then \ $(MAKE) unconfig ; \ mkdir -p $(obj)include ; \ @@ -3180,6 +3181,12 @@ u8500_auto_config: echo "#define CONFIG_BOOT_SRAM" >> $(obj)include/config.h ; \ echo "TEXT_BASE = 0x40030000" >$(obj)board/st/u8500/config.tmp ; \ fi ; \ + if [ "$(findstring _snowball, $@)" ] ; then \ + echo "#ifndef CONFIG_SKIP_LOWLEVEL_INIT " >> $(obj)include/config.h ; \ + echo "#define CONFIG_SKIP_LOWLEVEL_INIT 1" >> $(obj)include/config.h ; \ + echo "#endif" >> $(obj)include/config.h ; \ + echo "#define CONFIG_SNOWBALL 1" >> $(obj)include/config.h ; \ + fi ; \ $(MKCONFIG) -a u8500 arm arm_cortexa9 u8500 st db8500 ; \ fi diff --git a/include/configs/u8500.h b/include/configs/u8500.h index caa31b9eb..8b31b7542 100644 --- a/include/configs/u8500.h +++ b/include/configs/u8500.h @@ -328,4 +328,24 @@ #define CFG_MCDE_BASE 0xA0350000 #define CFG_DSI_BASE 0xA0351000 +/*----------------------------------------------------------------------- + * Snowball configs, enabled with '#define CONFIG_SNOWBALL' found in + * include/config.h + */ +#ifdef CONFIG_SNOWBALL +#define CONFIG_CMD_DHCP +#define CONFIG_CMD_NET /* bootp, tftpboot, rarpboot */ +#define CONFIG_CMD_NFS /* NFS support */ +#define CONFIG_CMD_PING /* ping support */ + +/* + * Network + */ +#define CONFIG_NET +#define CONFIG_NET_MULTI +#define CONFIG_SMC911X +#define CONFIG_SMC911X_16_BIT +#define CONFIG_SMC911X_BASE (0x5000 << 16) +#endif /* CONFIG_SNOWBALL */ + #endif /* __CONFIG_H */ -- cgit v1.2.3