diff options
author | Olof Johansson <olof@lixom.net> | 2012-09-21 00:16:30 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-09-21 00:16:30 -0400 |
commit | b74aae9a2074e1caa2e40bf119f3a633f77c94e4 (patch) | |
tree | ba465514cff017a3213e65556674c68be5db29f6 /arch/arm/mach-omap2/board-omap3evm.c | |
parent | 5698bd757d55b1bb87edd1a9744ab09c142abfc2 (diff) | |
parent | b97ba3ab4e8ec88164a47c98c91955e90ecd7c6a (diff) |
Merge branch 'next/cleanup' into next/multiplatform
* next/cleanup: (358 commits)
ARM: tegra: harmony: fix ldo7 regulator-name
ARM: OMAP2+: Make omap4-keypad.h local
ARM: OMAP2+: Make l4_3xxx.h local
ARM: OMAP2+: Make l4_2xxx.h local
ARM: OMAP2+: Make l3_3xxx.h local
ARM: OMAP2+: Make l3_2xxx.h local
ARM: OMAP1: Move irda.h from plat to mach
ARM: OMAP2+: Make hdq1w.h local
ARM: OMAP2+: Make gpmc-smsc911x.h local
ARM: OMAP2+: Make gpmc-smc91x.h local
ARM: OMAP1: Move flash.h from plat to mach
ARM: OMAP2+: Make debug-devices.h local
ARM: OMAP1: Move board-voiceblue.h from plat to mach
ARM: OMAP1: Move board-sx1.h from plat to mach
ARM: OMAP2+: Make omap-wakeupgen.h local
ARM: OMAP2+: Make omap-secure.h local
ARM: OMAP2+: Make ctrl_module_wkup_44xx.h local
ARM: OMAP2+: Make ctrl_module_pad_wkup_44xx.h local
ARM: OMAP2+: Make ctrl_module_pad_core_44xx.h local
ARM: OMAP2+: Make ctrl_module_core_44xx.h local
...
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3evm.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3evm.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index 0d362e9f9cb9..3fe5f0f69c73 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -40,16 +40,14 @@ | |||
40 | #include <linux/mmc/host.h> | 40 | #include <linux/mmc/host.h> |
41 | #include <linux/export.h> | 41 | #include <linux/export.h> |
42 | 42 | ||
43 | #include <mach/hardware.h> | ||
44 | #include <asm/mach-types.h> | 43 | #include <asm/mach-types.h> |
45 | #include <asm/mach/arch.h> | 44 | #include <asm/mach/arch.h> |
46 | #include <asm/mach/map.h> | 45 | #include <asm/mach/map.h> |
47 | 46 | ||
48 | #include <plat/board.h> | ||
49 | #include <plat/usb.h> | 47 | #include <plat/usb.h> |
50 | #include <plat/nand.h> | 48 | #include <linux/platform_data/mtd-nand-omap2.h> |
51 | #include "common.h" | 49 | #include "common.h" |
52 | #include <plat/mcspi.h> | 50 | #include <linux/platform_data/spi-omap2-mcspi.h> |
53 | #include <video/omapdss.h> | 51 | #include <video/omapdss.h> |
54 | #include <video/omap-panel-tfp410.h> | 52 | #include <video/omap-panel-tfp410.h> |
55 | 53 | ||
@@ -75,6 +73,18 @@ | |||
75 | #define OMAP3EVM_GEN1_ETHR_GPIO_RST 64 | 73 | #define OMAP3EVM_GEN1_ETHR_GPIO_RST 64 |
76 | #define OMAP3EVM_GEN2_ETHR_GPIO_RST 7 | 74 | #define OMAP3EVM_GEN2_ETHR_GPIO_RST 7 |
77 | 75 | ||
76 | /* | ||
77 | * OMAP35x EVM revision | ||
78 | * Run time detection of EVM revision is done by reading Ethernet | ||
79 | * PHY ID - | ||
80 | * GEN_1 = 0x01150000 | ||
81 | * GEN_2 = 0x92200000 | ||
82 | */ | ||
83 | enum { | ||
84 | OMAP3EVM_BOARD_GEN_1 = 0, /* EVM Rev between A - D */ | ||
85 | OMAP3EVM_BOARD_GEN_2, /* EVM Rev >= Rev E */ | ||
86 | }; | ||
87 | |||
78 | static u8 omap3_evm_version; | 88 | static u8 omap3_evm_version; |
79 | 89 | ||
80 | u8 get_omap3_evm_rev(void) | 90 | u8 get_omap3_evm_rev(void) |
@@ -108,7 +118,7 @@ static void __init omap3_evm_get_revision(void) | |||
108 | } | 118 | } |
109 | 119 | ||
110 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) | 120 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) |
111 | #include <plat/gpmc-smsc911x.h> | 121 | #include "gpmc-smsc911x.h" |
112 | 122 | ||
113 | static struct omap_smsc911x_platform_data smsc911x_cfg = { | 123 | static struct omap_smsc911x_platform_data smsc911x_cfg = { |
114 | .cs = OMAP3EVM_SMSC911X_CS, | 124 | .cs = OMAP3EVM_SMSC911X_CS, |
@@ -377,9 +387,6 @@ static int omap3evm_twl_gpio_setup(struct device *dev, | |||
377 | } | 387 | } |
378 | 388 | ||
379 | static struct twl4030_gpio_platform_data omap3evm_gpio_data = { | 389 | static struct twl4030_gpio_platform_data omap3evm_gpio_data = { |
380 | .gpio_base = OMAP_MAX_GPIO_LINES, | ||
381 | .irq_base = TWL4030_GPIO_IRQ_BASE, | ||
382 | .irq_end = TWL4030_GPIO_IRQ_END, | ||
383 | .use_leds = true, | 390 | .use_leds = true, |
384 | .setup = omap3evm_twl_gpio_setup, | 391 | .setup = omap3evm_twl_gpio_setup, |
385 | }; | 392 | }; |
@@ -526,9 +533,6 @@ static int __init omap3_evm_i2c_init(void) | |||
526 | return 0; | 533 | return 0; |
527 | } | 534 | } |
528 | 535 | ||
529 | static struct omap_board_config_kernel omap3_evm_config[] __initdata = { | ||
530 | }; | ||
531 | |||
532 | static struct usbhs_omap_board_data usbhs_bdata __initdata = { | 536 | static struct usbhs_omap_board_data usbhs_bdata __initdata = { |
533 | 537 | ||
534 | .port_mode[0] = OMAP_USBHS_PORT_MODE_UNUSED, | 538 | .port_mode[0] = OMAP_USBHS_PORT_MODE_UNUSED, |
@@ -688,9 +692,6 @@ static void __init omap3_evm_init(void) | |||
688 | obm = (cpu_is_omap3630()) ? omap36x_board_mux : omap35x_board_mux; | 692 | obm = (cpu_is_omap3630()) ? omap36x_board_mux : omap35x_board_mux; |
689 | omap3_mux_init(obm, OMAP_PACKAGE_CBB); | 693 | omap3_mux_init(obm, OMAP_PACKAGE_CBB); |
690 | 694 | ||
691 | omap_board_config = omap3_evm_config; | ||
692 | omap_board_config_size = ARRAY_SIZE(omap3_evm_config); | ||
693 | |||
694 | omap_mux_init_gpio(63, OMAP_PIN_INPUT); | 695 | omap_mux_init_gpio(63, OMAP_PIN_INPUT); |
695 | omap_hsmmc_init(mmc); | 696 | omap_hsmmc_init(mmc); |
696 | 697 | ||