ARM: S3C64XX: Add hookup for Deanston module on Cragganmore
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Oct 2012 08:41:09 +0000 (17:41 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Wed, 17 Oct 2012 08:41:09 +0000 (17:41 +0900)
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>
arch/arm/mach-s3c64xx/mach-crag6410-module.c

index a6c156def7cce80f7d74e9b6a96461c135399972..fc758b1a4ffa98e4e9f67148ea98660cdca4a62d 100644 (file)
@@ -215,7 +215,7 @@ static struct arizona_pdata wm5102_reva_pdata = {
        },
 };
 
-static struct s3c64xx_spi_csinfo wm5102_spi_csinfo = {
+static struct s3c64xx_spi_csinfo codec_spi_csinfo = {
        .line = S3C64XX_GPN(5),
 };
 
@@ -228,7 +228,7 @@ static struct spi_board_info wm5102_reva_spi_devs[] = {
                .mode           = SPI_MODE_0,
                .irq            = GLENFARCLAS_PMIC_IRQ_BASE +
                                  WM831X_IRQ_GPIO_2,
-               .controller_data = &wm5102_spi_csinfo,
+               .controller_data = &codec_spi_csinfo,
                .platform_data = &wm5102_reva_pdata,
        },
 };
@@ -253,11 +253,25 @@ static struct spi_board_info wm5102_spi_devs[] = {
                .mode           = SPI_MODE_0,
                .irq            = GLENFARCLAS_PMIC_IRQ_BASE +
                                  WM831X_IRQ_GPIO_2,
-               .controller_data = &wm5102_spi_csinfo,
+               .controller_data = &codec_spi_csinfo,
                .platform_data = &wm5102_pdata,
        },
 };
 
+static struct spi_board_info wm5110_spi_devs[] = {
+       [0] = {
+               .modalias       = "wm5110",
+               .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 = &codec_spi_csinfo,
+               .platform_data = &wm5102_reva_pdata,
+       },
+};
+
 static const struct i2c_board_info wm6230_i2c_devs[] = {
        { I2C_BOARD_INFO("wm9081", 0x6c),
          .platform_data = &wm9081_pdata, },
@@ -276,7 +290,9 @@ static __devinitdata const struct {
        { .id = 0x02, .rev = 0xff, .name = "1251-EV1 Jura" },
        { .id = 0x03, .rev = 0xff, .name = "1252-EV1 Glenlivet" },
        { .id = 0x06, .rev = 0xff, .name = "WM8997-6721-CS96-EV1 Lapraoig" },
-       { .id = 0x07, .rev = 0xff, .name = "WM5110-6271 Deanston" },
+       { .id = 0x07, .rev = 0xff, .name = "WM5110-6271 Deanston",
+         .spi_devs = wm5110_spi_devs,
+         .num_spi_devs = ARRAY_SIZE(wm5110_spi_devs) },
        { .id = 0x08, .rev = 0xff, .name = "WM8903-6102 Tamdhu" },
        { .id = 0x09, .rev = 0xff, .name = "WM1811A-6305 Adelphi" },
        { .id = 0x0a, .rev = 0xff, .name = "WM8996-6272 Blackadder" },