diff options
Diffstat (limited to 'arch/mips/txx9/jmr3927')
-rw-r--r-- | arch/mips/txx9/jmr3927/irq.c | 4 | ||||
-rw-r--r-- | arch/mips/txx9/jmr3927/prom.c | 12 | ||||
-rw-r--r-- | arch/mips/txx9/jmr3927/setup.c | 22 |
3 files changed, 7 insertions, 31 deletions
diff --git a/arch/mips/txx9/jmr3927/irq.c b/arch/mips/txx9/jmr3927/irq.c index 68f74368ddec..6ec626c9473f 100644 --- a/arch/mips/txx9/jmr3927/irq.c +++ b/arch/mips/txx9/jmr3927/irq.c | |||
@@ -30,15 +30,11 @@ | |||
30 | * 675 Mass Ave, Cambridge, MA 02139, USA. | 30 | * 675 Mass Ave, Cambridge, MA 02139, USA. |
31 | */ | 31 | */ |
32 | #include <linux/init.h> | 32 | #include <linux/init.h> |
33 | #include <linux/sched.h> | ||
34 | #include <linux/types.h> | 33 | #include <linux/types.h> |
35 | #include <linux/interrupt.h> | 34 | #include <linux/interrupt.h> |
36 | 35 | ||
37 | #include <asm/io.h> | 36 | #include <asm/io.h> |
38 | #include <asm/mipsregs.h> | 37 | #include <asm/mipsregs.h> |
39 | #include <asm/system.h> | ||
40 | |||
41 | #include <asm/processor.h> | ||
42 | #include <asm/txx9/generic.h> | 38 | #include <asm/txx9/generic.h> |
43 | #include <asm/txx9/jmr3927.h> | 39 | #include <asm/txx9/jmr3927.h> |
44 | 40 | ||
diff --git a/arch/mips/txx9/jmr3927/prom.c b/arch/mips/txx9/jmr3927/prom.c index 2cadb423face..23df38c1490e 100644 --- a/arch/mips/txx9/jmr3927/prom.c +++ b/arch/mips/txx9/jmr3927/prom.c | |||
@@ -36,6 +36,7 @@ | |||
36 | * 675 Mass Ave, Cambridge, MA 02139, USA. | 36 | * 675 Mass Ave, Cambridge, MA 02139, USA. |
37 | */ | 37 | */ |
38 | #include <linux/init.h> | 38 | #include <linux/init.h> |
39 | #include <linux/kernel.h> | ||
39 | #include <asm/bootinfo.h> | 40 | #include <asm/bootinfo.h> |
40 | #include <asm/txx9/generic.h> | 41 | #include <asm/txx9/generic.h> |
41 | #include <asm/txx9/jmr3927.h> | 42 | #include <asm/txx9/jmr3927.h> |
@@ -56,20 +57,11 @@ prom_putchar(char c) | |||
56 | return; | 57 | return; |
57 | } | 58 | } |
58 | 59 | ||
59 | void | ||
60 | puts(const char *cp) | ||
61 | { | ||
62 | while (*cp) | ||
63 | prom_putchar(*cp++); | ||
64 | prom_putchar('\r'); | ||
65 | prom_putchar('\n'); | ||
66 | } | ||
67 | |||
68 | void __init jmr3927_prom_init(void) | 60 | void __init jmr3927_prom_init(void) |
69 | { | 61 | { |
70 | /* CCFG */ | 62 | /* CCFG */ |
71 | if ((tx3927_ccfgptr->ccfg & TX3927_CCFG_TLBOFF) == 0) | 63 | if ((tx3927_ccfgptr->ccfg & TX3927_CCFG_TLBOFF) == 0) |
72 | puts("Warning: TX3927 TLB off\n"); | 64 | printk(KERN_ERR "TX3927 TLB off\n"); |
73 | 65 | ||
74 | prom_init_cmdline(); | 66 | prom_init_cmdline(); |
75 | add_memory_region(0, JMR3927_SDRAM_SIZE, BOOT_MEM_RAM); | 67 | add_memory_region(0, JMR3927_SDRAM_SIZE, BOOT_MEM_RAM); |
diff --git a/arch/mips/txx9/jmr3927/setup.c b/arch/mips/txx9/jmr3927/setup.c index 7378a835d4e3..cf7513d95fa7 100644 --- a/arch/mips/txx9/jmr3927/setup.c +++ b/arch/mips/txx9/jmr3927/setup.c | |||
@@ -74,9 +74,6 @@ static void __init jmr3927_mem_setup(void) | |||
74 | 74 | ||
75 | _machine_restart = jmr3927_machine_restart; | 75 | _machine_restart = jmr3927_machine_restart; |
76 | 76 | ||
77 | /* Reboot on panic */ | ||
78 | panic_timeout = 180; | ||
79 | |||
80 | /* cache setup */ | 77 | /* cache setup */ |
81 | { | 78 | { |
82 | unsigned int conf; | 79 | unsigned int conf; |
@@ -94,7 +91,8 @@ static void __init jmr3927_mem_setup(void) | |||
94 | #endif | 91 | #endif |
95 | 92 | ||
96 | conf = read_c0_conf(); | 93 | conf = read_c0_conf(); |
97 | conf &= ~(TX39_CONF_ICE | TX39_CONF_DCE | TX39_CONF_WBON | TX39_CONF_CWFON); | 94 | conf &= ~(TX39_CONF_ICE | TX39_CONF_DCE | |
95 | TX39_CONF_WBON | TX39_CONF_CWFON); | ||
98 | conf |= mips_ic_disable ? 0 : TX39_CONF_ICE; | 96 | conf |= mips_ic_disable ? 0 : TX39_CONF_ICE; |
99 | conf |= mips_dc_disable ? 0 : TX39_CONF_DCE; | 97 | conf |= mips_dc_disable ? 0 : TX39_CONF_DCE; |
100 | conf |= mips_config_wbon ? TX39_CONF_WBON : 0; | 98 | conf |= mips_config_wbon ? TX39_CONF_WBON : 0; |
@@ -107,19 +105,11 @@ static void __init jmr3927_mem_setup(void) | |||
107 | /* initialize board */ | 105 | /* initialize board */ |
108 | jmr3927_board_init(); | 106 | jmr3927_board_init(); |
109 | 107 | ||
110 | argptr = prom_getcmdline(); | ||
111 | if ((argptr = strstr(argptr, "ip=")) == NULL) { | ||
112 | argptr = prom_getcmdline(); | ||
113 | strcat(argptr, " ip=bootp"); | ||
114 | } | ||
115 | |||
116 | tx3927_setup_serial(1 << 1); /* ch1: noCTS */ | 108 | tx3927_setup_serial(1 << 1); /* ch1: noCTS */ |
117 | #ifdef CONFIG_SERIAL_TXX9_CONSOLE | 109 | #ifdef CONFIG_SERIAL_TXX9_CONSOLE |
118 | argptr = prom_getcmdline(); | 110 | argptr = prom_getcmdline(); |
119 | if ((argptr = strstr(argptr, "console=")) == NULL) { | 111 | if (!strstr(argptr, "console=")) |
120 | argptr = prom_getcmdline(); | ||
121 | strcat(argptr, " console=ttyS1,115200"); | 112 | strcat(argptr, " console=ttyS1,115200"); |
122 | } | ||
123 | #endif | 113 | #endif |
124 | } | 114 | } |
125 | 115 | ||
@@ -199,16 +189,14 @@ static unsigned long jmr3927_swizzle_addr_b(unsigned long port) | |||
199 | #endif | 189 | #endif |
200 | } | 190 | } |
201 | 191 | ||
202 | static int __init jmr3927_rtc_init(void) | 192 | static void __init jmr3927_rtc_init(void) |
203 | { | 193 | { |
204 | static struct resource __initdata res = { | 194 | static struct resource __initdata res = { |
205 | .start = JMR3927_IOC_NVRAMB_ADDR - IO_BASE, | 195 | .start = JMR3927_IOC_NVRAMB_ADDR - IO_BASE, |
206 | .end = JMR3927_IOC_NVRAMB_ADDR - IO_BASE + 0x800 - 1, | 196 | .end = JMR3927_IOC_NVRAMB_ADDR - IO_BASE + 0x800 - 1, |
207 | .flags = IORESOURCE_MEM, | 197 | .flags = IORESOURCE_MEM, |
208 | }; | 198 | }; |
209 | struct platform_device *dev; | 199 | platform_device_register_simple("rtc-ds1742", -1, &res, 1); |
210 | dev = platform_device_register_simple("rtc-ds1742", -1, &res, 1); | ||
211 | return IS_ERR(dev) ? PTR_ERR(dev) : 0; | ||
212 | } | 200 | } |
213 | 201 | ||
214 | static void __init jmr3927_device_init(void) | 202 | static void __init jmr3927_device_init(void) |