SX1 update
Hi,
The following patchset will update the u-boot support for the Siemens SX1 cellphone sell on the market
Best Regards,
J.
PATCH 1/3 SX1: add CONFIG_STDOUT_USBTTY to enable preboot stdout redirect to usbtty
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
--- Makefile | 13 +++++++++++-- include/configs/SX1.h | 2 ++ 2 files changed, 13 insertions(+), 2 deletions(-)
Makefile +11 -2
@@ -2820,8 +2820,17 @@ smdk2400_config : unconfig smdk2410_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 samsung s3c24x0 -SX1_config : unconfig - @$(MKCONFIG) $(@:_config=) arm arm925t sx1 +SX1_stdout_serial_config \ +SX1_config: unconfig + @mkdir -p $(obj)include + @if [ "$(findstring _stdout_serial_, $@)" ] ; then \ + echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ + $(XECHO) "... configured for stdout serial"; \ + else \ + echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ + $(XECHO) "... configured for stdout usbtty"; \ + fi; + @$(MKCONFIG) SX1 arm arm925t sx1 # TRAB default configuration: 8 MB Flash, 32 MB RAM xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
include/configs/SX1.h +2 -0
@@ -116,7 +116,9 @@#include <configs/omap1510.h> #define CONFIG_BOOTARGS "mem=16M console=ttyS0,115200n8 root=/dev/mtdblock3 rw" +#ifdef CONFIG_STDOUT_USBTTY #define CONFIG_PREBOOT "setenv stdout usbtty;setenv stdin usbtty" +#endif /* * Miscellaneous configurable options
Signature · 1 line
1.5.6.5
PATCH 2/3 SX1: Fix second flash mapping
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
--- include/configs/SX1.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/configs/SX1.h +1 -1
@@ -177,7 +177,7 @@#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + PHYS_FLASH_SECT_SIZE)/* addr of environment */ #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE/* Monitor at beginning of flash */ #define CONFIG_SYS_MONITOR_LEN PHYS_FLASH_SECT_SIZE/* Reserve 1 sector */ -#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE + PHYS_FLASH_SIZE } +#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE, PHYS_FLASH_2 }/*----------------------------------------------------------------------- * FLASH driver setup
Signature · 1 line
1.5.6.5
PATCH 3/3 SX1: add hardware V2 support
In the V2 the 2 flash has been replace by one 32MB flash
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
--- include/configs/SX1.h | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
include/configs/SX1.h +6 -2
@@ -169,11 +169,15 @@/*----------------------------------------------------------------------- * FLASH and environment organization +* V1 +* PHYS_FLASH_SIZE_1 (16 << 10) 16 MB +* PHYS_FLASH_SIZE_2 (8 << 10) 8 MB +* V2 only 1 flash +* PHYS_FLASH_SIZE_1 (32 << 10) 32 MB */ #define CONFIG_SYS_MAX_FLASH_BANKS 2/* max number of memory banks */ -#define PHYS_FLASH_SIZE (16 << 10)/* 16 MB */ #define PHYS_FLASH_SECT_SIZE (128*1024)/* Size of a sector (128kB) */ -#define CONFIG_SYS_MAX_FLASH_SECT (128)/* max number of sectors on one chip */ +#define CONFIG_SYS_MAX_FLASH_SECT (256)/* max number of sectors on one chip */ #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + PHYS_FLASH_SECT_SIZE)/* addr of environment */ #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE/* Monitor@beginning of flash */ #define CONFIG_SYS_MONITOR_LEN PHYS_FLASH_SECT_SIZE/* Reserve 1 sector */
Signature · 1 line
1.5.6.5