summaryrefslogtreecommitdiff
path: root/cleopatre/u-boot-1.1.6/common
diff options
context:
space:
mode:
authorsave2009-08-04 16:16:07 +0000
committersave2009-08-04 16:16:07 +0000
commitc9c35f0760406568dcb2bf2f8360cd2f3c5c4f79 (patch)
tree260bb619a8b2128d8bc799b70350d88a32d0282c /cleopatre/u-boot-1.1.6/common
parenta3d7edaf9f56cad0b174c81e505555ae7b5f89b6 (diff)
[CLEO][U-BOOT][KERNEL]Added parameters exchange
- Added the plc code size parameter - Changed nvram_addr field to nvram_offset (offset is better to remap nvram address) git-svn-id: svn+ssh://pessac/svn/cesar/trunk@5154 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cleopatre/u-boot-1.1.6/common')
-rw-r--r--cleopatre/u-boot-1.1.6/common/cmd_spidboot.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cleopatre/u-boot-1.1.6/common/cmd_spidboot.c b/cleopatre/u-boot-1.1.6/common/cmd_spidboot.c
index df86862875..65db1df627 100644
--- a/cleopatre/u-boot-1.1.6/common/cmd_spidboot.c
+++ b/cleopatre/u-boot-1.1.6/common/cmd_spidboot.c
@@ -129,13 +129,14 @@ static void setup_commandline_tag (bd_t *bd, char *commandline)
#ifdef CONFIG_SPC300_TAG
-void setup_spc300_tag (bd_t *bd, struct tag **tmp)
+void setup_spc300_tag (bd_t *bd, spidcom_image_desc_t *hdr, struct tag **tmp)
{
struct tag *params = *tmp;
params->hdr.tag = ATAG_SPC300;
params->hdr.size = tag_size(tag_spc300);
- params->u.spc300.nvram_addr = bd->bi_nvram_addr;
+ params->u.spc300.nvram_offset = bd->bi_nvram_addr - PHYS_FLASH_SPI_1;
+ params->u.spc300.plccode_size = hdr->plc_ram;
params = tag_next (params);
*tmp = params;
}
@@ -622,7 +623,7 @@ int do_spidboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
setup_commandline_tag (bd, commandline);
#endif
#ifdef CONFIG_SPC300_TAG
- setup_spc300_tag (bd, &params);
+ setup_spc300_tag (bd, hdr, &params);
#endif
setup_end_tag (bd);
#endif