diff options
author | wdenk <wdenk> | 2004-06-17 18:50:45 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-06-17 18:50:45 +0000 |
commit | 46a414dc12c7809ac3c3e82b6198a1f435d7489f (patch) | |
tree | 1f72a6b74f5f0447ea5369194f7325b1f51092b1 /board/dave/PPChameleonEVB/PPChameleonEVB.c | |
parent | f832d8a1432da791b94b820ccf2c7864708c5631 (diff) | |
download | u-boot-imx-46a414dc12c7809ac3c3e82b6198a1f435d7489f.zip u-boot-imx-46a414dc12c7809ac3c3e82b6198a1f435d7489f.tar.gz u-boot-imx-46a414dc12c7809ac3c3e82b6198a1f435d7489f.tar.bz2 |
* Fix flash parameters passed to Linux for PPChameleon board
* Remove eth_init() from lib_arm/board.c; it's done in net.net.c.
Diffstat (limited to 'board/dave/PPChameleonEVB/PPChameleonEVB.c')
-rw-r--r-- | board/dave/PPChameleonEVB/PPChameleonEVB.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/board/dave/PPChameleonEVB/PPChameleonEVB.c b/board/dave/PPChameleonEVB/PPChameleonEVB.c index 603bb1e..b08b119 100644 --- a/board/dave/PPChameleonEVB/PPChameleonEVB.c +++ b/board/dave/PPChameleonEVB/PPChameleonEVB.c @@ -96,11 +96,15 @@ int misc_init_f (void) return 0; /* dummy implementation */ } +extern flash_info_t flash_info[]; /* info for FLASH chips */ int misc_init_r (void) { -#if 0 /* test-only */ DECLARE_GLOBAL_DATA_PTR; + + /* adjust flash start and size as well as the offset */ + gd->bd->bi_flashstart = 0 - flash_info[0].size; + gd->bd->bi_flashoffset= flash_info[0].size - CFG_MONITOR_LEN; #if 0 volatile unsigned short *fpga_mode = (unsigned short *)((ulong)CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL); @@ -192,8 +196,6 @@ int misc_init_r (void) *duart0_mcr = 0x08; *duart1_mcr = 0x08; #endif -#endif - return (0); } |