Commit b23bc66c authored by Mark Brown's avatar Mark Brown Committed by Kukjin Kim

ARM: S3C64XX: Handle new Amrut modules on Cragganmore

These use a different GPIO for the jack polarity selection.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 64aecb4a
...@@ -187,12 +187,13 @@ static struct regulator_init_data wm8994_ldo2 = { ...@@ -187,12 +187,13 @@ static struct regulator_init_data wm8994_ldo2 = {
static struct wm8994_pdata wm8994_pdata = { static struct wm8994_pdata wm8994_pdata = {
.gpio_base = CODEC_GPIO_BASE, .gpio_base = CODEC_GPIO_BASE,
.micb2_delay = 150,
.gpio_defaults = { .gpio_defaults = {
0x3, /* IRQ out, active high, CMOS */ 0x3, /* IRQ out, active high, CMOS */
}, },
.ldo = { .ldo = {
{ .init_data = &wm8994_ldo1, }, { .enable = S3C64XX_GPN(6), .init_data = &wm8994_ldo1, },
{ .init_data = &wm8994_ldo2, }, { .enable = S3C64XX_GPN(4), .init_data = &wm8994_ldo2, },
}, },
}; };
...@@ -203,7 +204,7 @@ static const struct i2c_board_info wm1277_devs[] = { ...@@ -203,7 +204,7 @@ static const struct i2c_board_info wm1277_devs[] = {
}, },
}; };
static struct arizona_pdata wm5102_pdata = { static struct arizona_pdata wm5102_reva_pdata = {
.ldoena = S3C64XX_GPN(7), .ldoena = S3C64XX_GPN(7),
.gpio_base = CODEC_GPIO_BASE, .gpio_base = CODEC_GPIO_BASE,
.irq_active_high = true, .irq_active_high = true,
...@@ -218,6 +219,31 @@ static struct s3c64xx_spi_csinfo wm5102_spi_csinfo = { ...@@ -218,6 +219,31 @@ static struct s3c64xx_spi_csinfo wm5102_spi_csinfo = {
.line = S3C64XX_GPN(5), .line = S3C64XX_GPN(5),
}; };
static struct spi_board_info wm5102_reva_spi_devs[] = {
[0] = {
.modalias = "wm5102",
.max_speed_hz = 10 * 1000 * 1000,
.bus_num = 0,
.chip_select = 1,
.mode = SPI_MODE_0,
.irq = GLENFARCLAS_PMIC_IRQ_BASE +
WM831X_IRQ_GPIO_2,
.controller_data = &wm5102_spi_csinfo,
.platform_data = &wm5102_reva_pdata,
},
};
static struct arizona_pdata wm5102_pdata = {
.ldoena = S3C64XX_GPN(7),
.gpio_base = CODEC_GPIO_BASE,
.irq_active_high = true,
.micd_pol_gpio = CODEC_GPIO_BASE + 2,
.gpio_defaults = {
[2] = 0x10000, /* AIF3TXLRCLK */
[3] = 0x4, /* OPCLK */
},
};
static struct spi_board_info wm5102_spi_devs[] = { static struct spi_board_info wm5102_spi_devs[] = {
[0] = { [0] = {
.modalias = "wm5102", .modalias = "wm5102",
...@@ -278,6 +304,9 @@ static __devinitdata const struct { ...@@ -278,6 +304,9 @@ static __devinitdata const struct {
{ .id = 0x3c, .rev = 0xff, .name = "1273-EV1 Longmorn" }, { .id = 0x3c, .rev = 0xff, .name = "1273-EV1 Longmorn" },
{ .id = 0x3d, .rev = 0xff, .name = "1277-EV1 Littlemill", { .id = 0x3d, .rev = 0xff, .name = "1277-EV1 Littlemill",
.i2c_devs = wm1277_devs, .num_i2c_devs = ARRAY_SIZE(wm1277_devs) }, .i2c_devs = wm1277_devs, .num_i2c_devs = ARRAY_SIZE(wm1277_devs) },
{ .id = 0x3e, .rev = 0, .name = "WM5102-6271-EV1-CS127 Amrut",
.spi_devs = wm5102_reva_spi_devs,
.num_spi_devs = ARRAY_SIZE(wm5102_reva_spi_devs) },
{ .id = 0x3e, .rev = -1, .name = "WM5102-6271-EV1-CS127 Amrut", { .id = 0x3e, .rev = -1, .name = "WM5102-6271-EV1-CS127 Amrut",
.spi_devs = wm5102_spi_devs, .spi_devs = wm5102_spi_devs,
.num_spi_devs = ARRAY_SIZE(wm5102_spi_devs) }, .num_spi_devs = ARRAY_SIZE(wm5102_spi_devs) },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment