diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-22 16:32:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-22 16:32:53 -0400 |
commit | f6a26ae7699416d86bea8cb68ce413571e9cab3c (patch) | |
tree | e91b7a7c7513151fe583721f7435cc9f5cdc4f42 /arch/arm/mach-omap2/board-omap4panda.c | |
parent | cdd3a354a05b0c33fe33ab11a0fb0838396cad19 (diff) | |
parent | 48a5765e5104f1afd22c75c5030af3a6cf24b4c3 (diff) |
Merge tag 'boards' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull arm-soc board specific changes from Olof Johansson:
"While we generally attempt to get rid of board specific files and
replace them with device tree based descriptions, a lot of platforms
have not come that far:
In shmobile, we add two new board files because their recently started
effort to add DT support has not proceeded enough to use it for all of
the important hardware.
In Kirkwood, we are adding support for new boards with a combination
of DT and board file contents in multiple cases.
pxa/mmp and imx are extending support for existing board files but not
adding new ones."
Fix up trivial conflicts in arch/arm/mach-{mmp/ttc_dkb.c,shmobile/{Kconfig,Makefile}}
* tag 'boards' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (94 commits)
ARM: shmobile: fix smp build
ARM: kirkwood: Add support for RaidSonic IB-NAS6210/6220 using devicetree
kirkwood: Add iconnect support
orion/kirkwood: create a generic function for gpio led blinking
kirkwood/orion: fix orion_gpio_set_blink
ARM: kirkwood: Define DNS-320/DNS-325 NAND in fdt
kirkwood: Allow nand to be configured via. devicetree
mtd: Add orion_nand devicetree bindings
ARM: kirkwood: Basic support for DNS-320 and DNS-325
ARM: mach-shmobile: Use DT_MACHINE for armadillo 800 eva
ARM: mach-shmobile: Use DT_MACHINE for KZM9G
ARM: pxa: hx4700: Add Synaptics NavPoint touchpad
ARM: pxa: Use REGULATOR_SUPPLY macro
ARM: mach-shmobile: kzm9g: enable SMP boot
ARM: mach-shmobile: kzm9g: defconfig update
ARM: mach-shmobile: kzm9g: add PCF8757 gpio-key
ARM: mach-shmobile: kzm9g: add SDHI support
ARM: mach-shmobile: kzm9g: add MMCIF support
ARM: mach-shmobile: kzm9g: correct screen direction
ARM: mach-shmobile: sh73a0.h: add GPIO_NR
...
Diffstat (limited to 'arch/arm/mach-omap2/board-omap4panda.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap4panda.c | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index bb75eb091a88..68b8fc9ff010 100644 --- a/arch/arm/mach-omap2/board-omap4panda.c +++ b/arch/arm/mach-omap2/board-omap4panda.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/mfd/twl6040.h> | 28 | #include <linux/mfd/twl6040.h> |
29 | #include <linux/regulator/machine.h> | 29 | #include <linux/regulator/machine.h> |
30 | #include <linux/regulator/fixed.h> | 30 | #include <linux/regulator/fixed.h> |
31 | #include <linux/ti_wilink_st.h> | ||
31 | #include <linux/wl12xx.h> | 32 | #include <linux/wl12xx.h> |
32 | #include <linux/platform_data/omap-abe-twl6040.h> | 33 | #include <linux/platform_data/omap-abe-twl6040.h> |
33 | 34 | ||
@@ -58,12 +59,21 @@ | |||
58 | #define HDMI_GPIO_HPD 63 /* Hotplug detect */ | 59 | #define HDMI_GPIO_HPD 63 /* Hotplug detect */ |
59 | 60 | ||
60 | /* wl127x BT, FM, GPS connectivity chip */ | 61 | /* wl127x BT, FM, GPS connectivity chip */ |
61 | static int wl1271_gpios[] = {46, -1, -1}; | 62 | static struct ti_st_plat_data wilink_platform_data = { |
63 | .nshutdown_gpio = 46, | ||
64 | .dev_name = "/dev/ttyO1", | ||
65 | .flow_cntrl = 1, | ||
66 | .baud_rate = 3000000, | ||
67 | .chip_enable = NULL, | ||
68 | .suspend = NULL, | ||
69 | .resume = NULL, | ||
70 | }; | ||
71 | |||
62 | static struct platform_device wl1271_device = { | 72 | static struct platform_device wl1271_device = { |
63 | .name = "kim", | 73 | .name = "kim", |
64 | .id = -1, | 74 | .id = -1, |
65 | .dev = { | 75 | .dev = { |
66 | .platform_data = &wl1271_gpios, | 76 | .platform_data = &wilink_platform_data, |
67 | }, | 77 | }, |
68 | }; | 78 | }; |
69 | 79 | ||
@@ -117,6 +127,11 @@ static struct platform_device panda_abe_audio = { | |||
117 | }, | 127 | }, |
118 | }; | 128 | }; |
119 | 129 | ||
130 | static struct platform_device panda_hdmi_audio_codec = { | ||
131 | .name = "hdmi-audio-codec", | ||
132 | .id = -1, | ||
133 | }; | ||
134 | |||
120 | static struct platform_device btwilink_device = { | 135 | static struct platform_device btwilink_device = { |
121 | .name = "btwilink", | 136 | .name = "btwilink", |
122 | .id = -1, | 137 | .id = -1, |
@@ -126,6 +141,7 @@ static struct platform_device *panda_devices[] __initdata = { | |||
126 | &leds_gpio, | 141 | &leds_gpio, |
127 | &wl1271_device, | 142 | &wl1271_device, |
128 | &panda_abe_audio, | 143 | &panda_abe_audio, |
144 | &panda_hdmi_audio_codec, | ||
129 | &btwilink_device, | 145 | &btwilink_device, |
130 | }; | 146 | }; |
131 | 147 | ||
@@ -274,7 +290,9 @@ static int __init omap4_panda_i2c_init(void) | |||
274 | TWL_COMMON_REGULATOR_VANA | | 290 | TWL_COMMON_REGULATOR_VANA | |
275 | TWL_COMMON_REGULATOR_VCXIO | | 291 | TWL_COMMON_REGULATOR_VCXIO | |
276 | TWL_COMMON_REGULATOR_VUSB | | 292 | TWL_COMMON_REGULATOR_VUSB | |
277 | TWL_COMMON_REGULATOR_CLK32KG); | 293 | TWL_COMMON_REGULATOR_CLK32KG | |
294 | TWL_COMMON_REGULATOR_V1V8 | | ||
295 | TWL_COMMON_REGULATOR_V2V1); | ||
278 | omap4_pmic_init("twl6030", &omap4_panda_twldata, | 296 | omap4_pmic_init("twl6030", &omap4_panda_twldata, |
279 | &twl6040_data, OMAP44XX_IRQ_SYS_2N); | 297 | &twl6040_data, OMAP44XX_IRQ_SYS_2N); |
280 | omap_register_i2c_bus(2, 400, NULL, 0); | 298 | omap_register_i2c_bus(2, 400, NULL, 0); |