[PATCH v7 3/3] [POWERPC] MPC832x_RDB: update dts to use SPI1 in QE, register mmc_spi stub
Timur Tabi
timur at freescale.com
Fri Aug 31 07:06:46 EST 2007
Anton Vorontsov wrote:
> +static int __init mpc832x_spi_init(void)
> +{
> + if (!machine_is(mpc832x_rdb))
> + return 0;
> +
> + par_io_config_pin(3, 0, 3, 0, 1, 0); /* SPI1 MOSI, I/O */
> + par_io_config_pin(3, 1, 3, 0, 1, 0); /* SPI1 MISO, I/O */
> + par_io_config_pin(3, 2, 3, 0, 1, 0); /* SPI1 CLK, I/O */
> + par_io_config_pin(3, 3, 2, 0, 1, 0); /* SPI1 SEL, I */
> +
> + par_io_config_pin(3, 13, 1, 0, 0, 0); /* !SD_CS, O */
> + 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 */
Why are you doing this here, and not in the device tree?
--
Timur Tabi
Linux Kernel Developer @ Freescale
More information about the Linuxppc-dev
mailing list