From 46a414dc12c7809ac3c3e82b6198a1f435d7489f Mon Sep 17 00:00:00 2001 From: wdenk Date: Thu, 17 Jun 2004 18:50:45 +0000 Subject: * Fix flash parameters passed to Linux for PPChameleon board * Remove eth_init() from lib_arm/board.c; it's done in net.net.c. --- board/dave/PPChameleonEVB/PPChameleonEVB.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'board/dave/PPChameleonEVB/PPChameleonEVB.c') diff --git a/board/dave/PPChameleonEVB/PPChameleonEVB.c b/board/dave/PPChameleonEVB/PPChameleonEVB.c index 603bb1e12a..b08b119600 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); } -- cgit v1.2.3