aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/alchemy/devboards/db1x00/board_setup.c25
-rw-r--r--arch/mips/alchemy/devboards/pb1000/board_setup.c10
-rw-r--r--arch/mips/alchemy/devboards/pb1100/board_setup.c25
-rw-r--r--arch/mips/alchemy/devboards/pb1200/board_setup.c14
-rw-r--r--arch/mips/alchemy/devboards/pb1500/board_setup.c16
-rw-r--r--arch/mips/alchemy/devboards/pb1550/board_setup.c10
-rw-r--r--arch/mips/alchemy/mtx-1/board_setup.c10
-rw-r--r--arch/mips/alchemy/xxs1500/board_setup.c10
8 files changed, 0 insertions, 120 deletions
diff --git a/arch/mips/alchemy/devboards/db1x00/board_setup.c b/arch/mips/alchemy/devboards/db1x00/board_setup.c
index 56c541d0c55a..559d9b256db7 100644
--- a/arch/mips/alchemy/devboards/db1x00/board_setup.c
+++ b/arch/mips/alchemy/devboards/db1x00/board_setup.c
@@ -125,7 +125,6 @@ void __init board_setup(void)
125{ 125{
126 unsigned long bcsr1, bcsr2; 126 unsigned long bcsr1, bcsr2;
127 u32 pin_func; 127 u32 pin_func;
128 char *argptr;
129 128
130 bcsr1 = DB1000_BCSR_PHYS_ADDR; 129 bcsr1 = DB1000_BCSR_PHYS_ADDR;
131 bcsr2 = DB1000_BCSR_PHYS_ADDR + DB1000_BCSR_HEXLED_OFS; 130 bcsr2 = DB1000_BCSR_PHYS_ADDR + DB1000_BCSR_HEXLED_OFS;
@@ -159,30 +158,6 @@ void __init board_setup(void)
159 /* initialize board register space */ 158 /* initialize board register space */
160 bcsr_init(bcsr1, bcsr2); 159 bcsr_init(bcsr1, bcsr2);
161 160
162 argptr = prom_getcmdline();
163#ifdef CONFIG_SERIAL_8250_CONSOLE
164 argptr = strstr(argptr, "console=");
165 if (argptr == NULL) {
166 argptr = prom_getcmdline();
167 strcat(argptr, " console=ttyS0,115200");
168 }
169#endif
170
171#ifdef CONFIG_FB_AU1100
172 argptr = strstr(argptr, "video=");
173 if (argptr == NULL) {
174 argptr = prom_getcmdline();
175 /* default panel */
176 /*strcat(argptr, " video=au1100fb:panel:Sharp_320x240_16");*/
177 }
178#endif
179
180#if defined(CONFIG_SOUND_AU1X00) && !defined(CONFIG_SOC_AU1000)
181 /* au1000 does not support vra, au1500 and au1100 do */
182 strcat(argptr, " au1000_audio=vra");
183 argptr = prom_getcmdline();
184#endif
185
186 /* Not valid for Au1550 */ 161 /* Not valid for Au1550 */
187#if defined(CONFIG_IRDA) && \ 162#if defined(CONFIG_IRDA) && \
188 (defined(CONFIG_SOC_AU1000) || defined(CONFIG_SOC_AU1100)) 163 (defined(CONFIG_SOC_AU1000) || defined(CONFIG_SOC_AU1100))
diff --git a/arch/mips/alchemy/devboards/pb1000/board_setup.c b/arch/mips/alchemy/devboards/pb1000/board_setup.c
index 28b8bd278a16..b5311d8a29ab 100644
--- a/arch/mips/alchemy/devboards/pb1000/board_setup.c
+++ b/arch/mips/alchemy/devboards/pb1000/board_setup.c
@@ -47,19 +47,9 @@ void __init board_setup(void)
47 u32 pin_func, static_cfg0; 47 u32 pin_func, static_cfg0;
48 u32 sys_freqctrl, sys_clksrc; 48 u32 sys_freqctrl, sys_clksrc;
49 u32 prid = read_c0_prid(); 49 u32 prid = read_c0_prid();
50 char *argptr;
51 50
52 sys_freqctrl = 0; 51 sys_freqctrl = 0;
53 sys_clksrc = 0; 52 sys_clksrc = 0;
54 argptr = prom_getcmdline();
55
56#ifdef CONFIG_SERIAL_8250_CONSOLE
57 argptr = strstr(argptr, "console=");
58 if (argptr == NULL) {
59 argptr = prom_getcmdline();
60 strcat(argptr, " console=ttyS0,115200");
61 }
62#endif
63 53
64 /* Set AUX clock to 12 MHz * 8 = 96 MHz */ 54 /* Set AUX clock to 12 MHz * 8 = 96 MHz */
65 au_writel(8, SYS_AUXPLL); 55 au_writel(8, SYS_AUXPLL);
diff --git a/arch/mips/alchemy/devboards/pb1100/board_setup.c b/arch/mips/alchemy/devboards/pb1100/board_setup.c
index e0bd855f899b..c7b4caa81a35 100644
--- a/arch/mips/alchemy/devboards/pb1100/board_setup.c
+++ b/arch/mips/alchemy/devboards/pb1100/board_setup.c
@@ -47,35 +47,10 @@ void board_reset(void)
47void __init board_setup(void) 47void __init board_setup(void)
48{ 48{
49 volatile void __iomem *base = (volatile void __iomem *)0xac000000UL; 49 volatile void __iomem *base = (volatile void __iomem *)0xac000000UL;
50 char *argptr;
51 50
52 bcsr_init(DB1000_BCSR_PHYS_ADDR, 51 bcsr_init(DB1000_BCSR_PHYS_ADDR,
53 DB1000_BCSR_PHYS_ADDR + DB1000_BCSR_HEXLED_OFS); 52 DB1000_BCSR_PHYS_ADDR + DB1000_BCSR_HEXLED_OFS);
54 53
55 argptr = prom_getcmdline();
56#ifdef CONFIG_SERIAL_8250_CONSOLE
57 argptr = strstr(argptr, "console=");
58 if (argptr == NULL) {
59 argptr = prom_getcmdline();
60 strcat(argptr, " console=ttyS0,115200");
61 }
62#endif
63
64#ifdef CONFIG_FB_AU1100
65 argptr = strstr(argptr, "video=");
66 if (argptr == NULL) {
67 argptr = prom_getcmdline();
68 /* default panel */
69 /*strcat(argptr, " video=au1100fb:panel:Sharp_320x240_16");*/
70 }
71#endif
72
73#if defined(CONFIG_SOUND_AU1X00) && !defined(CONFIG_SOC_AU1000)
74 /* au1000 does not support vra, au1500 and au1100 do */
75 strcat(argptr, " au1000_audio=vra");
76 argptr = prom_getcmdline();
77#endif
78
79 /* Set AUX clock to 12 MHz * 8 = 96 MHz */ 54 /* Set AUX clock to 12 MHz * 8 = 96 MHz */
80 au_writel(8, SYS_AUXPLL); 55 au_writel(8, SYS_AUXPLL);
81 alchemy_gpio1_input_enable(); 56 alchemy_gpio1_input_enable();
diff --git a/arch/mips/alchemy/devboards/pb1200/board_setup.c b/arch/mips/alchemy/devboards/pb1200/board_setup.c
index 2cf59e728247..3184063f8042 100644
--- a/arch/mips/alchemy/devboards/pb1200/board_setup.c
+++ b/arch/mips/alchemy/devboards/pb1200/board_setup.c
@@ -56,24 +56,10 @@ void board_reset(void)
56 56
57void __init board_setup(void) 57void __init board_setup(void)
58{ 58{
59 char *argptr;
60
61 printk(KERN_INFO "AMD Alchemy Pb1200 Board\n"); 59 printk(KERN_INFO "AMD Alchemy Pb1200 Board\n");
62 bcsr_init(PB1200_BCSR_PHYS_ADDR, 60 bcsr_init(PB1200_BCSR_PHYS_ADDR,
63 PB1200_BCSR_PHYS_ADDR + PB1200_BCSR_HEXLED_OFS); 61 PB1200_BCSR_PHYS_ADDR + PB1200_BCSR_HEXLED_OFS);
64 62
65 argptr = prom_getcmdline();
66#ifdef CONFIG_SERIAL_8250_CONSOLE
67 argptr = strstr(argptr, "console=");
68 if (argptr == NULL) {
69 argptr = prom_getcmdline();
70 strcat(argptr, " console=ttyS0,115200");
71 }
72#endif
73#ifdef CONFIG_FB_AU1200
74 strcat(argptr, " video=au1200fb:panel:bs");
75#endif
76
77#if 0 63#if 0
78 { 64 {
79 u32 pin_func; 65 u32 pin_func;
diff --git a/arch/mips/alchemy/devboards/pb1500/board_setup.c b/arch/mips/alchemy/devboards/pb1500/board_setup.c
index 3f0c92cb35bd..fa9770ac358a 100644
--- a/arch/mips/alchemy/devboards/pb1500/board_setup.c
+++ b/arch/mips/alchemy/devboards/pb1500/board_setup.c
@@ -54,26 +54,10 @@ void __init board_setup(void)
54{ 54{
55 u32 pin_func; 55 u32 pin_func;
56 u32 sys_freqctrl, sys_clksrc; 56 u32 sys_freqctrl, sys_clksrc;
57 char *argptr;
58 57
59 bcsr_init(DB1000_BCSR_PHYS_ADDR, 58 bcsr_init(DB1000_BCSR_PHYS_ADDR,
60 DB1000_BCSR_PHYS_ADDR + DB1000_BCSR_HEXLED_OFS); 59 DB1000_BCSR_PHYS_ADDR + DB1000_BCSR_HEXLED_OFS);
61 60
62 argptr = prom_getcmdline();
63#ifdef CONFIG_SERIAL_8250_CONSOLE
64 argptr = strstr(argptr, "console=");
65 if (argptr == NULL) {
66 argptr = prom_getcmdline();
67 strcat(argptr, " console=ttyS0,115200");
68 }
69#endif
70
71#if defined(CONFIG_SOUND_AU1X00) && !defined(CONFIG_SOC_AU1000)
72 /* au1000 does not support vra, au1500 and au1100 do */
73 strcat(argptr, " au1000_audio=vra");
74 argptr = prom_getcmdline();
75#endif
76
77 sys_clksrc = sys_freqctrl = pin_func = 0; 61 sys_clksrc = sys_freqctrl = pin_func = 0;
78 /* Set AUX clock to 12 MHz * 8 = 96 MHz */ 62 /* Set AUX clock to 12 MHz * 8 = 96 MHz */
79 au_writel(8, SYS_AUXPLL); 63 au_writel(8, SYS_AUXPLL);
diff --git a/arch/mips/alchemy/devboards/pb1550/board_setup.c b/arch/mips/alchemy/devboards/pb1550/board_setup.c
index 0d060c3dd6f8..1e8fb3ddd726 100644
--- a/arch/mips/alchemy/devboards/pb1550/board_setup.c
+++ b/arch/mips/alchemy/devboards/pb1550/board_setup.c
@@ -56,20 +56,10 @@ void board_reset(void)
56void __init board_setup(void) 56void __init board_setup(void)
57{ 57{
58 u32 pin_func; 58 u32 pin_func;
59 char *argptr;
60 59
61 bcsr_init(PB1550_BCSR_PHYS_ADDR, 60 bcsr_init(PB1550_BCSR_PHYS_ADDR,
62 PB1550_BCSR_PHYS_ADDR + PB1550_BCSR_HEXLED_OFS); 61 PB1550_BCSR_PHYS_ADDR + PB1550_BCSR_HEXLED_OFS);
63 62
64 argptr = prom_getcmdline();
65#ifdef CONFIG_SERIAL_8250_CONSOLE
66 argptr = strstr(argptr, "console=");
67 if (argptr == NULL) {
68 argptr = prom_getcmdline();
69 strcat(argptr, " console=ttyS0,115200");
70 }
71#endif
72
73 alchemy_gpio2_enable(); 63 alchemy_gpio2_enable();
74 64
75 /* 65 /*
diff --git a/arch/mips/alchemy/mtx-1/board_setup.c b/arch/mips/alchemy/mtx-1/board_setup.c
index e2838c6185d3..a9f0336e1f1f 100644
--- a/arch/mips/alchemy/mtx-1/board_setup.c
+++ b/arch/mips/alchemy/mtx-1/board_setup.c
@@ -67,16 +67,6 @@ static void mtx1_power_off(void)
67 67
68void __init board_setup(void) 68void __init board_setup(void)
69{ 69{
70#ifdef CONFIG_SERIAL_8250_CONSOLE
71 char *argptr;
72 argptr = prom_getcmdline();
73 argptr = strstr(argptr, "console=");
74 if (argptr == NULL) {
75 argptr = prom_getcmdline();
76 strcat(argptr, " console=ttyS0,115200");
77 }
78#endif
79
80 alchemy_gpio2_enable(); 70 alchemy_gpio2_enable();
81 71
82#if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) 72#if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
diff --git a/arch/mips/alchemy/xxs1500/board_setup.c b/arch/mips/alchemy/xxs1500/board_setup.c
index 7956afa78c4b..47b42927607b 100644
--- a/arch/mips/alchemy/xxs1500/board_setup.c
+++ b/arch/mips/alchemy/xxs1500/board_setup.c
@@ -51,16 +51,6 @@ void __init board_setup(void)
51{ 51{
52 u32 pin_func; 52 u32 pin_func;
53 53
54#ifdef CONFIG_SERIAL_8250_CONSOLE
55 char *argptr;
56 argptr = prom_getcmdline();
57 argptr = strstr(argptr, "console=");
58 if (argptr == NULL) {
59 argptr = prom_getcmdline();
60 strcat(argptr, " console=ttyS0,115200");
61 }
62#endif
63
64 pm_power_off = xxs1500_power_off; 54 pm_power_off = xxs1500_power_off;
65 _machine_halt = xxs1500_power_off; 55 _machine_halt = xxs1500_power_off;
66 _machine_restart = xxs1500_reset; 56 _machine_restart = xxs1500_reset;