diff options
author | Olof Johansson <olof@lixom.net> | 2011-12-16 17:56:37 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2011-12-16 17:56:37 -0500 |
commit | 8df97495c1d2c87f98574522cbeb8bd0453076cb (patch) | |
tree | 4c251b839980fec7b1a6e7f80a14885e06c54bb7 /arch/arm/mach-s3c64xx/mach-crag6410-module.c | |
parent | 578bd83d7e2bbf533c6968291abb36850c6eaff8 (diff) | |
parent | 39cb263eccc974765eed1100d48ac6f0986ef257 (diff) |
Merge branch 'samsung/board' into next/boards
* samsung/board:
ARM: S3C64XX: Hook up VDDINT on Cragganmore
ARM: S3C2440: Add new LCD (W35i) support for Mini2440 board
ARM: S3C64XX: Power gate unused domains
ARM: S3C64XX: Hook up Littlemill audio card on Cragganmore
ARM: S3C64XX: Hook up platform data for Kilchomin module on Cragganmore
ARM: S3C64XX: Run Tobermory interrupts in the default mode
ARM: S3C64XX: Improve logging of unknown Cragganmore module types
ARM: S3C64XX: Configure WM1250 EV1 GPIOs on Cragganmore
ARM: S3C64XX: Use software initiated powerdown for Cragganmore
ARM: S3C64XX: Raise the frequency of the second I2C bus on Cragganmore
ARM: S3C64XX: Correct reservation of GPIOs for CPU module on Cragganmore
ARM: SAMSUNG: Fix GPIO space reservation for S3C64xx platforms
ARM: S3C64XX: Update for conversion to SAMSUNG_GPIO_EXTRA
Conflicts:
arch/arm/mach-s3c64xx/mach-crag6410.c
Diffstat (limited to 'arch/arm/mach-s3c64xx/mach-crag6410-module.c')
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-crag6410-module.c | 56 |
1 files changed, 53 insertions, 3 deletions
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410-module.c b/arch/arm/mach-s3c64xx/mach-crag6410-module.c index f208154b1382..cd3c97e2ee75 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410-module.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410-module.c | |||
@@ -14,13 +14,43 @@ | |||
14 | 14 | ||
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 | #include <linux/mfd/wm8994/pdata.h> | ||
17 | 18 | ||
19 | #include <sound/wm5100.h> | ||
18 | #include <sound/wm8996.h> | 20 | #include <sound/wm8996.h> |
19 | #include <sound/wm8962.h> | 21 | #include <sound/wm8962.h> |
20 | #include <sound/wm9081.h> | 22 | #include <sound/wm9081.h> |
21 | 23 | ||
22 | #include <mach/crag6410.h> | 24 | #include <mach/crag6410.h> |
23 | 25 | ||
26 | static struct wm5100_pdata wm5100_pdata = { | ||
27 | .ldo_ena = S3C64XX_GPN(7), | ||
28 | .irq_flags = IRQF_TRIGGER_HIGH, | ||
29 | .gpio_base = CODEC_GPIO_BASE, | ||
30 | |||
31 | .in_mode = { | ||
32 | WM5100_IN_DIFF, | ||
33 | WM5100_IN_DIFF, | ||
34 | WM5100_IN_DIFF, | ||
35 | WM5100_IN_SE, | ||
36 | }, | ||
37 | |||
38 | .hp_pol = CODEC_GPIO_BASE + 3, | ||
39 | .jack_modes = { | ||
40 | { WM5100_MICDET_MICBIAS3, 0, 0 }, | ||
41 | { WM5100_MICDET_MICBIAS2, 1, 1 }, | ||
42 | }, | ||
43 | |||
44 | .gpio_defaults = { | ||
45 | 0, | ||
46 | 0, | ||
47 | 0, | ||
48 | 0, | ||
49 | 0x2, /* IRQ: CMOS output */ | ||
50 | 0x3, /* CLKOUT: CMOS output */ | ||
51 | }, | ||
52 | }; | ||
53 | |||
24 | static struct wm8996_retune_mobile_config wm8996_retune[] = { | 54 | static struct wm8996_retune_mobile_config wm8996_retune[] = { |
25 | { | 55 | { |
26 | .name = "Sub LPF", | 56 | .name = "Sub LPF", |
@@ -72,7 +102,6 @@ static struct wm8962_pdata wm8962_pdata __initdata = { | |||
72 | 0x8000 | WM8962_GPIO_FN_DMICDAT, | 102 | 0x8000 | WM8962_GPIO_FN_DMICDAT, |
73 | WM8962_GPIO_FN_IRQ, /* Open drain mode */ | 103 | WM8962_GPIO_FN_IRQ, /* Open drain mode */ |
74 | }, | 104 | }, |
75 | .irq_active_low = true, | ||
76 | }; | 105 | }; |
77 | 106 | ||
78 | static struct wm9081_pdata wm9081_pdata __initdata = { | 107 | static struct wm9081_pdata wm9081_pdata __initdata = { |
@@ -91,6 +120,7 @@ static const struct i2c_board_info wm1254_devs[] = { | |||
91 | 120 | ||
92 | static const struct i2c_board_info wm1255_devs[] = { | 121 | static const struct i2c_board_info wm1255_devs[] = { |
93 | { I2C_BOARD_INFO("wm5100", 0x1a), | 122 | { I2C_BOARD_INFO("wm5100", 0x1a), |
123 | .platform_data = &wm5100_pdata, | ||
94 | .irq = GLENFARCLAS_PMIC_IRQ_BASE + WM831X_IRQ_GPIO_2, | 124 | .irq = GLENFARCLAS_PMIC_IRQ_BASE + WM831X_IRQ_GPIO_2, |
95 | }, | 125 | }, |
96 | { I2C_BOARD_INFO("wm9081", 0x6c), | 126 | { I2C_BOARD_INFO("wm9081", 0x6c), |
@@ -104,6 +134,24 @@ static const struct i2c_board_info wm1259_devs[] = { | |||
104 | }, | 134 | }, |
105 | }; | 135 | }; |
106 | 136 | ||
137 | static struct wm8994_pdata wm8994_pdata = { | ||
138 | .gpio_base = CODEC_GPIO_BASE, | ||
139 | .gpio_defaults = { | ||
140 | 0x3, /* IRQ out, active high, CMOS */ | ||
141 | }, | ||
142 | .irq_base = CODEC_IRQ_BASE, | ||
143 | .ldo = { | ||
144 | { .supply = "WALLVDD" }, | ||
145 | { .supply = "WALLVDD" }, | ||
146 | }, | ||
147 | }; | ||
148 | |||
149 | static const struct i2c_board_info wm1277_devs[] = { | ||
150 | { I2C_BOARD_INFO("wm8958", 0x1a), /* WM8958 is the superset */ | ||
151 | .platform_data = &wm8994_pdata, | ||
152 | .irq = GLENFARCLAS_PMIC_IRQ_BASE + WM831X_IRQ_GPIO_2, | ||
153 | }, | ||
154 | }; | ||
107 | 155 | ||
108 | static __devinitdata const struct { | 156 | static __devinitdata const struct { |
109 | u8 id; | 157 | u8 id; |
@@ -125,6 +173,8 @@ static __devinitdata const struct { | |||
125 | { .id = 0x3b, .name = "1255-EV1 Kilchoman", | 173 | { .id = 0x3b, .name = "1255-EV1 Kilchoman", |
126 | .i2c_devs = wm1255_devs, .num_i2c_devs = ARRAY_SIZE(wm1255_devs) }, | 174 | .i2c_devs = wm1255_devs, .num_i2c_devs = ARRAY_SIZE(wm1255_devs) }, |
127 | { .id = 0x3c, .name = "1273-EV1 Longmorn" }, | 175 | { .id = 0x3c, .name = "1273-EV1 Longmorn" }, |
176 | { .id = 0x3d, .name = "1277-EV1 Littlemill", | ||
177 | .i2c_devs = wm1277_devs, .num_i2c_devs = ARRAY_SIZE(wm1277_devs) }, | ||
128 | }; | 178 | }; |
129 | 179 | ||
130 | static __devinit int wlf_gf_module_probe(struct i2c_client *i2c, | 180 | static __devinit int wlf_gf_module_probe(struct i2c_client *i2c, |
@@ -154,8 +204,8 @@ static __devinit int wlf_gf_module_probe(struct i2c_client *i2c, | |||
154 | "Failed to register dev: %d\n", ret); | 204 | "Failed to register dev: %d\n", ret); |
155 | } | 205 | } |
156 | } else { | 206 | } else { |
157 | dev_warn(&i2c->dev, "Unknown module ID %d revision %d\n", | 207 | dev_warn(&i2c->dev, "Unknown module ID 0x%x revision %d\n", |
158 | id, rev); | 208 | id, rev + 1); |
159 | } | 209 | } |
160 | 210 | ||
161 | return 0; | 211 | return 0; |