ARM: 6789/1: SPEAr3xx: Rename sdio to sdhci
authorviresh kumar <viresh.kumar@st.com>
Mon, 7 Mar 2011 04:57:03 +0000 (05:57 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 9 Mar 2011 09:49:46 +0000 (09:49 +0000)
Device name of SD/MMC/SDIO controller in linux is sdhci. To maintain
consistency across all spear code, rename sdio to sdhci.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-spear3xx/include/mach/generic.h
arch/arm/mach-spear3xx/include/mach/irqs.h
arch/arm/mach-spear3xx/include/mach/spear300.h
arch/arm/mach-spear3xx/include/mach/spear320.h
arch/arm/mach-spear3xx/spear300.c
arch/arm/mach-spear3xx/spear300_evb.c
arch/arm/mach-spear3xx/spear320.c
arch/arm/mach-spear3xx/spear320_evb.c

index aaaa04620d22799483d2a9a2e1a13fcff8b299fe..8e30636909ef9c9a6b7518c853ab098e9ee9508b 100644 (file)
@@ -129,8 +129,8 @@ extern struct pmx_dev pmx_telecom_camera;
 extern struct pmx_dev pmx_telecom_dac;
 extern struct pmx_dev pmx_telecom_i2s;
 extern struct pmx_dev pmx_telecom_boot_pins;
-extern struct pmx_dev pmx_telecom_sdio_4bit;
-extern struct pmx_dev pmx_telecom_sdio_8bit;
+extern struct pmx_dev pmx_telecom_sdhci_4bit;
+extern struct pmx_dev pmx_telecom_sdhci_8bit;
 extern struct pmx_dev pmx_gpio1;
 
 /* Add spear300 machine function declarations here */
@@ -172,14 +172,14 @@ extern struct pmx_dev pmx_clcd;
 extern struct pmx_dev pmx_emi;
 extern struct pmx_dev pmx_fsmc;
 extern struct pmx_dev pmx_spp;
-extern struct pmx_dev pmx_sdio;
+extern struct pmx_dev pmx_sdhci;
 extern struct pmx_dev pmx_i2s;
 extern struct pmx_dev pmx_uart1;
 extern struct pmx_dev pmx_uart1_modem;
 extern struct pmx_dev pmx_uart2;
 extern struct pmx_dev pmx_touchscreen;
 extern struct pmx_dev pmx_can;
-extern struct pmx_dev pmx_sdio_led;
+extern struct pmx_dev pmx_sdhci_led;
 extern struct pmx_dev pmx_pwm0;
 extern struct pmx_dev pmx_pwm1;
 extern struct pmx_dev pmx_pwm2;
index 7f940b818473c0484e7acb61587d69d9e18cf6e6..a1a7f481866d43a4057dbf297ce29e27a7eb0f1b 100644 (file)
@@ -69,7 +69,7 @@
 #define IRQ_CLCD                               IRQ_GEN_RAS_3
 
 /* IRQs sharing IRQ_INTRCOMM_RAS_ARM */
-#define IRQ_SDIO                               IRQ_INTRCOMM_RAS_ARM
+#define IRQ_SDHCI                              IRQ_INTRCOMM_RAS_ARM
 
 /* GPIO pins virtual irqs */
 #define SPEAR_GPIO_INT_BASE                    (VIRQ_START + 9)
 #define VIRQ_SPP                               (VIRQ_START + 2)
 
 /* IRQs sharing IRQ_GEN_RAS_2 */
-#define IRQ_SDIO                               IRQ_GEN_RAS_2
+#define IRQ_SDHCI                              IRQ_GEN_RAS_2
 
 /* IRQs sharing IRQ_GEN_RAS_3 */
 #define VIRQ_PLGPIO                            (VIRQ_START + 3)
index ccaa76522ee2a649899e80703e9cc1bee08db880..1059d5a118747009da5961c6d33fa84881f6d6d0 100644 (file)
@@ -39,8 +39,8 @@
 #define SPEAR300_CLCD_BASE             0x60000000
 #define SPEAR300_CLCD_SIZE             0x10000000
 
-#define SPEAR300_SDIO_BASE             0x70000000
-#define SPEAR300_SDIO_SIZE             0x10000000
+#define SPEAR300_SDHCI_BASE            0x70000000
+#define SPEAR300_SDHCI_SIZE            0x10000000
 
 #define SPEAR300_NAND_0_BASE           0x80000000
 #define SPEAR300_NAND_0_SIZE           0x04000000
index 53677e464d4b3f90f8b0183587089a56ee3b1244..1c9d310c8a958aa67cb3bb29c95d909dbe81861b 100644 (file)
@@ -25,8 +25,8 @@
 #define SPEAR320_I2S_BASE              0x60000000
 #define SPEAR320_I2S_SIZE              0x10000000
 
-#define SPEAR320_SDIO_BASE             0x70000000
-#define SPEAR320_SDIO_SIZE             0x10000000
+#define SPEAR320_SDHCI_BASE            0x70000000
+#define SPEAR320_SDHCI_SIZE            0x10000000
 
 #define SPEAR320_CLCD_BASE             0x90000000
 #define SPEAR320_CLCD_SIZE             0x10000000
@@ -74,7 +74,7 @@
 #define EMI_IRQ_MASK                   (1 << 7)
 #define CLCD_IRQ_MASK                  (1 << 8)
 #define SPP_IRQ_MASK                   (1 << 9)
-#define SDIO_IRQ_MASK                  (1 << 10)
+#define SDHCI_IRQ_MASK                 (1 << 10)
 #define CAN_U_IRQ_MASK                 (1 << 11)
 #define CAN_L_IRQ_MASK                 (1 << 12)
 #define UART1_IRQ_MASK                 (1 << 13)
index e15c68480d28de310a030f54bfc83761fc45463d..42dc29b9fd6eb27a237c4b11238f74cc3cd5e553 100644 (file)
@@ -310,7 +310,7 @@ struct pmx_dev pmx_telecom_boot_pins = {
        .enb_on_reset = 1,
 };
 
-struct pmx_dev_mode pmx_telecom_sdio_4bit_modes[] = {
+struct pmx_dev_mode pmx_telecom_sdhci_4bit_modes[] = {
        {
                .ids = PHOTO_FRAME_MODE | LEND_IP_PHONE_MODE |
                        HEND_IP_PHONE_MODE | LEND_WIFI_PHONE_MODE |
@@ -323,14 +323,14 @@ struct pmx_dev_mode pmx_telecom_sdio_4bit_modes[] = {
        },
 };
 
-struct pmx_dev pmx_telecom_sdio_4bit = {
-       .name = "telecom_sdio_4bit",
-       .modes = pmx_telecom_sdio_4bit_modes,
-       .mode_count = ARRAY_SIZE(pmx_telecom_sdio_4bit_modes),
+struct pmx_dev pmx_telecom_sdhci_4bit = {
+       .name = "telecom_sdhci_4bit",
+       .modes = pmx_telecom_sdhci_4bit_modes,
+       .mode_count = ARRAY_SIZE(pmx_telecom_sdhci_4bit_modes),
        .enb_on_reset = 1,
 };
 
-struct pmx_dev_mode pmx_telecom_sdio_8bit_modes[] = {
+struct pmx_dev_mode pmx_telecom_sdhci_8bit_modes[] = {
        {
                .ids = PHOTO_FRAME_MODE | LEND_IP_PHONE_MODE |
                        HEND_IP_PHONE_MODE | LEND_WIFI_PHONE_MODE |
@@ -342,10 +342,10 @@ struct pmx_dev_mode pmx_telecom_sdio_8bit_modes[] = {
        },
 };
 
-struct pmx_dev pmx_telecom_sdio_8bit = {
-       .name = "telecom_sdio_8bit",
-       .modes = pmx_telecom_sdio_8bit_modes,
-       .mode_count = ARRAY_SIZE(pmx_telecom_sdio_8bit_modes),
+struct pmx_dev pmx_telecom_sdhci_8bit = {
+       .name = "telecom_sdhci_8bit",
+       .modes = pmx_telecom_sdhci_8bit_modes,
+       .mode_count = ARRAY_SIZE(pmx_telecom_sdhci_8bit_modes),
        .enb_on_reset = 1,
 };
 
index 77c9b83acb15ce962290172411e0064ee855b09a..42d2253ef540b803e493fa7db3cf0dc771539816 100644 (file)
@@ -28,7 +28,7 @@ static struct pmx_dev *pmx_devs[] = {
        /* spear300 specific devices */
        &pmx_fsmc_2_chips,
        &pmx_clcd,
-       &pmx_telecom_sdio_4bit,
+       &pmx_telecom_sdhci_4bit,
        &pmx_gpio1,
 };
 
index c25f9096ff25557e99c6300550f50601eb368f2c..6dba6286c33c37d0831eead7ae84c65f5e417c47 100644 (file)
@@ -110,7 +110,7 @@ struct pmx_dev pmx_spp = {
        .enb_on_reset = 1,
 };
 
-struct pmx_dev_mode pmx_sdio_modes[] = {
+struct pmx_dev_mode pmx_sdhci_modes[] = {
        {
                .ids = AUTO_NET_SMII_MODE | AUTO_NET_MII_MODE |
                        SMALL_PRINTERS_MODE,
@@ -118,10 +118,10 @@ struct pmx_dev_mode pmx_sdio_modes[] = {
        },
 };
 
-struct pmx_dev pmx_sdio = {
-       .name = "sdio",
-       .modes = pmx_sdio_modes,
-       .mode_count = ARRAY_SIZE(pmx_sdio_modes),
+struct pmx_dev pmx_sdhci = {
+       .name = "sdhci",
+       .modes = pmx_sdhci_modes,
+       .mode_count = ARRAY_SIZE(pmx_sdhci_modes),
        .enb_on_reset = 1,
 };
 
@@ -215,17 +215,17 @@ struct pmx_dev pmx_can = {
        .enb_on_reset = 1,
 };
 
-struct pmx_dev_mode pmx_sdio_led_modes[] = {
+struct pmx_dev_mode pmx_sdhci_led_modes[] = {
        {
                .ids = AUTO_NET_SMII_MODE | AUTO_NET_MII_MODE,
                .mask = PMX_SSP_CS_MASK,
        },
 };
 
-struct pmx_dev pmx_sdio_led = {
-       .name = "sdio_led",
-       .modes = pmx_sdio_led_modes,
-       .mode_count = ARRAY_SIZE(pmx_sdio_led_modes),
+struct pmx_dev pmx_sdhci_led = {
+       .name = "sdhci_led",
+       .modes = pmx_sdhci_led_modes,
+       .mode_count = ARRAY_SIZE(pmx_sdhci_led_modes),
        .enb_on_reset = 1,
 };
 
index 0b80a1584cc376ea57b3131a5160d4afeaf4de80..8213e4b66c14b9d051469af7c9d1f46d2bb1d0dd 100644 (file)
@@ -26,7 +26,7 @@ static struct pmx_dev *pmx_devs[] = {
 
        /* spear320 specific devices */
        &pmx_fsmc,
-       &pmx_sdio,
+       &pmx_sdhci,
        &pmx_i2s,
        &pmx_uart1,
        &pmx_uart2,