aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/83xx/mpc832x_rdb.c
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2009-03-31 18:24:39 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-01 11:59:23 -0400
commit754582853120a9ec8b8293b5147b605b1c6a39f1 (patch)
tree38495bf24d655d49dd26a14e3cfb7b75f9ddef14 /arch/powerpc/platforms/83xx/mpc832x_rdb.c
parent3f1c6ebf57b815ad709e89291e446935fee78f75 (diff)
powerpc/83xx: add mmc-spi support via the device tree for MPC8323E-RDB
- Add gpio-controller node to manage QE GPIO Bank D; - Add mmc-spi node; - Modify board file so that it won't use legacy SPI support with the new device trees. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Cc: David Brownell <david-b@pacbell.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Kumar Gala <galak@gate.crashing.org> Cc: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/powerpc/platforms/83xx/mpc832x_rdb.c')
-rw-r--r--arch/powerpc/platforms/83xx/mpc832x_rdb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc832x_rdb.c b/arch/powerpc/platforms/83xx/mpc832x_rdb.c
index 28e23cde64a1..e1e7eeb7d3a3 100644
--- a/arch/powerpc/platforms/83xx/mpc832x_rdb.c
+++ b/arch/powerpc/platforms/83xx/mpc832x_rdb.c
@@ -68,6 +68,12 @@ static int __init mpc832x_spi_init(void)
68 par_io_config_pin(3, 14, 2, 0, 0, 0); /* SD_INSERT, I */ 68 par_io_config_pin(3, 14, 2, 0, 0, 0); /* SD_INSERT, I */
69 par_io_config_pin(3, 15, 2, 0, 0, 0); /* SD_PROTECT,I */ 69 par_io_config_pin(3, 15, 2, 0, 0, 0); /* SD_PROTECT,I */
70 70
71 /*
72 * Don't bother with legacy stuff when device tree contains
73 * mmc-spi-slot node.
74 */
75 if (of_find_compatible_node(NULL, NULL, "mmc-spi-slot"))
76 return 0;
71 return fsl_spi_init(&mpc832x_spi_boardinfo, 1, mpc83xx_spi_cs_control); 77 return fsl_spi_init(&mpc832x_spi_boardinfo, 1, mpc83xx_spi_cs_control);
72} 78}
73machine_device_initcall(mpc832x_rdb, mpc832x_spi_init); 79machine_device_initcall(mpc832x_rdb, mpc832x_spi_init);