aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-lpc32xx
diff options
context:
space:
mode:
authorRoland Stigge <stigge@antcom.de>2012-06-14 10:16:17 -0400
committerRoland Stigge <stigge@antcom.de>2012-06-14 10:16:17 -0400
commitd807af4793a464f7331f92461a619e5e7ddf9089 (patch)
treed0ec9ece7bad3a47ba725091c5c03bd740d4a16b /arch/arm/mach-lpc32xx
parentba225a0ea225902501487a2c9f620c26dce1cee6 (diff)
ARM: LPC32xx: Add DMA configuration to platform data
This patch adds DMA channel configuration to the LPC32xx platform file. The configured DMA signalling is generic for LPC32xx SoC and is not board specific. Signed-off-by: Roland Stigge <stigge@antcom.de>
Diffstat (limited to 'arch/arm/mach-lpc32xx')
-rw-r--r--arch/arm/mach-lpc32xx/phy3250.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/arm/mach-lpc32xx/phy3250.c b/arch/arm/mach-lpc32xx/phy3250.c
index 42a078eb1665..eade77fbebdd 100644
--- a/arch/arm/mach-lpc32xx/phy3250.c
+++ b/arch/arm/mach-lpc32xx/phy3250.c
@@ -226,7 +226,38 @@ static int __init phy3250_spi_board_register(void)
226} 226}
227arch_initcall(phy3250_spi_board_register); 227arch_initcall(phy3250_spi_board_register);
228 228
229static struct pl08x_channel_data pl08x_slave_channels[] = {
230 {
231 .bus_id = "nand-slc",
232 .min_signal = 1, /* SLC NAND Flash */
233 .max_signal = 1,
234 .periph_buses = PL08X_AHB1,
235 },
236 {
237 .bus_id = "nand-mlc",
238 .min_signal = 12, /* MLC NAND Flash */
239 .max_signal = 12,
240 .periph_buses = PL08X_AHB1,
241 },
242};
243
244/* NOTE: These will change, according to RMK */
245static int pl08x_get_signal(struct pl08x_dma_chan *ch)
246{
247 return ch->cd->min_signal;
248}
249
250static void pl08x_put_signal(struct pl08x_dma_chan *ch)
251{
252}
253
229static struct pl08x_platform_data pl08x_pd = { 254static struct pl08x_platform_data pl08x_pd = {
255 .slave_channels = &pl08x_slave_channels[0],
256 .num_slave_channels = ARRAY_SIZE(pl08x_slave_channels),
257 .get_signal = pl08x_get_signal,
258 .put_signal = pl08x_put_signal,
259 .lli_buses = PL08X_AHB1,
260 .mem_buses = PL08X_AHB1,
230}; 261};
231 262
232static const struct of_dev_auxdata lpc32xx_auxdata_lookup[] __initconst = { 263static const struct of_dev_auxdata lpc32xx_auxdata_lookup[] __initconst = {