diff options
Diffstat (limited to 'arch/arm/mach-mx51/devices.c')
-rw-r--r-- | arch/arm/mach-mx51/devices.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/arm/mach-mx51/devices.c b/arch/arm/mach-mx51/devices.c index 3496580d807f..d1a6f8f42528 100644 --- a/arch/arm/mach-mx51/devices.c +++ b/arch/arm/mach-mx51/devices.c @@ -596,6 +596,13 @@ extern void mx51_babbage_gpio_spi_chipselect_active(int cspi_mode, int status, int chipselect); extern void mx51_babbage_gpio_spi_chipselect_inactive(int cspi_mode, int status, int chipselect); + +extern void mx51_ccwmx51js_gpio_spi_chipselect_active(int cspi_mode, int status, + int chipselect); +extern void mx51_ccwmx51js_gpio_spi_chipselect_inactive(int cspi_mode, int status, + int chipselect); + + /*! Platform Data for MXC CSPI1 */ static struct mxc_spi_master mxcspi1_data = { .maxchipselect = 4, @@ -695,9 +702,14 @@ void __init mxc_init_spi(void) #ifdef CONFIG_SPI_MXC_SELECT1 if (machine_is_mx51_babbage()) { mxcspi1_data.chipselect_active = - mx51_babbage_gpio_spi_chipselect_active; + mx51_babbage_gpio_spi_chipselect_active; mxcspi1_data.chipselect_inactive = mx51_babbage_gpio_spi_chipselect_inactive; + } else { + mxcspi1_data.chipselect_active = + mx51_ccwmx51js_gpio_spi_chipselect_active; + mxcspi1_data.chipselect_inactive = + mx51_ccwmx51js_gpio_spi_chipselect_inactive; } if (platform_device_register(&mxcspi1_device) < 0) printk(KERN_ERR "Error: Registering the SPI Controller_1\n"); |