diff options
author | John Crispin <blogic@openwrt.org> | 2011-03-30 03:27:54 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-05-19 04:55:42 -0400 |
commit | a053ac17024561f3a2fd02424b5f92823282b5ad (patch) | |
tree | 9ba6edcc538061425bf7972b92fd380ca3eb6120 /arch/mips/lantiq/setup.c | |
parent | 24aff71fa8df0d6a73dab17f3f2285a24b8f658f (diff) |
MIPS: Lantiq: Add mips_machine support
This patch adds support for Gabor's mips_machine patch.
Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Ralph Hempel <ralph.hempel@lantiq.com>
Cc: Gabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2251/
Patchwork: https://patchwork.linux-mips.org/patch/2358/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
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); | ||