diff options
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc832x_rdb.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc832x_rdb.c b/arch/powerpc/platforms/83xx/mpc832x_rdb.c index 2a1295f19832..28e23cde64a1 100644 --- a/arch/powerpc/platforms/83xx/mpc832x_rdb.c +++ b/arch/powerpc/platforms/83xx/mpc832x_rdb.c | |||
@@ -39,16 +39,10 @@ | |||
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | #ifdef CONFIG_QUICC_ENGINE | 41 | #ifdef CONFIG_QUICC_ENGINE |
42 | static void mpc83xx_spi_activate_cs(u8 cs, u8 polarity) | 42 | static void mpc83xx_spi_cs_control(struct spi_device *spi, bool on) |
43 | { | 43 | { |
44 | pr_debug("%s %d %d\n", __func__, cs, polarity); | 44 | pr_debug("%s %d %d\n", __func__, spi->chip_select, on); |
45 | par_io_data_set(3, 13, polarity); | 45 | par_io_data_set(3, 13, on); |
46 | } | ||
47 | |||
48 | static void mpc83xx_spi_deactivate_cs(u8 cs, u8 polarity) | ||
49 | { | ||
50 | pr_debug("%s %d %d\n", __func__, cs, polarity); | ||
51 | par_io_data_set(3, 13, !polarity); | ||
52 | } | 46 | } |
53 | 47 | ||
54 | static struct mmc_spi_platform_data mpc832x_mmc_pdata = { | 48 | static struct mmc_spi_platform_data mpc832x_mmc_pdata = { |
@@ -74,9 +68,7 @@ static int __init mpc832x_spi_init(void) | |||
74 | 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 */ |
75 | 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 */ |
76 | 70 | ||
77 | return fsl_spi_init(&mpc832x_spi_boardinfo, 1, | 71 | return fsl_spi_init(&mpc832x_spi_boardinfo, 1, mpc83xx_spi_cs_control); |
78 | mpc83xx_spi_activate_cs, | ||
79 | mpc83xx_spi_deactivate_cs); | ||
80 | } | 72 | } |
81 | machine_device_initcall(mpc832x_rdb, mpc832x_spi_init); | 73 | machine_device_initcall(mpc832x_rdb, mpc832x_spi_init); |
82 | #endif /* CONFIG_QUICC_ENGINE */ | 74 | #endif /* CONFIG_QUICC_ENGINE */ |