Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221157
b: refs/heads/master
c: 5112267
h: refs/heads/master
i:
  221155: bf1a6ec
v: v3
  • Loading branch information
Chanwoo Choi authored and Kukjin Kim committed Oct 25, 2010
1 parent ed767ee commit cd818ae
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d2e7eca36dde5ee8979362bed5b27e47b37e94a0
refs/heads/master: 5112267e3f9af59e1439707cfe347cc8111d407a
27 changes: 27 additions & 0 deletions trunk/arch/arm/mach-s5pv210/mach-aquila.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,28 @@ static struct i2c_board_info i2c_gpio_pmic_devs[] __initdata = {
#endif
};

/* GPIO I2C AP 1.8V */
#define AP_I2C_GPIO_BUS_5 5
static struct i2c_gpio_platform_data aquila_i2c_gpio5_data = {
.sda_pin = S5PV210_MP05(3), /* XM0ADDR_11 */
.scl_pin = S5PV210_MP05(2), /* XM0ADDR_10 */
};

static struct platform_device aquila_i2c_gpio5 = {
.name = "i2c-gpio",
.id = AP_I2C_GPIO_BUS_5,
.dev = {
.platform_data = &aquila_i2c_gpio5_data,
},
};

static struct i2c_board_info i2c_gpio5_devs[] __initdata = {
{
/* CS/ADDR = low 0x34 (FYI: high = 0x36) */
I2C_BOARD_INFO("wm8994", 0x1a),
},
};

/* PMIC Power button */
static struct gpio_keys_button aquila_gpio_keys_table[] = {
{
Expand Down Expand Up @@ -475,6 +497,7 @@ static void aquila_setup_sdhci(void)

static struct platform_device *aquila_devices[] __initdata = {
&aquila_i2c_gpio_pmic,
&aquila_i2c_gpio5,
&aquila_device_gpiokeys,
&s3c_device_fb,
&s5p_device_onenand,
Expand Down Expand Up @@ -506,6 +529,10 @@ static void __init aquila_machine_init(void)
s3c_fimc_setname(1, "s5p-fimc");
s3c_fimc_setname(2, "s5p-fimc");

/* SOUND */
i2c_register_board_info(AP_I2C_GPIO_BUS_5, i2c_gpio5_devs,
ARRAY_SIZE(i2c_gpio5_devs));

/* FB */
s3c_fb_set_platdata(&aquila_lcd_pdata);

Expand Down
27 changes: 27 additions & 0 deletions trunk/arch/arm/mach-s5pv210/mach-goni.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,28 @@ static struct i2c_board_info i2c_gpio_pmic_devs[] __initdata = {
#endif
};

/* GPIO I2C AP 1.8V */
#define AP_I2C_GPIO_BUS_5 5
static struct i2c_gpio_platform_data goni_i2c_gpio5_data = {
.sda_pin = S5PV210_MP05(3), /* XM0ADDR_11 */
.scl_pin = S5PV210_MP05(2), /* XM0ADDR_10 */
};

static struct platform_device goni_i2c_gpio5 = {
.name = "i2c-gpio",
.id = AP_I2C_GPIO_BUS_5,
.dev = {
.platform_data = &goni_i2c_gpio5_data,
},
};

static struct i2c_board_info i2c_gpio5_devs[] __initdata = {
{
/* CS/ADDR = low 0x34 (FYI: high = 0x36) */
I2C_BOARD_INFO("wm8994", 0x1a),
},
};

/* PMIC Power button */
static struct gpio_keys_button goni_gpio_keys_table[] = {
{
Expand Down Expand Up @@ -645,6 +667,7 @@ static struct platform_device *goni_devices[] __initdata = {
&s5p_device_onenand,
&goni_spi_gpio,
&goni_i2c_gpio_pmic,
&goni_i2c_gpio5,
&mmc2_fixed_voltage,
&goni_device_gpiokeys,
&s5p_device_fimc0,
Expand Down Expand Up @@ -689,6 +712,10 @@ static void __init goni_machine_init(void)
/* SDHCI */
goni_setup_sdhci();

/* SOUND */
i2c_register_board_info(AP_I2C_GPIO_BUS_5, i2c_gpio5_devs,
ARRAY_SIZE(i2c_gpio5_devs));

/* FB */
s3c_fb_set_platdata(&goni_lcd_pdata);

Expand Down

0 comments on commit cd818ae

Please sign in to comment.