@@ -40,6 +40,8 @@
#include <mach/ti_ssp.h>
#include <mach/tnetv107x.h>
+#define SSP_GPIO_START 128
+
#define EVM_MMC_WP_GPIO 21
#define EVM_MMC_CD_GPIO 24
#define EVM_SPI_CS_GPIO 54
@@ -263,6 +265,25 @@ static struct platform_device spi_master_device = {
.dev.platform_data = &spi_master_data,
};
+static struct ti_ssp_gpio_data ssp_gpio_data = {
+ .port_data = {
+ .ssp_dev_name = "ti-ssp",
+ .port = 0,
+ .iosel = SSP_PIN_SEL(0, SSP_OUT) |
+ SSP_PIN_SEL(1, SSP_OUT) |
+ SSP_PIN_SEL(2, SSP_OUT) |
+ SSP_PIN_SEL(3, SSP_OUT) |
+ SSP_INPUT_SEL(3),
+ },
+ .start = SSP_GPIO_START,
+};
+
+static struct platform_device ssp_gpio_device = {
+ .name = "ti-ssp-gpio",
+ .id = 0,
+ .dev.platform_data = &ssp_gpio_data,
+};
+
static struct regulator_consumer_supply usb_consumers[] = {
REGULATOR_SUPPLY("vbus", "musb_hdrc.1"),
};
@@ -363,6 +384,8 @@ static __init void tnetv107x_evm_board_init(void)
tnetv107x_devices_init(&evm_device_info);
platform_device_register(&spi_master_device);
+ platform_device_register(&ssp_gpio_device);
+
spi_register_board_info(spi_info, ARRAY_SIZE(spi_info));
}