aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c64xx/mach-crag6410-module.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-02 00:29:08 -0500
committerKukjin Kim <kgene.kim@samsung.com>2011-12-02 00:29:08 -0500
commit3d19f1cd25cfcfba685ef9df7d926c7264b0f8c9 (patch)
treeef7a9c035c8eebf1c5f833e4a1c067c555c93a0b /arch/arm/mach-s3c64xx/mach-crag6410-module.c
parent3153389b3b923f0e54f01e61d782da022b5e6206 (diff)
ARM: S3C64XX: Hook up platform data for Kilchomin module on Cragganmore
Now that the WM5100 driver is merged add some initial platform data for the WM5100 on Kilchomin. 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.c30
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
25static 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
24static struct wm8996_retune_mobile_config wm8996_retune[] = { 53static 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
91static const struct i2c_board_info wm1255_devs[] = { 120static 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),