MIPS: Alchemy: drop DB1000 IrDA support bits
authorManuel Lauss <manuel.lauss@gmail.com>
Wed, 19 Dec 2018 07:08:01 +0000 (08:08 +0100)
committerPaul Burton <paul.burton@mips.com>
Sun, 23 Dec 2018 15:58:22 +0000 (07:58 -0800)
The IrDA drivers are gone, drop the now unused DB1000 board
support for it.

Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Linux-MIPS <linux-mips@vger.kernel.org>
arch/mips/alchemy/devboards/db1000.c

index 13e3c84859fe760c0a4c109211be06f52135c58f..aab842a8ddf32568524a44e0632dbe42f959687d 100644 (file)
@@ -389,58 +389,6 @@ static struct platform_device db1100_mmc1_dev = {
 
 /******************************************************************************/
 
-static void db1000_irda_set_phy_mode(int mode)
-{
-       unsigned short mask = BCSR_RESETS_IRDA_MODE_MASK | BCSR_RESETS_FIR_SEL;
-
-       switch (mode) {
-       case AU1000_IRDA_PHY_MODE_OFF:
-               bcsr_mod(BCSR_RESETS, mask, BCSR_RESETS_IRDA_MODE_OFF);
-               break;
-       case AU1000_IRDA_PHY_MODE_SIR:
-               bcsr_mod(BCSR_RESETS, mask, BCSR_RESETS_IRDA_MODE_FULL);
-               break;
-       case AU1000_IRDA_PHY_MODE_FIR:
-               bcsr_mod(BCSR_RESETS, mask, BCSR_RESETS_IRDA_MODE_FULL |
-                                           BCSR_RESETS_FIR_SEL);
-               break;
-       }
-}
-
-static struct au1k_irda_platform_data db1000_irda_platdata = {
-       .set_phy_mode   = db1000_irda_set_phy_mode,
-};
-
-static struct resource au1000_irda_res[] = {
-       [0] = {
-               .start  = AU1000_IRDA_PHYS_ADDR,
-               .end    = AU1000_IRDA_PHYS_ADDR + 0x0fff,
-               .flags  = IORESOURCE_MEM,
-       },
-       [1] = {
-               .start  = AU1000_IRDA_TX_INT,
-               .end    = AU1000_IRDA_TX_INT,
-               .flags  = IORESOURCE_IRQ,
-       },
-       [2] = {
-               .start  = AU1000_IRDA_RX_INT,
-               .end    = AU1000_IRDA_RX_INT,
-               .flags  = IORESOURCE_IRQ,
-       },
-};
-
-static struct platform_device db1000_irda_dev = {
-       .name   = "au1000-irda",
-       .id     = -1,
-       .dev    = {
-               .platform_data = &db1000_irda_platdata,
-       },
-       .resource       = au1000_irda_res,
-       .num_resources  = ARRAY_SIZE(au1000_irda_res),
-};
-
-/******************************************************************************/
-
 static struct ads7846_platform_data db1100_touch_pd = {
        .model          = 7846,
        .vref_mv        = 3300,
@@ -497,15 +445,10 @@ static struct platform_device *db1x00_devs[] = {
        &db1x00_audio_dev,
 };
 
-static struct platform_device *db1000_devs[] = {
-       &db1000_irda_dev,
-};
-
 static struct platform_device *db1100_devs[] = {
        &au1100_lcd_device,
        &db1100_mmc0_dev,
        &db1100_mmc1_dev,
-       &db1000_irda_dev,
 };
 
 int __init db1000_dev_setup(void)
@@ -565,7 +508,6 @@ int __init db1000_dev_setup(void)
                d1 = 3; /* GPIO number, NOT irq! */
                s0 = AU1000_GPIO1_INT;
                s1 = AU1000_GPIO4_INT;
-               platform_add_devices(db1000_devs, ARRAY_SIZE(db1000_devs));
        } else if ((board == BCSR_WHOAMI_PB1500) ||
                   (board == BCSR_WHOAMI_PB1500R2)) {
                c0 = AU1500_GPIO203_INT;