aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-lpc32xx/phy3250.c
diff options
context:
space:
mode:
authorAlexandre Pereira da Silva <aletes.xgr@gmail.com>2012-06-10 23:25:15 -0400
committerRoland Stigge <stigge@antcom.de>2012-06-14 10:16:19 -0400
commit72b78cf713176f376f369df8ccca865c5d51c42b (patch)
tree1d264b009e275bebfd3b1f619891afa6e287a90c /arch/arm/mach-lpc32xx/phy3250.c
parentc05a8b145cb84e8101a57b6876f14cdb79fa12b8 (diff)
ARM: LPC32xx: Remove spi chip definitions
Leave chipselect and spi devices binding to the devicetree Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com> Signed-off-by: Roland Stigge <stigge@antcom.de>
Diffstat (limited to 'arch/arm/mach-lpc32xx/phy3250.c')
-rw-r--r--arch/arm/mach-lpc32xx/phy3250.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/arch/arm/mach-lpc32xx/phy3250.c b/arch/arm/mach-lpc32xx/phy3250.c
index 4ba238395be9..93408883eaca 100644
--- a/arch/arm/mach-lpc32xx/phy3250.c
+++ b/arch/arm/mach-lpc32xx/phy3250.c
@@ -162,24 +162,6 @@ static struct clcd_board lpc32xx_clcd_data = {
162/* 162/*
163 * AMBA SSP (SPI) 163 * AMBA SSP (SPI)
164 */ 164 */
165static void phy3250_spi_cs_set(u32 control)
166{
167 gpio_set_value(SPI0_CS_GPIO, (int) control);
168}
169
170static struct pl022_config_chip spi0_chip_info = {
171 .com_mode = INTERRUPT_TRANSFER,
172 .iface = SSP_INTERFACE_MOTOROLA_SPI,
173 .hierarchy = SSP_MASTER,
174 .slave_tx_disable = 0,
175 .rx_lev_trig = SSP_RX_4_OR_MORE_ELEM,
176 .tx_lev_trig = SSP_TX_4_OR_MORE_EMPTY_LOC,
177 .ctrl_len = SSP_BITS_8,
178 .wait_state = SSP_MWIRE_WAIT_ZERO,
179 .duplex = SSP_MICROWIRE_CHANNEL_FULL_DUPLEX,
180 .cs_control = phy3250_spi_cs_set,
181};
182
183static struct pl022_ssp_controller lpc32xx_ssp0_data = { 165static struct pl022_ssp_controller lpc32xx_ssp0_data = {
184 .bus_id = 0, 166 .bus_id = 0,
185 .num_chipselect = 1, 167 .num_chipselect = 1,
@@ -192,44 +174,6 @@ static struct pl022_ssp_controller lpc32xx_ssp1_data = {
192 .enable_dma = 0, 174 .enable_dma = 0,
193}; 175};
194 176
195/* AT25 driver registration */
196static int __init phy3250_spi_board_register(void)
197{
198#if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
199 static struct spi_board_info info[] = {
200 {
201 .modalias = "spidev",
202 .max_speed_hz = 5000000,
203 .bus_num = 0,
204 .chip_select = 0,
205 .controller_data = &spi0_chip_info,
206 },
207 };
208
209#else
210 static struct spi_eeprom eeprom = {
211 .name = "at25256a",
212 .byte_len = 0x8000,
213 .page_size = 64,
214 .flags = EE_ADDR2,
215 };
216
217 static struct spi_board_info info[] = {
218 {
219 .modalias = "at25",
220 .max_speed_hz = 5000000,
221 .bus_num = 0,
222 .chip_select = 0,
223 .mode = SPI_MODE_0,
224 .platform_data = &eeprom,
225 .controller_data = &spi0_chip_info,
226 },
227 };
228#endif
229 return spi_register_board_info(info, ARRAY_SIZE(info));
230}
231arch_initcall(phy3250_spi_board_register);
232
233static struct pl08x_channel_data pl08x_slave_channels[] = { 177static struct pl08x_channel_data pl08x_slave_channels[] = {
234 { 178 {
235 .bus_id = "nand-slc", 179 .bus_id = "nand-slc",