aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorManuel Lauss <manuel.lauss@googlemail.com>2010-02-26 11:22:01 -0500
committerRalf Baechle <ralf@linux-mips.org>2010-02-27 06:53:45 -0500
commit570cb456efbd1f1e761869881ae72177595de356 (patch)
tree37adf2a0f41d2f6b2c2ae0cd50dcd2676b19e52b /arch/mips
parentd891a5399242579857701c2b1185b64d7bf7936f (diff)
MIPS: Alchemy: Repair db1500/bosporus builds
A few hunks somehow ended up outside their #ifdef/endif blocks, leading to -Werror-induces build failures. Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com> To: Linux-MIPS <linux-mips@linux-mips.org> Patchwork: http://patchwork.linux-mips.org/patch/1003/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/alchemy/devboards/db1x00/board_setup.c52
1 files changed, 28 insertions, 24 deletions
diff --git a/arch/mips/alchemy/devboards/db1x00/board_setup.c b/arch/mips/alchemy/devboards/db1x00/board_setup.c
index 559d9b256db7..50c9bef99daa 100644
--- a/arch/mips/alchemy/devboards/db1x00/board_setup.c
+++ b/arch/mips/alchemy/devboards/db1x00/board_setup.c
@@ -46,19 +46,25 @@ char irq_tab_alchemy[][5] __initdata = {
46 [13] = { -1, AU1500_PCI_INTA, AU1500_PCI_INTB, AU1500_PCI_INTC, AU1500_PCI_INTD }, /* IDSEL 13 - PCI slot */ 46 [13] = { -1, AU1500_PCI_INTA, AU1500_PCI_INTB, AU1500_PCI_INTC, AU1500_PCI_INTD }, /* IDSEL 13 - PCI slot */
47}; 47};
48 48
49static void bosporus_power_off(void) 49#endif
50{
51 printk(KERN_INFO "It's now safe to turn off power\n");
52 while (1)
53 asm volatile (".set mips3 ; wait ; .set mips0");
54}
55 50
56const char *get_system_type(void) 51
57{ 52#ifdef CONFIG_MIPS_DB1550
58 return "Alchemy Bosporus Gateway Reference"; 53char irq_tab_alchemy[][5] __initdata = {
59} 54 [11] = { -1, AU1550_PCI_INTC, 0xff, 0xff, 0xff }, /* IDSEL 11 - on-board HPT371 */
55 [12] = { -1, AU1550_PCI_INTB, AU1550_PCI_INTC, AU1550_PCI_INTD, AU1550_PCI_INTA }, /* IDSEL 12 - PCI slot 2 (left) */
56 [13] = { -1, AU1550_PCI_INTA, AU1550_PCI_INTB, AU1550_PCI_INTC, AU1550_PCI_INTD }, /* IDSEL 13 - PCI slot 1 (right) */
57};
60#endif 58#endif
61 59
60
61#ifdef CONFIG_MIPS_BOSPORUS
62char irq_tab_alchemy[][5] __initdata = {
63 [11] = { -1, AU1500_PCI_INTA, AU1500_PCI_INTB, 0xff, 0xff }, /* IDSEL 11 - miniPCI */
64 [12] = { -1, AU1500_PCI_INTA, 0xff, 0xff, 0xff }, /* IDSEL 12 - SN1741 */
65 [13] = { -1, AU1500_PCI_INTA, AU1500_PCI_INTB, AU1500_PCI_INTC, AU1500_PCI_INTD }, /* IDSEL 13 - PCI slot */
66};
67
62/* 68/*
63 * Micrel/Kendin 5 port switch attached to MAC0, 69 * Micrel/Kendin 5 port switch attached to MAC0,
64 * MAC0 is associated with PHY address 5 (== WAN port) 70 * MAC0 is associated with PHY address 5 (== WAN port)
@@ -71,16 +77,20 @@ static struct au1000_eth_platform_data eth0_pdata = {
71 .phy_addr = 5, 77 .phy_addr = 5,
72}; 78};
73 79
74#ifdef CONFIG_MIPS_BOSPORUS 80static void bosporus_power_off(void)
75char irq_tab_alchemy[][5] __initdata = { 81{
76 [11] = { -1, AU1500_PCI_INTA, AU1500_PCI_INTB, 0xff, 0xff }, /* IDSEL 11 - miniPCI */ 82 printk(KERN_INFO "It's now safe to turn off power\n");
77 [12] = { -1, AU1500_PCI_INTA, 0xff, 0xff, 0xff }, /* IDSEL 12 - SN1741 */ 83 while (1)
78 [13] = { -1, AU1500_PCI_INTA, AU1500_PCI_INTB, AU1500_PCI_INTC, AU1500_PCI_INTD }, /* IDSEL 13 - PCI slot */ 84 asm volatile (".set mips3 ; wait ; .set mips0");
79}; 85}
80
81 86
87const char *get_system_type(void)
88{
89 return "Alchemy Bosporus Gateway Reference";
90}
82#endif 91#endif
83 92
93
84#ifdef CONFIG_MIPS_MIRAGE 94#ifdef CONFIG_MIPS_MIRAGE
85char irq_tab_alchemy[][5] __initdata = { 95char irq_tab_alchemy[][5] __initdata = {
86 [11] = { -1, AU1500_PCI_INTD, 0xff, 0xff, 0xff }, /* IDSEL 11 - SMI VGX */ 96 [11] = { -1, AU1500_PCI_INTD, 0xff, 0xff, 0xff }, /* IDSEL 11 - SMI VGX */
@@ -99,13 +109,6 @@ const char *get_system_type(void)
99} 109}
100#endif 110#endif
101 111
102#ifdef CONFIG_MIPS_DB1550
103char irq_tab_alchemy[][5] __initdata = {
104 [11] = { -1, AU1550_PCI_INTC, 0xff, 0xff, 0xff }, /* IDSEL 11 - on-board HPT371 */
105 [12] = { -1, AU1550_PCI_INTB, AU1550_PCI_INTC, AU1550_PCI_INTD, AU1550_PCI_INTA }, /* IDSEL 12 - PCI slot 2 (left) */
106 [13] = { -1, AU1550_PCI_INTA, AU1550_PCI_INTB, AU1550_PCI_INTC, AU1550_PCI_INTD }, /* IDSEL 13 - PCI slot 1 (right) */
107};
108#endif
109 112
110#if defined(CONFIG_MIPS_BOSPORUS) || defined(CONFIG_MIPS_MIRAGE) 113#if defined(CONFIG_MIPS_BOSPORUS) || defined(CONFIG_MIPS_MIRAGE)
111static void mips_softreset(void) 114static void mips_softreset(void)
@@ -121,6 +124,7 @@ const char *get_system_type(void)
121} 124}
122#endif 125#endif
123 126
127
124void __init board_setup(void) 128void __init board_setup(void)
125{ 129{
126 unsigned long bcsr1, bcsr2; 130 unsigned long bcsr1, bcsr2;