diff options
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-crag6410-module.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410-module.c b/arch/arm/mach-s3c64xx/mach-crag6410-module.c index 6387ced230c9..c492f75a6b32 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410-module.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410-module.c | |||
@@ -15,12 +15,41 @@ | |||
15 | #include <linux/mfd/wm831x/irq.h> | 15 | #include <linux/mfd/wm831x/irq.h> |
16 | #include <linux/mfd/wm831x/gpio.h> | 16 | #include <linux/mfd/wm831x/gpio.h> |
17 | 17 | ||
18 | #include <sound/wm5100.h> | ||
18 | #include <sound/wm8996.h> | 19 | #include <sound/wm8996.h> |
19 | #include <sound/wm8962.h> | 20 | #include <sound/wm8962.h> |
20 | #include <sound/wm9081.h> | 21 | #include <sound/wm9081.h> |
21 | 22 | ||
22 | #include <mach/crag6410.h> | 23 | #include <mach/crag6410.h> |
23 | 24 | ||
25 | static struct wm5100_pdata wm5100_pdata = { | ||
26 | .ldo_ena = S3C64XX_GPN(7), | ||
27 | .irq_flags = IRQF_TRIGGER_HIGH, | ||
28 | .gpio_base = CODEC_GPIO_BASE, | ||
29 | |||
30 | .in_mode = { | ||
31 | WM5100_IN_DIFF, | ||
32 | WM5100_IN_DIFF, | ||
33 | WM5100_IN_DIFF, | ||
34 | WM5100_IN_SE, | ||
35 | }, | ||
36 | |||
37 | .hp_pol = CODEC_GPIO_BASE + 3, | ||
38 | .jack_modes = { | ||
39 | { WM5100_MICDET_MICBIAS3, 0, 0 }, | ||
40 | { WM5100_MICDET_MICBIAS2, 1, 1 }, | ||
41 | }, | ||
42 | |||
43 | .gpio_defaults = { | ||
44 | 0, | ||
45 | 0, | ||
46 | 0, | ||
47 | 0, | ||
48 | 0x2, /* IRQ: CMOS output */ | ||
49 | 0x3, /* CLKOUT: CMOS output */ | ||
50 | }, | ||
51 | }; | ||
52 | |||
24 | static struct wm8996_retune_mobile_config wm8996_retune[] = { | 53 | static struct wm8996_retune_mobile_config wm8996_retune[] = { |
25 | { | 54 | { |
26 | .name = "Sub LPF", | 55 | .name = "Sub LPF", |
@@ -90,6 +119,7 @@ static const struct i2c_board_info wm1254_devs[] = { | |||
90 | 119 | ||
91 | static const struct i2c_board_info wm1255_devs[] = { | 120 | static const struct i2c_board_info wm1255_devs[] = { |
92 | { I2C_BOARD_INFO("wm5100", 0x1a), | 121 | { I2C_BOARD_INFO("wm5100", 0x1a), |
122 | .platform_data = &wm5100_pdata, | ||
93 | .irq = GLENFARCLAS_PMIC_IRQ_BASE + WM831X_IRQ_GPIO_2, | 123 | .irq = GLENFARCLAS_PMIC_IRQ_BASE + WM831X_IRQ_GPIO_2, |
94 | }, | 124 | }, |
95 | { I2C_BOARD_INFO("wm9081", 0x6c), | 125 | { I2C_BOARD_INFO("wm9081", 0x6c), |