aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/lemote/lm2e/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/lemote/lm2e/setup.c')
-rw-r--r--arch/mips/lemote/lm2e/setup.c34
1 files changed, 1 insertions, 33 deletions
diff --git a/arch/mips/lemote/lm2e/setup.c b/arch/mips/lemote/lm2e/setup.c
index 79dae630611a..03578cf0ee7e 100644
--- a/arch/mips/lemote/lm2e/setup.c
+++ b/arch/mips/lemote/lm2e/setup.c
@@ -26,37 +26,16 @@
26 * 675 Mass Ave, Cambridge, MA 02139, USA. 26 * 675 Mass Ave, Cambridge, MA 02139, USA.
27 * 27 *
28 */ 28 */
29#include <linux/bootmem.h>
30#include <linux/init.h> 29#include <linux/init.h>
31#include <linux/irq.h> 30#include <linux/module.h>
32 31
33#include <asm/bootinfo.h>
34#include <asm/mc146818-time.h>
35#include <asm/time.h>
36#include <asm/wbflush.h> 32#include <asm/wbflush.h>
37#include <asm/mach-lemote/pci.h>
38 33
39#ifdef CONFIG_VT 34#ifdef CONFIG_VT
40#include <linux/console.h> 35#include <linux/console.h>
41#include <linux/screen_info.h> 36#include <linux/screen_info.h>
42#endif 37#endif
43 38
44unsigned long cpu_clock_freq;
45unsigned long bus_clock;
46unsigned int memsize;
47unsigned int highmemsize = 0;
48
49void __init plat_time_init(void)
50{
51 /* setup mips r4k timer */
52 mips_hpt_frequency = cpu_clock_freq / 2;
53}
54
55unsigned long read_persistent_clock(void)
56{
57 return mc146818_get_cmos_time();
58}
59
60void (*__wbflush)(void); 39void (*__wbflush)(void);
61EXPORT_SYMBOL(__wbflush); 40EXPORT_SYMBOL(__wbflush);
62 41
@@ -73,18 +52,8 @@ static void wbflush_loongson2e(void)
73 52
74void __init plat_mem_setup(void) 53void __init plat_mem_setup(void)
75{ 54{
76 set_io_port_base((unsigned long)ioremap(LOONGSON2E_IO_PORT_BASE,
77 IO_SPACE_LIMIT - LOONGSON2E_PCI_IO_START + 1));
78
79 __wbflush = wbflush_loongson2e; 55 __wbflush = wbflush_loongson2e;
80 56
81 add_memory_region(0x0, (memsize << 20), BOOT_MEM_RAM);
82#ifdef CONFIG_64BIT
83 if (highmemsize > 0) {
84 add_memory_region(0x20000000, highmemsize << 20, BOOT_MEM_RAM);
85 }
86#endif
87
88#ifdef CONFIG_VT 57#ifdef CONFIG_VT
89#if defined(CONFIG_VGA_CONSOLE) 58#if defined(CONFIG_VGA_CONSOLE)
90 conswitchp = &vga_con; 59 conswitchp = &vga_con;
@@ -104,5 +73,4 @@ void __init plat_mem_setup(void)
104 conswitchp = &dummy_con; 73 conswitchp = &dummy_con;
105#endif 74#endif
106#endif 75#endif
107
108} 76}