diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-10-17 04:41:09 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-10-17 04:41:09 -0400 |
commit | 41830ee0a8098cae5fd1f6dbe24803d290338096 (patch) | |
tree | 01008c53be973f220f21195a218bfbcd94cbc950 /arch/arm/mach-s3c64xx/mach-crag6410-module.c | |
parent | b23bc66c394844ec6e64b3df070573db2cf898e8 (diff) |
ARM: S3C64XX: Add hookup for Deanston module on Cragganmore
This carries a WM5110, the system integration for which is essentially
the same as the rev A WM5102 module.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c64xx/mach-crag6410-module.c')
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-crag6410-module.c | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410-module.c b/arch/arm/mach-s3c64xx/mach-crag6410-module.c index a6c156def7cc..fc758b1a4ffa 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410-module.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410-module.c | |||
@@ -215,7 +215,7 @@ static struct arizona_pdata wm5102_reva_pdata = { | |||
215 | }, | 215 | }, |
216 | }; | 216 | }; |
217 | 217 | ||
218 | static struct s3c64xx_spi_csinfo wm5102_spi_csinfo = { | 218 | static struct s3c64xx_spi_csinfo codec_spi_csinfo = { |
219 | .line = S3C64XX_GPN(5), | 219 | .line = S3C64XX_GPN(5), |
220 | }; | 220 | }; |
221 | 221 | ||
@@ -228,7 +228,7 @@ static struct spi_board_info wm5102_reva_spi_devs[] = { | |||
228 | .mode = SPI_MODE_0, | 228 | .mode = SPI_MODE_0, |
229 | .irq = GLENFARCLAS_PMIC_IRQ_BASE + | 229 | .irq = GLENFARCLAS_PMIC_IRQ_BASE + |
230 | WM831X_IRQ_GPIO_2, | 230 | WM831X_IRQ_GPIO_2, |
231 | .controller_data = &wm5102_spi_csinfo, | 231 | .controller_data = &codec_spi_csinfo, |
232 | .platform_data = &wm5102_reva_pdata, | 232 | .platform_data = &wm5102_reva_pdata, |
233 | }, | 233 | }, |
234 | }; | 234 | }; |
@@ -253,11 +253,25 @@ static struct spi_board_info wm5102_spi_devs[] = { | |||
253 | .mode = SPI_MODE_0, | 253 | .mode = SPI_MODE_0, |
254 | .irq = GLENFARCLAS_PMIC_IRQ_BASE + | 254 | .irq = GLENFARCLAS_PMIC_IRQ_BASE + |
255 | WM831X_IRQ_GPIO_2, | 255 | WM831X_IRQ_GPIO_2, |
256 | .controller_data = &wm5102_spi_csinfo, | 256 | .controller_data = &codec_spi_csinfo, |
257 | .platform_data = &wm5102_pdata, | 257 | .platform_data = &wm5102_pdata, |
258 | }, | 258 | }, |
259 | }; | 259 | }; |
260 | 260 | ||
261 | static struct spi_board_info wm5110_spi_devs[] = { | ||
262 | [0] = { | ||
263 | .modalias = "wm5110", | ||
264 | .max_speed_hz = 10 * 1000 * 1000, | ||
265 | .bus_num = 0, | ||
266 | .chip_select = 1, | ||
267 | .mode = SPI_MODE_0, | ||
268 | .irq = GLENFARCLAS_PMIC_IRQ_BASE + | ||
269 | WM831X_IRQ_GPIO_2, | ||
270 | .controller_data = &codec_spi_csinfo, | ||
271 | .platform_data = &wm5102_reva_pdata, | ||
272 | }, | ||
273 | }; | ||
274 | |||
261 | static const struct i2c_board_info wm6230_i2c_devs[] = { | 275 | static const struct i2c_board_info wm6230_i2c_devs[] = { |
262 | { I2C_BOARD_INFO("wm9081", 0x6c), | 276 | { I2C_BOARD_INFO("wm9081", 0x6c), |
263 | .platform_data = &wm9081_pdata, }, | 277 | .platform_data = &wm9081_pdata, }, |
@@ -276,7 +290,9 @@ static __devinitdata const struct { | |||
276 | { .id = 0x02, .rev = 0xff, .name = "1251-EV1 Jura" }, | 290 | { .id = 0x02, .rev = 0xff, .name = "1251-EV1 Jura" }, |
277 | { .id = 0x03, .rev = 0xff, .name = "1252-EV1 Glenlivet" }, | 291 | { .id = 0x03, .rev = 0xff, .name = "1252-EV1 Glenlivet" }, |
278 | { .id = 0x06, .rev = 0xff, .name = "WM8997-6721-CS96-EV1 Lapraoig" }, | 292 | { .id = 0x06, .rev = 0xff, .name = "WM8997-6721-CS96-EV1 Lapraoig" }, |
279 | { .id = 0x07, .rev = 0xff, .name = "WM5110-6271 Deanston" }, | 293 | { .id = 0x07, .rev = 0xff, .name = "WM5110-6271 Deanston", |
294 | .spi_devs = wm5110_spi_devs, | ||
295 | .num_spi_devs = ARRAY_SIZE(wm5110_spi_devs) }, | ||
280 | { .id = 0x08, .rev = 0xff, .name = "WM8903-6102 Tamdhu" }, | 296 | { .id = 0x08, .rev = 0xff, .name = "WM8903-6102 Tamdhu" }, |
281 | { .id = 0x09, .rev = 0xff, .name = "WM1811A-6305 Adelphi" }, | 297 | { .id = 0x09, .rev = 0xff, .name = "WM1811A-6305 Adelphi" }, |
282 | { .id = 0x0a, .rev = 0xff, .name = "WM8996-6272 Blackadder" }, | 298 | { .id = 0x0a, .rev = 0xff, .name = "WM8996-6272 Blackadder" }, |