1 From eeacc2529942051504bc957726aa178671344421 Mon Sep 17 00:00:00 2001
2 From: Maxime Bizon <mbizon@freebox.fr>
3 Date: Wed, 20 Jan 2010 16:21:30 +0100
4 Subject: [PATCH 32/63] bcm63xx: add support for 96368MVWG board.
7 arch/mips/bcm63xx/boards/board_bcm963xx.c | 95 ++++++++++++++++++++
8 .../mips/include/asm/mach-bcm63xx/board_bcm963xx.h | 2 +
9 2 files changed, 97 insertions(+), 0 deletions(-)
11 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
12 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
13 @@ -1920,6 +1920,85 @@ static struct board_info __initdata boar
14 #endif /* CONFIG_BCM63XX_CPU_6358 */
19 +#ifdef CONFIG_BCM63XX_CPU_6368
20 +static struct board_info __initdata board_96368mvwg = {
21 + .name = "96368MVWG",
22 + .expected_cpu_id = 0x6368,
66 + .name = "96368MVWG:green:adsl",
71 + .name = "96368MVWG:green:ppp",
75 + .name = "96368MVWG:green:power",
77 + .default_trigger = "default-on",
80 + .name = "96368MVWG:green:wps",
85 + .name = "96368MVWG:red:ppp-fail",
93 +#endif /* CONFIG_BCM63XX_CPU_6368 */
98 static const struct board_info __initconst *bcm963xx_boards[] = {
99 @@ -1971,6 +2050,10 @@ static const struct board_info __initcon
104 +#ifdef CONFIG_BCM63XX_CPU_6368
109 static struct of_device_id const bcm963xx_boards_dt[] = {
110 @@ -2025,6 +2108,7 @@ static struct of_device_id const bcm963x
111 { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
113 #ifdef CONFIG_BCM63XX_CPU_6368
114 + { .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
116 #ifdef CONFIG_BCM63XX_CPU_63268
117 { .compatible = "brcm,bcm963268bu_p300", .data = &board_963268bu_p300, },
118 --- a/arch/mips/bcm63xx/boards/board_common.c
119 +++ b/arch/mips/bcm63xx/boards/board_common.c
120 @@ -88,12 +88,25 @@ void __init board_early_setup(const stru
121 bcm63xx_pci_enabled = 1;
122 if (BCMCPU_IS_6348())
123 val |= GPIO_MODE_6348_G2_PCI;
125 + if (BCMCPU_IS_6368())
126 + val |= GPIO_MODE_6368_PCI_REQ1 |
127 + GPIO_MODE_6368_PCI_GNT1 |
128 + GPIO_MODE_6368_PCI_INTB |
129 + GPIO_MODE_6368_PCI_REQ0 |
130 + GPIO_MODE_6368_PCI_GNT0;
134 if (board.has_pccard) {
135 if (BCMCPU_IS_6348())
136 val |= GPIO_MODE_6348_G1_MII_PCCARD;
138 + if (BCMCPU_IS_6368())
139 + val |= GPIO_MODE_6368_PCMCIA_CD1 |
140 + GPIO_MODE_6368_PCMCIA_CD2 |
141 + GPIO_MODE_6368_PCMCIA_VS1 |
142 + GPIO_MODE_6368_PCMCIA_VS2;
145 if (board.has_enet0 && !board.enet0.use_internal_phy) {