aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/lantiq/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/lantiq/setup.c')
-rw-r--r--arch/mips/lantiq/setup.c25
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
17void __init plat_mem_setup(void) 21void __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
47static int __init
48lantiq_setup(void)
49{
50 ltq_soc_setup();
51 mips_machine_setup();
52 return 0;
53}
54
55arch_initcall(lantiq_setup);
56
57static void __init
58lantiq_generic_init(void)
59{
60 /* Nothing to do */
61}
62
63MIPS_MACHINE(LTQ_MACH_GENERIC,
64 "Generic",
65 "Generic Lantiq based board",
66 lantiq_generic_init);