diff options
Diffstat (limited to 'arch/arm/mach-s5pv210/mach-goni.c')
-rw-r--r-- | arch/arm/mach-s5pv210/mach-goni.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c index 1bae3f13f0a0..54d80f3fd5d0 100644 --- a/arch/arm/mach-s5pv210/mach-goni.c +++ b/arch/arm/mach-s5pv210/mach-goni.c | |||
@@ -545,6 +545,28 @@ static struct i2c_board_info i2c_gpio_pmic_devs[] __initdata = { | |||
545 | #endif | 545 | #endif |
546 | }; | 546 | }; |
547 | 547 | ||
548 | /* GPIO I2C AP 1.8V */ | ||
549 | #define AP_I2C_GPIO_BUS_5 5 | ||
550 | static struct i2c_gpio_platform_data goni_i2c_gpio5_data = { | ||
551 | .sda_pin = S5PV210_MP05(3), /* XM0ADDR_11 */ | ||
552 | .scl_pin = S5PV210_MP05(2), /* XM0ADDR_10 */ | ||
553 | }; | ||
554 | |||
555 | static struct platform_device goni_i2c_gpio5 = { | ||
556 | .name = "i2c-gpio", | ||
557 | .id = AP_I2C_GPIO_BUS_5, | ||
558 | .dev = { | ||
559 | .platform_data = &goni_i2c_gpio5_data, | ||
560 | }, | ||
561 | }; | ||
562 | |||
563 | static struct i2c_board_info i2c_gpio5_devs[] __initdata = { | ||
564 | { | ||
565 | /* CS/ADDR = low 0x34 (FYI: high = 0x36) */ | ||
566 | I2C_BOARD_INFO("wm8994", 0x1a), | ||
567 | }, | ||
568 | }; | ||
569 | |||
548 | /* PMIC Power button */ | 570 | /* PMIC Power button */ |
549 | static struct gpio_keys_button goni_gpio_keys_table[] = { | 571 | static struct gpio_keys_button goni_gpio_keys_table[] = { |
550 | { | 572 | { |
@@ -645,6 +667,7 @@ static struct platform_device *goni_devices[] __initdata = { | |||
645 | &s5p_device_onenand, | 667 | &s5p_device_onenand, |
646 | &goni_spi_gpio, | 668 | &goni_spi_gpio, |
647 | &goni_i2c_gpio_pmic, | 669 | &goni_i2c_gpio_pmic, |
670 | &goni_i2c_gpio5, | ||
648 | &mmc2_fixed_voltage, | 671 | &mmc2_fixed_voltage, |
649 | &goni_device_gpiokeys, | 672 | &goni_device_gpiokeys, |
650 | &s5p_device_fimc0, | 673 | &s5p_device_fimc0, |
@@ -689,6 +712,10 @@ static void __init goni_machine_init(void) | |||
689 | /* SDHCI */ | 712 | /* SDHCI */ |
690 | goni_setup_sdhci(); | 713 | goni_setup_sdhci(); |
691 | 714 | ||
715 | /* SOUND */ | ||
716 | i2c_register_board_info(AP_I2C_GPIO_BUS_5, i2c_gpio5_devs, | ||
717 | ARRAY_SIZE(i2c_gpio5_devs)); | ||
718 | |||
692 | /* FB */ | 719 | /* FB */ |
693 | s3c_fb_set_platdata(&goni_lcd_pdata); | 720 | s3c_fb_set_platdata(&goni_lcd_pdata); |
694 | 721 | ||