aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ux500
diff options
context:
space:
mode:
authorSundar Iyer <sundar.iyer@stericsson.com>2010-12-12 23:03:11 -0500
committerLinus Walleij <linus.walleij@stericsson.com>2010-12-19 13:27:36 -0500
commitd5d228158e77998a1659c1783fb204f275fab93b (patch)
treea9024440eea0f0d8de2ae64dd454c58f381541f3 /arch/arm/mach-ux500
parent7c1a70e99819d723cde610d83de48a8ab01ec609 (diff)
mach-ux500: deprecate spi support for ab8500
Acked-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Sundar Iyer <sundar.iyer@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Diffstat (limited to 'arch/arm/mach-ux500')
-rw-r--r--arch/arm/mach-ux500/board-mop500.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c
index 287956cebe8b..a8220c5a6a69 100644
--- a/arch/arm/mach-ux500/board-mop500.c
+++ b/arch/arm/mach-ux500/board-mop500.c
@@ -76,22 +76,6 @@ static pin_cfg_t mop500_pins[] = {
76 GPIO217_GPIO, /* GPIO_EXP_INT */ 76 GPIO217_GPIO, /* GPIO_EXP_INT */
77}; 77};
78 78
79static void ab4500_spi_cs_control(u32 command)
80{
81 /* set the FRM signal, which is CS - TODO */
82}
83
84struct pl022_config_chip ab4500_chip_info = {
85 .com_mode = INTERRUPT_TRANSFER,
86 .iface = SSP_INTERFACE_MOTOROLA_SPI,
87 /* we can act as master only */
88 .hierarchy = SSP_MASTER,
89 .slave_tx_disable = 0,
90 .rx_lev_trig = SSP_RX_1_OR_MORE_ELEM,
91 .tx_lev_trig = SSP_TX_1_OR_MORE_EMPTY_LOC,
92 .cs_control = ab4500_spi_cs_control,
93};
94
95static struct ab8500_platform_data ab8500_platdata = { 79static struct ab8500_platform_data ab8500_platdata = {
96 .irq_base = MOP500_AB8500_IRQ_BASE, 80 .irq_base = MOP500_AB8500_IRQ_BASE,
97}; 81};
@@ -114,19 +98,6 @@ struct platform_device ab8500_device = {
114 .resource = ab8500_resources, 98 .resource = ab8500_resources,
115}; 99};
116 100
117static struct spi_board_info ab8500_spi_devices[] = {
118 {
119 .modalias = "ab8500-spi",
120 .controller_data = &ab4500_chip_info,
121 .platform_data = &ab8500_platdata,
122 .max_speed_hz = 12000000,
123 .bus_num = 0,
124 .chip_select = 0,
125 .mode = SPI_MODE_3,
126 .irq = IRQ_DB8500_AB8500,
127 },
128};
129
130static struct pl022_ssp_controller ssp0_platform_data = { 101static struct pl022_ssp_controller ssp0_platform_data = {
131 .bus_id = 0, 102 .bus_id = 0,
132 /* pl022 not yet supports dma */ 103 /* pl022 not yet supports dma */
@@ -339,12 +310,7 @@ static void __init u8500_init_machine(void)
339 mop500_spi_init(); 310 mop500_spi_init();
340 mop500_uart_init(); 311 mop500_uart_init();
341 312
342 /* If HW is early drop (ED) or V1.0 then use SPI to access AB8500 */ 313 platform_device_register(&ab8500_device);
343 if (cpu_is_u8500ed() || cpu_is_u8500v10())
344 spi_register_board_info(ab8500_spi_devices,
345 ARRAY_SIZE(ab8500_spi_devices));
346 else /* If HW is v.1.1 or later use I2C to access AB8500 */
347 platform_device_register(&ab8500_device);
348 314
349 i2c_register_board_info(0, mop500_i2c0_devices, 315 i2c_register_board_info(0, mop500_i2c0_devices,
350 ARRAY_SIZE(mop500_i2c0_devices)); 316 ARRAY_SIZE(mop500_i2c0_devices));