diff options
Diffstat (limited to 'arch/mips/lantiq/setup.c')
-rw-r--r-- | arch/mips/lantiq/setup.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/mips/lantiq/setup.c b/arch/mips/lantiq/setup.c index 79a2b0c5cc65..9b8af77ed0f9 100644 --- a/arch/mips/lantiq/setup.c +++ b/arch/mips/lantiq/setup.c | |||
@@ -14,6 +14,10 @@ | |||
14 | 14 | ||
15 | #include <lantiq_soc.h> | 15 | #include <lantiq_soc.h> |
16 | 16 | ||
17 | #include "machtypes.h" | ||
18 | #include "devices.h" | ||
19 | #include "prom.h" | ||
20 | |||
17 | void __init plat_mem_setup(void) | 21 | void __init plat_mem_setup(void) |
18 | { | 22 | { |
19 | /* assume 16M as default incase uboot fails to pass proper ramsize */ | 23 | /* assume 16M as default incase uboot fails to pass proper ramsize */ |
@@ -39,3 +43,24 @@ void __init plat_mem_setup(void) | |||
39 | memsize *= 1024 * 1024; | 43 | memsize *= 1024 * 1024; |
40 | add_memory_region(0x00000000, memsize, BOOT_MEM_RAM); | 44 | add_memory_region(0x00000000, memsize, BOOT_MEM_RAM); |
41 | } | 45 | } |
46 | |||
47 | static int __init | ||
48 | lantiq_setup(void) | ||
49 | { | ||
50 | ltq_soc_setup(); | ||
51 | mips_machine_setup(); | ||
52 | return 0; | ||
53 | } | ||
54 | |||
55 | arch_initcall(lantiq_setup); | ||
56 | |||
57 | static void __init | ||
58 | lantiq_generic_init(void) | ||
59 | { | ||
60 | /* Nothing to do */ | ||
61 | } | ||
62 | |||
63 | MIPS_MACHINE(LTQ_MACH_GENERIC, | ||
64 | "Generic", | ||
65 | "Generic Lantiq based board", | ||
66 | lantiq_generic_init); | ||