This patch removes initdram() and testdram() from most esd 405 platforms.
Some boards also have an empty dummy implementation of
misc_init_f(). This is also removed.
Signed-off-by: Matthias Fuchs [EMAIL PROTECTED]
---
board/esd/apc405/apc405.c | 10 --
board/esd/ash405/ash405.c | 23 ---
board/esd/cms700/cms700.c | 21 -
board/esd/cpci2dp/cpci2dp.c | 21 -
board/esd/cpci405/cpci405.c | 19 ---
board/esd/cpciiser4/cpciiser4.c | 19 ---
board/esd/dasa_sim/dasa_sim.c | 20
board/esd/dp405/dp405.c | 36
board/esd/du405/du405.c | 15 ---
board/esd/hh405/hh405.c | 17 -
board/esd/hub405/hub405.c | 18 --
board/esd/ocrtc/ocrtc.c | 32
board/esd/pmc405/pmc405.c | 18 --
board/esd/voh405/voh405.c | 36
board/esd/wuh405/wuh405.c | 21 -
15 files changed, 0 insertions(+), 326 deletions(-)
diff --git a/board/esd/apc405/apc405.c b/board/esd/apc405/apc405.c
index 83657c8..e629fd9 100644
--- a/board/esd/apc405/apc405.c
+++ b/board/esd/apc405/apc405.c
@@ -423,16 +423,6 @@ int checkboard (void)
return 0;
}
-phys_size_t initdram (int board_type)
-{
- unsigned long val;
-
- mtdcr(memcfga, mem_mb0cf);
- val = mfdcr(memcfgd);
-
- return (4*1024*1024 ((val 0x000e) 17));
-}
-
#ifdef CONFIG_IDE_RESET
void ide_set_reset(int on)
{
diff --git a/board/esd/ash405/ash405.c b/board/esd/ash405/ash405.c
index 25360a6..c3710ab 100644
--- a/board/esd/ash405/ash405.c
+++ b/board/esd/ash405/ash405.c
@@ -82,15 +82,6 @@ int board_early_init_f (void)
return 0;
}
-
-/* - */
-
-int misc_init_f (void)
-{
- return 0; /* dummy implementation */
-}
-
-
int misc_init_r (void)
{
volatile unsigned char *duart0_mcr = (unsigned char *)((ulong)DUART0_BA
+ 4);
@@ -205,20 +196,6 @@ int checkboard (void)
return 0;
}
-/* - */
-
-phys_size_t initdram (int board_type)
-{
- unsigned long val;
-
- mtdcr(memcfga, mem_mb0cf);
- val = mfdcr(memcfgd);
-
- return (4*1024*1024 ((val 0x000e) 17));
-}
-
-/* - */
-
void reset_phy(void)
{
#ifdef CONFIG_LXT971_NO_SLEEP
diff --git a/board/esd/cms700/cms700.c b/board/esd/cms700/cms700.c
index ba27c03..806c755 100644
--- a/board/esd/cms700/cms700.c
+++ b/board/esd/cms700/cms700.c
@@ -77,15 +77,6 @@ int board_early_init_f (void)
return 0;
}
-
-/* - */
-
-int misc_init_f (void)
-{
- return 0; /* dummy implementation */
-}
-
-
int misc_init_r (void)
{
/* adjust flash start and offset */
@@ -141,18 +132,6 @@ int checkboard (void)
/* - */
-phys_size_t initdram (int board_type)
-{
- unsigned long val;
-
- mtdcr(memcfga, mem_mb0cf);
- val = mfdcr(memcfgd);
-
- return (4*1024*1024 ((val 0x000e) 17));
-}
-
-/* - */
-
#if defined(CFG_EEPROM_WREN)
/* Input: dev_addr I2C address of EEPROM device to enable.
* state -1: deliver current state
diff --git a/board/esd/cpci2dp/cpci2dp.c b/board/esd/cpci2dp/cpci2dp.c
index 54de0b8..8bc40d5 100644
--- a/board/esd/cpci2dp/cpci2dp.c
+++ b/board/esd/cpci2dp/cpci2dp.c
@@ -67,13 +67,6 @@ int board_early_init_f (void)
return 0;
}
-
-int misc_init_f (void)
-{
- return 0; /* dummy implementation */
-}
-
-
int misc_init_r (void)
{
unsigned long cntrl0Reg;
@@ -115,20 +108,6 @@ int checkboard (void)
return 0;
}
-/* - */
-
-phys_size_t initdram (int board_type)
-{
- unsigned long val;
-
- mtdcr(memcfga, mem_mb0cf);
- val = mfdcr(memcfgd);
-
- return (4*1024*1024 ((val 0x000e) 17));
-}
-
-/* - */
-
#if defined(CFG_EEPROM_WREN)
/* Input: dev_addr I2C address of EEPROM device to enable.
*state -1: deliver current state
diff --git a/board/esd/cpci405/cpci405.c b/board/esd/cpci405/cpci405.c
index b856705..005871c 100644
--- a/board/esd/cpci405/cpci405.c
+++ b/board/esd/cpci405/cpci405.c
@@ -255,11 +255,6 @@ int cpci405_version(void)
}
}
-int misc_init_f (void)
-{
- return 0; /* dummy implementation */
-}
-
int misc_init_r (void)
{