aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-armadillo800eva.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-10-01 21:48:30 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-01 21:48:30 -0400
commit95360fd63606918167a5365b770a6d28d333f0ed (patch)
tree37b2d868fb70d3ef214345e56d7993a0c73a0ddc /arch/arm/mach-shmobile/board-armadillo800eva.c
parent8f446a7a069e0af0639385f67c78ee2279bca04c (diff)
parente6ca4ae895e9fbf8b96d3ee1dd44ea96e95babad (diff)
Merge tag 'boards' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM soc board specific updates from Olof Johansson: "Misc board updates: - Greg added a handful of boards to KS8695 (since he has stepped up to maintain it). - Qualcomm has added DT-only board support for a couple of their newer SoCs. - misc other updates for Samsung and Freescale boards." Fix up trivial conflict in arch/arm/mach-shmobile/board-armadillo800eva.c due to gpio device data being added next to hdmi device data that got moved. * tag 'boards' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: ARM: msm: Allow 8960 and 8660 to compile together ARM: msm: Allow msm_iomap-8x60 and msm_iomap-8960 to coexist ARM: EXYNOS: Add generic PWM lookup support for SMDKV310 ARM: EXYNOS: Add generic PWM lookup support for SMDK4X12 ARM: EXYNOS: Use generic pwm driver in Origen board ARM: shmobile: armadillo800eva: Add support RTC ARM: ks8695: add board support for the OpenGear boards based on the KS8695 ARM: ks8695: add board support for the SnapGear boards based on the KS8695 ARM: dts: Add heartbeat gpio-leds support to Origen ARM: dts: Use active low flag for gpio-keys on Origen ARM: shmobile: marzen: enable thermal sensor ARM: shmobile: marzen: fixup regulator id for smsc911x ARM: shmobile: marzen: add SDHI0 support ARM: mmp: enable debug uart port in defconfig ARM: mmp: implement DEBUG_LL port choice ARM: S3C64XX: Register audio platform devices for Bells on Cragganmore ARM: S3C64XX: Update configuration for WM5102 module on Cragganmore ARM: mx27pdk: Add audio support ARM: ttc_dkb: add nand support
Diffstat (limited to 'arch/arm/mach-shmobile/board-armadillo800eva.c')
-rw-r--r--arch/arm/mach-shmobile/board-armadillo800eva.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c
index 45b33e02dff5..9615a78d30b2 100644
--- a/arch/arm/mach-shmobile/board-armadillo800eva.c
+++ b/arch/arm/mach-shmobile/board-armadillo800eva.c
@@ -37,6 +37,7 @@
37#include <linux/mmc/host.h> 37#include <linux/mmc/host.h>
38#include <linux/mmc/sh_mmcif.h> 38#include <linux/mmc/sh_mmcif.h>
39#include <linux/mmc/sh_mobile_sdhi.h> 39#include <linux/mmc/sh_mobile_sdhi.h>
40#include <linux/i2c-gpio.h>
40#include <mach/common.h> 41#include <mach/common.h>
41#include <mach/irqs.h> 42#include <mach/irqs.h>
42#include <mach/r8a7740.h> 43#include <mach/r8a7740.h>
@@ -877,6 +878,21 @@ static struct platform_device fsi_hdmi_device = {
877 }, 878 },
878}; 879};
879 880
881/* RTC: RTC connects i2c-gpio. */
882static struct i2c_gpio_platform_data i2c_gpio_data = {
883 .sda_pin = GPIO_PORT208,
884 .scl_pin = GPIO_PORT91,
885 .udelay = 5, /* 100 kHz */
886};
887
888static struct platform_device i2c_gpio_device = {
889 .name = "i2c-gpio",
890 .id = 2,
891 .dev = {
892 .platform_data = &i2c_gpio_data,
893 },
894};
895
880/* I2C */ 896/* I2C */
881static struct i2c_board_info i2c0_devices[] = { 897static struct i2c_board_info i2c0_devices[] = {
882 { 898 {
@@ -888,6 +904,13 @@ static struct i2c_board_info i2c0_devices[] = {
888 }, 904 },
889}; 905};
890 906
907static struct i2c_board_info i2c2_devices[] = {
908 {
909 I2C_BOARD_INFO("s35390a", 0x30),
910 .type = "s35390a",
911 },
912};
913
891/* 914/*
892 * board devices 915 * board devices
893 */ 916 */
@@ -904,6 +927,7 @@ static struct platform_device *eva_devices[] __initdata = {
904 &fsi_device, 927 &fsi_device,
905 &fsi_wm8978_device, 928 &fsi_wm8978_device,
906 &fsi_hdmi_device, 929 &fsi_hdmi_device,
930 &i2c_gpio_device,
907}; 931};
908 932
909static void __init eva_clock_init(void) 933static void __init eva_clock_init(void)
@@ -1174,6 +1198,7 @@ static void __init eva_init(void)
1174#endif 1198#endif
1175 1199
1176 i2c_register_board_info(0, i2c0_devices, ARRAY_SIZE(i2c0_devices)); 1200 i2c_register_board_info(0, i2c0_devices, ARRAY_SIZE(i2c0_devices));
1201 i2c_register_board_info(2, i2c2_devices, ARRAY_SIZE(i2c2_devices));
1177 1202
1178 r8a7740_add_standard_devices(); 1203 r8a7740_add_standard_devices();
1179 1204