diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-09-26 18:55:07 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-09-27 10:27:18 +0200 |
commit | d01070c8af7588337fd79bc37d63a8de6435d771 (patch) | |
tree | c52187758b7e99841cd4cb5c4c6f30131364a105 /arch/ppc/boards | |
parent | bbbfb9f4f8a4951137ccd8495b97dfee927e7d80 (diff) | |
download | barebox-d01070c8af7588337fd79bc37d63a8de6435d771.tar.gz barebox-d01070c8af7588337fd79bc37d63a8de6435d771.tar.xz |
remove EARLY_INIT and EARLY_CONSOLE support
Bitrotted over time and nearly unused, so remove it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc/boards')
-rw-r--r-- | arch/ppc/boards/pcm030/barebox.lds.S | 4 | ||||
-rw-r--r-- | arch/ppc/boards/pcm030/pcm030.c | 13 |
2 files changed, 2 insertions, 15 deletions
diff --git a/arch/ppc/boards/pcm030/barebox.lds.S b/arch/ppc/boards/pcm030/barebox.lds.S index 21bf4a75c7..4aacfc5f12 100644 --- a/arch/ppc/boards/pcm030/barebox.lds.S +++ b/arch/ppc/boards/pcm030/barebox.lds.S @@ -111,10 +111,6 @@ SECTIONS __usymtab : { BAREBOX_SYMS } __usymtab_end = .; - __early_init_data_begin = .; - .early_init_data : { *(.early_init_data) } - __early_init_data_end = .; - __start___ex_table = .; __ex_table : { *(__ex_table) } __stop___ex_table = .; diff --git a/arch/ppc/boards/pcm030/pcm030.c b/arch/ppc/boards/pcm030/pcm030.c index d3b7094b4d..f408c3d031 100644 --- a/arch/ppc/boards/pcm030/pcm030.c +++ b/arch/ppc/boards/pcm030/pcm030.c @@ -35,7 +35,7 @@ #include <types.h> #include <partition.h> #include <memory.h> -#include <reloc.h> +#include <sizes.h> static struct mpc5xxx_fec_platform_data fec_info = { .xcv_type = MII100, @@ -68,15 +68,6 @@ static int console_init(void) console_initcall(console_init); -void *get_early_console_base(const char *name) -{ - if (!strcmp(name, RELOC("psc3"))) - return (void *)MPC5XXX_PSC3; - if (!strcmp(name, RELOC("psc6"))) - return (void *)MPC5XXX_PSC6; - return NULL; -} - #include "mt46v32m16-75.h" static void sdram_start (int hi_addr) @@ -131,7 +122,7 @@ long int initdram (int board_type) ulong test1, test2; - if ((ulong)RELOC(initdram) > (2 << 30)) { + if (get_pc() > SZ_128M) { /* setup SDRAM chip selects */ *(vu_long *)MPC5XXX_SDRAM_CS0CFG = 0x0000001b;/* 256MB at 0x0 */ *(vu_long *)MPC5XXX_SDRAM_CS1CFG = 0x10000000;/* disabled */ |