diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2010-10-14 02:02:44 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-10-25 03:06:45 -0400 |
commit | 5112267e3f9af59e1439707cfe347cc8111d407a (patch) | |
tree | a31b59c56fdd5ec567381d1ddaa9818ae08ec8d1 /arch/arm/mach-s5pv210/mach-aquila.c | |
parent | d2e7eca36dde5ee8979362bed5b27e47b37e94a0 (diff) |
ARM: S5PV210: Add i2c information to Goni and Aquila board
This patch the I2C board information for the WM8994 used in the Goni/Aquila
as audio codec and adds the I2C platform drivers.
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s5pv210/mach-aquila.c')
-rw-r--r-- | arch/arm/mach-s5pv210/mach-aquila.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv210/mach-aquila.c b/arch/arm/mach-s5pv210/mach-aquila.c index bf772de6b0c3..b0974929dec7 100644 --- a/arch/arm/mach-s5pv210/mach-aquila.c +++ b/arch/arm/mach-s5pv210/mach-aquila.c | |||
@@ -404,6 +404,28 @@ static struct i2c_board_info i2c_gpio_pmic_devs[] __initdata = { | |||
404 | #endif | 404 | #endif |
405 | }; | 405 | }; |
406 | 406 | ||
407 | /* GPIO I2C AP 1.8V */ | ||
408 | #define AP_I2C_GPIO_BUS_5 5 | ||
409 | static struct i2c_gpio_platform_data aquila_i2c_gpio5_data = { | ||
410 | .sda_pin = S5PV210_MP05(3), /* XM0ADDR_11 */ | ||
411 | .scl_pin = S5PV210_MP05(2), /* XM0ADDR_10 */ | ||
412 | }; | ||
413 | |||
414 | static struct platform_device aquila_i2c_gpio5 = { | ||
415 | .name = "i2c-gpio", | ||
416 | .id = AP_I2C_GPIO_BUS_5, | ||
417 | .dev = { | ||
418 | .platform_data = &aquila_i2c_gpio5_data, | ||
419 | }, | ||
420 | }; | ||
421 | |||
422 | static struct i2c_board_info i2c_gpio5_devs[] __initdata = { | ||
423 | { | ||
424 | /* CS/ADDR = low 0x34 (FYI: high = 0x36) */ | ||
425 | I2C_BOARD_INFO("wm8994", 0x1a), | ||
426 | }, | ||
427 | }; | ||
428 | |||
407 | /* PMIC Power button */ | 429 | /* PMIC Power button */ |
408 | static struct gpio_keys_button aquila_gpio_keys_table[] = { | 430 | static struct gpio_keys_button aquila_gpio_keys_table[] = { |
409 | { | 431 | { |
@@ -475,6 +497,7 @@ static void aquila_setup_sdhci(void) | |||
475 | 497 | ||
476 | static struct platform_device *aquila_devices[] __initdata = { | 498 | static struct platform_device *aquila_devices[] __initdata = { |
477 | &aquila_i2c_gpio_pmic, | 499 | &aquila_i2c_gpio_pmic, |
500 | &aquila_i2c_gpio5, | ||
478 | &aquila_device_gpiokeys, | 501 | &aquila_device_gpiokeys, |
479 | &s3c_device_fb, | 502 | &s3c_device_fb, |
480 | &s5p_device_onenand, | 503 | &s5p_device_onenand, |
@@ -506,6 +529,10 @@ static void __init aquila_machine_init(void) | |||
506 | s3c_fimc_setname(1, "s5p-fimc"); | 529 | s3c_fimc_setname(1, "s5p-fimc"); |
507 | s3c_fimc_setname(2, "s5p-fimc"); | 530 | s3c_fimc_setname(2, "s5p-fimc"); |
508 | 531 | ||
532 | /* SOUND */ | ||
533 | i2c_register_board_info(AP_I2C_GPIO_BUS_5, i2c_gpio5_devs, | ||
534 | ARRAY_SIZE(i2c_gpio5_devs)); | ||
535 | |||
509 | /* FB */ | 536 | /* FB */ |
510 | s3c_fb_set_platdata(&aquila_lcd_pdata); | 537 | s3c_fb_set_platdata(&aquila_lcd_pdata); |
511 | 538 | ||