|
@@ -68,6 +68,12 @@ static int __init mpc832x_spi_init(void)
|
|
|
par_io_config_pin(3, 14, 2, 0, 0, 0); /* SD_INSERT, I */
|
|
|
par_io_config_pin(3, 15, 2, 0, 0, 0); /* SD_PROTECT,I */
|
|
|
|
|
|
+ /*
|
|
|
+ * Don't bother with legacy stuff when device tree contains
|
|
|
+ * mmc-spi-slot node.
|
|
|
+ */
|
|
|
+ if (of_find_compatible_node(NULL, NULL, "mmc-spi-slot"))
|
|
|
+ return 0;
|
|
|
return fsl_spi_init(&mpc832x_spi_boardinfo, 1, mpc83xx_spi_cs_control);
|
|
|
}
|
|
|
machine_device_initcall(mpc832x_rdb, mpc832x_spi_init);
|