diff options
| -rw-r--r-- | arch/mips/alchemy/devboards/db1x00/board_setup.c | 52 |
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 | ||
| 49 | static 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 | ||
| 56 | const char *get_system_type(void) | 51 | |
| 57 | { | 52 | #ifdef CONFIG_MIPS_DB1550 |
| 58 | return "Alchemy Bosporus Gateway Reference"; | 53 | char 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 | ||
| 62 | char 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 | 80 | static void bosporus_power_off(void) |
| 75 | char 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 | ||
| 87 | const 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 |
| 85 | char irq_tab_alchemy[][5] __initdata = { | 95 | char 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 | ||
| 103 | char 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) |
| 111 | static void mips_softreset(void) | 114 | static void mips_softreset(void) |
| @@ -121,6 +124,7 @@ const char *get_system_type(void) | |||
| 121 | } | 124 | } |
| 122 | #endif | 125 | #endif |
| 123 | 126 | ||
| 127 | |||
| 124 | void __init board_setup(void) | 128 | void __init board_setup(void) |
| 125 | { | 129 | { |
| 126 | unsigned long bcsr1, bcsr2; | 130 | unsigned long bcsr1, bcsr2; |
