1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
4 #define NB4_SPI_GPIO_CLK 6
5 #define NB4_74HC64_GPIO(X) (NB4_74X164_GPIO_BASE + (X))
7 +#define CT6373_PID_OFFSET 0xff80
8 +#define CT6373_74X164_GPIO_BASE 64
9 +#define CT6373_SPI_GPIO_MOSI 7
10 +#define CT6373_SPI_GPIO_CLK 6
11 +#define CT6373_74HC64_GPIO(X) (CT6373_74X164_GPIO_BASE + (X))
14 static struct board_info board;
17 @@ -2342,6 +2349,113 @@ static struct board_info __initdata boar
18 .num_spis = ARRAY_SIZE(nb4_spi_devices),
22 +struct spi_gpio_platform_data ct6373_spi_gpio_data = {
23 + .sck = CT6373_SPI_GPIO_CLK,
24 + .mosi = CT6373_SPI_GPIO_MOSI,
25 + .miso = SPI_GPIO_NO_MISO,
26 + .num_chipselect = 1,
29 +static struct platform_device ct6373_spi_gpio = {
33 + .platform_data = &ct6373_spi_gpio_data,
37 +static struct platform_device * __initdata ct6373_devices[] = {
41 +const struct gen_74x164_chip_platform_data ct6373_74x164_platform_data = {
42 + .base = CT6373_74X164_GPIO_BASE
45 +static struct spi_board_info ct6373_spi_devices[] = {
47 + .modalias = "74x164",
48 + .max_speed_hz = 781000,
50 + .controller_data = (void *) SPI_GPIO_NO_CHIPSELECT,
52 + .platform_data = &ct6373_74x164_platform_data
56 +static struct board_info __initdata board_ct6373_1 = {
58 + .expected_cpu_id = 0x6358,
69 + .force_speed_100 = 1,
70 + .force_duplex_full = 1,
75 + .name = "CT6373-1:green:power",
77 + .default_trigger = "default-on",
80 + .name = "CT6373-1:green:usb",
85 + .name = "CT6373-1:green:wlan",
90 + .name = "CT6373-1:green:adsl",
91 + .gpio = CT6373_74HC64_GPIO(0),
95 + .name = "CT6373-1:green:line",
96 + .gpio = CT6373_74HC64_GPIO(1),
100 + .name = "CT6373-1:green:fxs1",
101 + .gpio = CT6373_74HC64_GPIO(2),
105 + .name = "CT6373-1:green:fxs2",
106 + .gpio = CT6373_74HC64_GPIO(3),
117 + .code = KEY_RESTART,
118 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
122 + .devs = ct6373_devices,
123 + .num_devs = ARRAY_SIZE(ct6373_devices),
124 + .spis = ct6373_spi_devices,
125 + .num_spis = ARRAY_SIZE(ct6373_spi_devices),
128 static struct board_info __initdata board_HW553 = {
130 .expected_cpu_id = 0x6358,
131 @@ -2685,6 +2799,7 @@ static const struct board_info __initcon