Re: [PATCH 08/10] ARM: OMAP2+: Drop legacy code for gpmc-smc91x.c

2014-10-30 Thread Roger Quadros
On 10/30/2014 02:29 AM, Tony Lindgren wrote:
> This code was only used by 2430sdp, 3430sdp, and n900 development
> boards.
> 
> The 2430sdp is already device tree only, and all the users of the
> 3430sdp and n900 development boards are already booting in device
> tree mode, so we can drop the legacy smc91x support.
> 
> Cc: Roger Quadros 
> Signed-off-by: Tony Lindgren 

Acked-by: Roger Quadros 

cheers,
-roger

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 08/10] ARM: OMAP2+: Drop legacy code for gpmc-smc91x.c

2014-10-29 Thread Tony Lindgren
This code was only used by 2430sdp, 3430sdp, and n900 development
boards.

The 2430sdp is already device tree only, and all the users of the
3430sdp and n900 development boards are already booting in device
tree mode, so we can drop the legacy smc91x support.

Cc: Roger Quadros 
Signed-off-by: Tony Lindgren 
---
 arch/arm/mach-omap2/Makefile |   3 -
 arch/arm/mach-omap2/board-3430sdp.c  |  28 
 arch/arm/mach-omap2/board-rx51-peripherals.c |  29 -
 arch/arm/mach-omap2/gpmc-smc91x.c| 186 ---
 arch/arm/mach-omap2/gpmc-smc91x.h|  42 --
 5 files changed, 288 deletions(-)
 delete mode 100644 arch/arm/mach-omap2/gpmc-smc91x.c
 delete mode 100644 arch/arm/mach-omap2/gpmc-smc91x.h

diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index d9e9412..3e824f8 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -284,9 +284,6 @@ obj-y   += $(onenand-m) 
$(onenand-y)
 nand-$(CONFIG_MTD_NAND_OMAP2)  := gpmc-nand.o
 obj-y  += $(nand-m) $(nand-y)
 
-smc91x-$(CONFIG_SMC91X):= gpmc-smc91x.o
-obj-y  += $(smc91x-m) $(smc91x-y)
-
 smsc911x-$(CONFIG_SMSC911X):= gpmc-smsc911x.o
 obj-y  += $(smsc911x-m) $(smsc911x-y)
 ifneq ($(CONFIG_HWSPINLOCK_OMAP),)
diff --git a/arch/arm/mach-omap2/board-3430sdp.c 
b/arch/arm/mach-omap2/board-3430sdp.c
index d21a304..9857882 100644
--- a/arch/arm/mach-omap2/board-3430sdp.c
+++ b/arch/arm/mach-omap2/board-3430sdp.c
@@ -38,7 +38,6 @@
 #include 
 
 #include "gpmc.h"
-#include "gpmc-smc91x.h"
 
 #include "soc.h"
 #include "board-flash.h"
@@ -407,32 +406,6 @@ static int __init omap3430_i2c_init(void)
return 0;
 }
 
-#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
-
-static struct omap_smc91x_platform_data board_smc91x_data = {
-   .cs = 3,
-   .flags  = GPMC_MUX_ADD_DATA | GPMC_TIMINGS_SMC91C96 |
-   IORESOURCE_IRQ_LOWLEVEL,
-};
-
-static void __init board_smc91x_init(void)
-{
-   if (omap_rev() > OMAP3430_REV_ES1_0)
-   board_smc91x_data.gpio_irq = 6;
-   else
-   board_smc91x_data.gpio_irq = 29;
-
-   gpmc_smc91x_init(&board_smc91x_data);
-}
-
-#else
-
-static inline void board_smc91x_init(void)
-{
-}
-
-#endif
-
 static void enable_board_wakeup_source(void)
 {
/* T2 interrupt line (keypad) */
@@ -609,7 +582,6 @@ static void __init omap_3430sdp_init(void)
omap_sdrc_init(hyb18m512160af6_sdrc_params, NULL);
usb_bind_phy("musb-hdrc.0.auto", 0, "twl4030_usb");
usb_musb_init(NULL);
-   board_smc91x_init();
board_flash_init(sdp_flash_partitions, chip_sel_3430, 0);
sdp3430_display_init();
enable_board_wakeup_source();
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c 
b/arch/arm/mach-omap2/board-rx51-peripherals.c
index ddfc8df..30e7d4c 100644
--- a/arch/arm/mach-omap2/board-rx51-peripherals.c
+++ b/arch/arm/mach-omap2/board-rx51-peripherals.c
@@ -32,7 +32,6 @@
 
 #include "common.h"
 #include 
-#include "gpmc-smc91x.h"
 
 #include "board-rx51.h"
 
@@ -1146,33 +1145,6 @@ static struct omap_onenand_platform_data 
board_onenand_data[] = {
 };
 #endif
 
-#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
-
-static struct omap_smc91x_platform_data board_smc91x_data = {
-   .cs = 1,
-   .gpio_irq   = 54,
-   .gpio_pwrdwn= 86,
-   .gpio_reset = 164,
-   .flags  = GPMC_TIMINGS_SMC91C96 | IORESOURCE_IRQ_HIGHLEVEL,
-};
-
-static void __init board_smc91x_init(void)
-{
-   omap_mux_init_gpio(54, OMAP_PIN_INPUT_PULLDOWN);
-   omap_mux_init_gpio(86, OMAP_PIN_OUTPUT);
-   omap_mux_init_gpio(164, OMAP_PIN_OUTPUT);
-
-   gpmc_smc91x_init(&board_smc91x_data);
-}
-
-#else
-
-static inline void board_smc91x_init(void)
-{
-}
-
-#endif
-
 static struct gpio rx51_wl1251_gpios[] __initdata = {
{ RX51_WL1251_IRQ_GPIO,   GPIOF_IN, "wl1251 irq"},
 };
@@ -1303,7 +1275,6 @@ void __init rx51_peripherals_init(void)
rx51_i2c_init();
regulator_has_full_constraints();
gpmc_onenand_init(board_onenand_data);
-   board_smc91x_init();
rx51_add_gpio_keys();
rx51_init_wl1251();
rx51_init_tsc2005();
diff --git a/arch/arm/mach-omap2/gpmc-smc91x.c 
b/arch/arm/mach-omap2/gpmc-smc91x.c
deleted file mode 100644
index 61a0635..000
--- a/arch/arm/mach-omap2/gpmc-smc91x.c
+++ /dev/null
@@ -1,186 +0,0 @@
-/*
- * linux/arch/arm/mach-omap2/gpmc-smc91x.c
- *
- * Copyright (C) 2009 Nokia Corporation
- * Contact:Tony Lindgren
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */