1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
4 #include <linux/spi/spi.h>
5 #include <linux/spi/spi_gpio.h>
6 #include <linux/spi/74x164.h>
7 +#include <linux/rtl8367.h>
8 #include <asm/addrspace.h>
9 #include <bcm63xx_board.h>
10 #include <bcm63xx_cpu.h>
12 #define NB4_SPI_GPIO_MOSI 7
13 #define NB4_SPI_GPIO_CLK 6
14 #define NB4_74HC64_GPIO(X) (NB4_74X164_GPIO_BASE + (X))
15 +#define NB6_GPIO_RTL8367_SDA 18
16 +#define NB6_GPIO_RTL8367_SCK 20
18 #define CT6373_PID_OFFSET 0xff80
19 #define CT6373_74X164_GPIO_BASE 64
20 @@ -2622,6 +2625,103 @@ static struct board_info __initdata boar
24 +#ifdef CONFIG_BCM63XX_CPU_6362
25 +static struct rtl8367_extif_config nb6_rtl8367_extif0_cfg = {
26 + .mode = RTL8367_EXTIF_MODE_RGMII,
35 + .speed = RTL8367_PORT_SPEED_1000,
39 +static struct rtl8367_platform_data nb6_rtl8367_data = {
40 + .gpio_sda = NB6_GPIO_RTL8367_SDA,
41 + .gpio_sck = NB6_GPIO_RTL8367_SCK,
42 + .extif0_cfg = &nb6_rtl8367_extif0_cfg,
45 +static struct platform_device nb6_rtl8367_device = {
46 + .name = RTL8367_DRIVER_NAME,
49 + .platform_data = &nb6_rtl8367_data,
53 +static struct platform_device * __initdata nb6_devices[] = {
54 + &nb6_rtl8367_device,
57 +static struct board_info __initdata board_nb6 = {
59 + .expected_cpu_id = 0x6362,
74 + .force_speed = 1000,
75 + .force_duplex_full = 1,
86 + .code = KEY_RESTART,
87 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
94 + .code = KEY_WPS_BUTTON,
95 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
103 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
111 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
116 + .devs = nb6_devices,
117 + .num_devs = ARRAY_SIZE(nb6_devices),
124 @@ -2818,6 +2918,10 @@ static const struct board_info __initdat
128 +#ifdef CONFIG_BCM63XX_CPU_6362
132 #ifdef CONFIG_BCM63XX_CPU_6368
135 @@ -2885,6 +2989,11 @@ static void __init boardid_fixup(u8 *boo
139 + if (BCMCPU_IS_6362() && (!strncmp(board_name, "NB6-", sizeof("NB6-") - 1))) {
140 + board_name[sizeof("NB6") - 1] = '\0';
144 /* check if bcm_tag is at 64k offset */
145 if (strncmp(board_name, tag->board_id, BOARDID_LEN) != 0) {