diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:01:27 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:01:27 +0200 |
commit | c311b307b195aa1b6fff22b84ff2586280374a16 (patch) | |
tree | 427431b36d8f83aeee28d1eda716dede5d117a4f /board | |
parent | 64705cc4697bd65f39099d465eafee6dc512059c (diff) | |
download | barebox-c311b307b195aa1b6fff22b84ff2586280374a16.tar.gz barebox-c311b307b195aa1b6fff22b84ff2586280374a16.tar.xz |
svn_rev_145
add env spec
Diffstat (limited to 'board')
-rw-r--r-- | board/scb9328/scb9328.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/board/scb9328/scb9328.c b/board/scb9328/scb9328.c index 001342091e..6d92190464 100644 --- a/board/scb9328/scb9328.c +++ b/board/scb9328/scb9328.c @@ -53,34 +53,33 @@ static struct device_d dm9000_dev = { .type = DEVICE_TYPE_ETHER, }; +/* Do not collide with the env from our first stage loader for now */ +static char *env_spec = "nor0:256k+128k"; + static int scb9328_devices_init(void) { register_device(&cfi_dev); register_device(&sdram_dev); register_device(&dm9000_dev); + return 0; } device_initcall(scb9328_devices_init); +static int scb9328_init_env(void) +{ + add_env_spec(env_spec); + return 0; +} + +late_initcall(scb9328_init_env); + static int late_init (void) { #if ( CONFIG_NR_DRAM_BANKS > 0 ) gd->bd->bi_dram[0].start = SCB9328_SDRAM_1; gd->bd->bi_dram[0].size = SCB9328_SDRAM_1_SIZE; #endif -#if ( CONFIG_NR_DRAM_BANKS > 1 ) - gd->bd->bi_dram[1].start = SCB9328_SDRAM_2; - gd->bd->bi_dram[1].size = SCB9328_SDRAM_2_SIZE; -#endif -#if ( CONFIG_NR_DRAM_BANKS > 2 ) - gd->bd->bi_dram[2].start = SCB9328_SDRAM_3; - gd->bd->bi_dram[2].size = SCB9328_SDRAM_3_SIZE; -#endif -#if ( CONFIG_NR_DRAM_BANKS > 3 ) - gd->bd->bi_dram[3].start = SCB9328_SDRAM_4; - gd->bd->bi_dram[3].size = SCB9328_SDRAM_4_SIZE; -#endif - return 0; } |