diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-05-09 13:21:19 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-06-12 20:39:52 +0200 |
commit | ad7e8aac6920f8b8a85b3cc2e93bca7458e99aa1 (patch) | |
tree | 4e12ccbf1f69be11f579e6d658c9732296f1adc4 | |
parent | c358d9c3f16571e8f825e81b75eaf32e228cb669 (diff) | |
download | u-boot-imx-ad7e8aac6920f8b8a85b3cc2e93bca7458e99aa1.zip u-boot-imx-ad7e8aac6920f8b8a85b3cc2e93bca7458e99aa1.tar.gz u-boot-imx-ad7e8aac6920f8b8a85b3cc2e93bca7458e99aa1.tar.bz2 |
arm: remove cpu_init
move s3c44b0 to arch_cpu_init and as noone use cpu_init remove it
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-rw-r--r-- | cpu/arm1136/cpu.c | 5 | ||||
-rw-r--r-- | cpu/arm1176/cpu.c | 5 | ||||
-rw-r--r-- | cpu/arm720t/cpu.c | 5 | ||||
-rw-r--r-- | cpu/arm920t/cpu.c | 5 | ||||
-rw-r--r-- | cpu/arm925t/cpu.c | 5 | ||||
-rw-r--r-- | cpu/arm926ejs/cpu.c | 5 | ||||
-rw-r--r-- | cpu/arm946es/cpu.c | 5 | ||||
-rw-r--r-- | cpu/arm_cortexa8/cpu.c | 5 | ||||
-rw-r--r-- | cpu/arm_intcm/cpu.c | 5 | ||||
-rw-r--r-- | cpu/ixp/cpu.c | 5 | ||||
-rw-r--r-- | cpu/lh7a40x/cpu.c | 5 | ||||
-rw-r--r-- | cpu/pxa/cpu.c | 5 | ||||
-rw-r--r-- | cpu/s3c44b0/cpu.c | 2 | ||||
-rw-r--r-- | cpu/sa1100/cpu.c | 5 | ||||
-rw-r--r-- | include/configs/B2.h | 1 | ||||
-rw-r--r-- | lib_arm/board.c | 1 |
16 files changed, 2 insertions, 67 deletions
diff --git a/cpu/arm1136/cpu.c b/cpu/arm1136/cpu.c index 6104f9e..ade7f46 100644 --- a/cpu/arm1136/cpu.c +++ b/cpu/arm1136/cpu.c @@ -37,11 +37,6 @@ static void cache_flush(void); -int cpu_init (void) -{ - return 0; -} - int cleanup_before_linux (void) { /* diff --git a/cpu/arm1176/cpu.c b/cpu/arm1176/cpu.c index fbc8ea8..c59a77b 100644 --- a/cpu/arm1176/cpu.c +++ b/cpu/arm1176/cpu.c @@ -38,11 +38,6 @@ static void cache_flush (void); -int cpu_init (void) -{ - return 0; -} - int cleanup_before_linux (void) { /* diff --git a/cpu/arm720t/cpu.c b/cpu/arm720t/cpu.c index 7a2b9c3..88c71bf 100644 --- a/cpu/arm720t/cpu.c +++ b/cpu/arm720t/cpu.c @@ -40,11 +40,6 @@ static void cache_flush(void); #endif -int cpu_init (void) -{ - return 0; -} - int cleanup_before_linux (void) { /* diff --git a/cpu/arm920t/cpu.c b/cpu/arm920t/cpu.c index e4a8adb..34adb11 100644 --- a/cpu/arm920t/cpu.c +++ b/cpu/arm920t/cpu.c @@ -35,11 +35,6 @@ static void cache_flush(void); -int cpu_init (void) -{ - return 0; -} - int cleanup_before_linux (void) { /* diff --git a/cpu/arm925t/cpu.c b/cpu/arm925t/cpu.c index e48f341..71700bb 100644 --- a/cpu/arm925t/cpu.c +++ b/cpu/arm925t/cpu.c @@ -36,11 +36,6 @@ static void cache_flush(void); -int cpu_init (void) -{ - return 0; -} - int cleanup_before_linux (void) { /* diff --git a/cpu/arm926ejs/cpu.c b/cpu/arm926ejs/cpu.c index 0a32673..5c902df 100644 --- a/cpu/arm926ejs/cpu.c +++ b/cpu/arm926ejs/cpu.c @@ -35,11 +35,6 @@ static void cache_flush(void); -int cpu_init (void) -{ - return 0; -} - int cleanup_before_linux (void) { /* diff --git a/cpu/arm946es/cpu.c b/cpu/arm946es/cpu.c index e0f91d3..c63c98b 100644 --- a/cpu/arm946es/cpu.c +++ b/cpu/arm946es/cpu.c @@ -35,11 +35,6 @@ static void cache_flush(void); -int cpu_init (void) -{ - return 0; -} - int cleanup_before_linux (void) { /* diff --git a/cpu/arm_cortexa8/cpu.c b/cpu/arm_cortexa8/cpu.c index b91cc4f..6fd07d0 100644 --- a/cpu/arm_cortexa8/cpu.c +++ b/cpu/arm_cortexa8/cpu.c @@ -42,11 +42,6 @@ void l2cache_disable(void); static void cache_flush(void); -int cpu_init(void) -{ - return 0; -} - int cleanup_before_linux(void) { unsigned int i; diff --git a/cpu/arm_intcm/cpu.c b/cpu/arm_intcm/cpu.c index 488bd0c..c0748e8 100644 --- a/cpu/arm_intcm/cpu.c +++ b/cpu/arm_intcm/cpu.c @@ -33,11 +33,6 @@ #include <common.h> #include <command.h> -int cpu_init (void) -{ - return 0; -} - int cleanup_before_linux (void) { /* diff --git a/cpu/ixp/cpu.c b/cpu/ixp/cpu.c index 5cfc39d..ce275e5 100644 --- a/cpu/ixp/cpu.c +++ b/cpu/ixp/cpu.c @@ -75,11 +75,6 @@ int print_cpuinfo (void) } #endif /* CONFIG_DISPLAY_CPUINFO */ -int cpu_init (void) -{ - return 0; -} - int cleanup_before_linux (void) { /* diff --git a/cpu/lh7a40x/cpu.c b/cpu/lh7a40x/cpu.c index 3cf0824..b193189 100644 --- a/cpu/lh7a40x/cpu.c +++ b/cpu/lh7a40x/cpu.c @@ -35,11 +35,6 @@ static void cache_flush(void); -int cpu_init (void) -{ - return 0; -} - int cleanup_before_linux (void) { /* diff --git a/cpu/pxa/cpu.c b/cpu/pxa/cpu.c index 8edb44e..800d120 100644 --- a/cpu/pxa/cpu.c +++ b/cpu/pxa/cpu.c @@ -37,11 +37,6 @@ static void cache_flush(void); -int cpu_init (void) -{ - return 0; -} - int cleanup_before_linux (void) { /* diff --git a/cpu/s3c44b0/cpu.c b/cpu/s3c44b0/cpu.c index 7ef4a1f..bca38f8 100644 --- a/cpu/s3c44b0/cpu.c +++ b/cpu/s3c44b0/cpu.c @@ -32,7 +32,7 @@ #include <command.h> #include <asm/hardware.h> -int cpu_init (void) +int arch_cpu_init (void) { icache_enable(); diff --git a/cpu/sa1100/cpu.c b/cpu/sa1100/cpu.c index 39285a0..58e90dc 100644 --- a/cpu/sa1100/cpu.c +++ b/cpu/sa1100/cpu.c @@ -40,11 +40,6 @@ DECLARE_GLOBAL_DATA_PTR; static void cache_flush(void); -int cpu_init (void) -{ - return 0; -} - int cleanup_before_linux (void) { /* diff --git a/include/configs/B2.h b/include/configs/B2.h index 35fad5c..e5439f3 100644 --- a/include/configs/B2.h +++ b/include/configs/B2.h @@ -39,6 +39,7 @@ #define CONFIG_ARM_THUMB 1 /* this is an ARM7TDMI */ #undef CONFIG_ARM7_REVD /* disable ARM720 REV.D Workarounds */ #define CONFIG_SYS_NO_CP15_CACHE +#define CONFIG_ARCH_CPU_INIT #define CONFIG_S3C44B0_CLOCK_SPEED 75 /* we have a 75Mhz S3C44B0*/ diff --git a/lib_arm/board.c b/lib_arm/board.c index d86ed22..e081fbc 100644 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -265,7 +265,6 @@ typedef int (init_fnc_t) (void); int print_cpuinfo (void); init_fnc_t *init_sequence[] = { - cpu_init, /* basic cpu dependent setup */ #if defined(CONFIG_ARCH_CPU_INIT) arch_cpu_init, /* basic arch cpu dependent setup */ #endif |