diff options
author | Marek Vasut <marex@denx.de> | 2012-08-03 11:26:07 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-17 17:52:31 -0400 |
commit | 600a991f98d94c97f72870f85df687c517c3af53 (patch) | |
tree | b807fd2032e1a8e6d150629d3eff61ad3801c560 | |
parent | 8be3d3b2ac87955455c7ce852e0d489cb04fff59 (diff) |
mmc: spi: Rename IMX2[38]_MMC to IMX2[38]_SSP
Since the SSP controller can act as both SPI and MMC host,
renaming the enum to properly reflect the naming seems
appropriate.
Based on previous attempt by:
Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Acked-by: Chris Ball <cjb@laptop.org>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | drivers/mmc/host/mxs-mmc.c | 18 | ||||
-rw-r--r-- | include/linux/spi/mxs-spi.h | 8 |
2 files changed, 13 insertions, 13 deletions
diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c index 26c95dc87cb2..e80c2b6b2d7c 100644 --- a/drivers/mmc/host/mxs-mmc.c +++ b/drivers/mmc/host/mxs-mmc.c | |||
@@ -78,7 +78,7 @@ struct mxs_mmc_host { | |||
78 | enum dma_transfer_direction slave_dirn; | 78 | enum dma_transfer_direction slave_dirn; |
79 | u32 ssp_pio_words[SSP_PIO_NUM]; | 79 | u32 ssp_pio_words[SSP_PIO_NUM]; |
80 | 80 | ||
81 | enum mxs_mmc_id devid; | 81 | enum mxs_ssp_id devid; |
82 | unsigned char bus_width; | 82 | unsigned char bus_width; |
83 | spinlock_t lock; | 83 | spinlock_t lock; |
84 | int sdio_irq_en; | 84 | int sdio_irq_en; |
@@ -601,22 +601,22 @@ static bool mxs_mmc_dma_filter(struct dma_chan *chan, void *param) | |||
601 | return true; | 601 | return true; |
602 | } | 602 | } |
603 | 603 | ||
604 | static struct platform_device_id mxs_mmc_ids[] = { | 604 | static struct platform_device_id mxs_ssp_ids[] = { |
605 | { | 605 | { |
606 | .name = "imx23-mmc", | 606 | .name = "imx23-mmc", |
607 | .driver_data = IMX23_MMC, | 607 | .driver_data = IMX23_SSP, |
608 | }, { | 608 | }, { |
609 | .name = "imx28-mmc", | 609 | .name = "imx28-mmc", |
610 | .driver_data = IMX28_MMC, | 610 | .driver_data = IMX28_SSP, |
611 | }, { | 611 | }, { |
612 | /* sentinel */ | 612 | /* sentinel */ |
613 | } | 613 | } |
614 | }; | 614 | }; |
615 | MODULE_DEVICE_TABLE(platform, mxs_mmc_ids); | 615 | MODULE_DEVICE_TABLE(platform, mxs_ssp_ids); |
616 | 616 | ||
617 | static const struct of_device_id mxs_mmc_dt_ids[] = { | 617 | static const struct of_device_id mxs_mmc_dt_ids[] = { |
618 | { .compatible = "fsl,imx23-mmc", .data = (void *) IMX23_MMC, }, | 618 | { .compatible = "fsl,imx23-mmc", .data = (void *) IMX23_SSP, }, |
619 | { .compatible = "fsl,imx28-mmc", .data = (void *) IMX28_MMC, }, | 619 | { .compatible = "fsl,imx28-mmc", .data = (void *) IMX28_SSP, }, |
620 | { /* sentinel */ } | 620 | { /* sentinel */ } |
621 | }; | 621 | }; |
622 | MODULE_DEVICE_TABLE(of, mxs_mmc_dt_ids); | 622 | MODULE_DEVICE_TABLE(of, mxs_mmc_dt_ids); |
@@ -655,7 +655,7 @@ static int mxs_mmc_probe(struct platform_device *pdev) | |||
655 | } | 655 | } |
656 | 656 | ||
657 | if (np) { | 657 | if (np) { |
658 | host->devid = (enum mxs_mmc_id) of_id->data; | 658 | host->devid = (enum mxs_ssp_id) of_id->data; |
659 | /* | 659 | /* |
660 | * TODO: This is a temporary solution and should be changed | 660 | * TODO: This is a temporary solution and should be changed |
661 | * to use generic DMA binding later when the helpers get in. | 661 | * to use generic DMA binding later when the helpers get in. |
@@ -829,7 +829,7 @@ static const struct dev_pm_ops mxs_mmc_pm_ops = { | |||
829 | static struct platform_driver mxs_mmc_driver = { | 829 | static struct platform_driver mxs_mmc_driver = { |
830 | .probe = mxs_mmc_probe, | 830 | .probe = mxs_mmc_probe, |
831 | .remove = mxs_mmc_remove, | 831 | .remove = mxs_mmc_remove, |
832 | .id_table = mxs_mmc_ids, | 832 | .id_table = mxs_ssp_ids, |
833 | .driver = { | 833 | .driver = { |
834 | .name = DRIVER_NAME, | 834 | .name = DRIVER_NAME, |
835 | .owner = THIS_MODULE, | 835 | .owner = THIS_MODULE, |
diff --git a/include/linux/spi/mxs-spi.h b/include/linux/spi/mxs-spi.h index b7ccd577f758..c08aef57c7ce 100644 --- a/include/linux/spi/mxs-spi.h +++ b/include/linux/spi/mxs-spi.h | |||
@@ -24,7 +24,7 @@ | |||
24 | #ifndef __LINUX_SPI_MXS_SPI_H__ | 24 | #ifndef __LINUX_SPI_MXS_SPI_H__ |
25 | #define __LINUX_SPI_MXS_SPI_H__ | 25 | #define __LINUX_SPI_MXS_SPI_H__ |
26 | 26 | ||
27 | #define ssp_is_old(host) ((host)->devid == IMX23_MMC) | 27 | #define ssp_is_old(host) ((host)->devid == IMX23_SSP) |
28 | 28 | ||
29 | /* SSP registers */ | 29 | /* SSP registers */ |
30 | #define HW_SSP_CTRL0 0x000 | 30 | #define HW_SSP_CTRL0 0x000 |
@@ -101,9 +101,9 @@ | |||
101 | 101 | ||
102 | #define SSP_PIO_NUM 3 | 102 | #define SSP_PIO_NUM 3 |
103 | 103 | ||
104 | enum mxs_mmc_id { | 104 | enum mxs_ssp_id { |
105 | IMX23_MMC, | 105 | IMX23_SSP, |
106 | IMX28_MMC, | 106 | IMX28_SSP, |
107 | }; | 107 | }; |
108 | 108 | ||
109 | #endif /* __LINUX_SPI_MXS_SPI_H__ */ | 109 | #endif /* __LINUX_SPI_MXS_SPI_H__ */ |