11 #include <linux/export.h>
13 #include <linux/i2c.h>
43 .controller_data = &wm0010_spi_csinfo,
80 0x6318, 0x6300, 0x1000, 0x0000, 0x0004, 0x2000, 0xF000,
81 0x0000, 0x0004, 0x2000, 0xF000, 0x0000, 0x0004, 0x2000,
82 0xF000, 0x0000, 0x0004, 0x1000, 0x0800, 0x4000
89 0x000A, 0x6300, 0x1000, 0x0000, 0x0004, 0x2000, 0xF000,
90 0x0000, 0x0004, 0x2000, 0xF000, 0x0000, 0x0004, 0x2000,
91 0xF000, 0x0000, 0x0004, 0x1000, 0x0800, 0x4000
113 .retune_mobile_cfgs = wm8996_retune,
114 .num_retune_mobile_cfgs =
ARRAY_SIZE(wm8996_retune),
126 .in4_dc_measure =
true,
145 .platform_data = &wm5100_pdata,
160 .supply_regulator =
"WALLVDD",
164 .supply_regulator =
"WALLVDD",
173 { .init_data = &wm8994_ldo1, },
174 { .init_data = &wm8994_ldo2, },
180 .platform_data = &wm8994_pdata,
188 .irq_active_high =
true,
202 .modalias =
"wm5102",
203 .max_speed_hz = 10 * 1000 * 1000,
209 .controller_data = &wm5102_spi_csinfo,
210 .platform_data = &wm5102_pdata,
227 { .id = 0x01, .name =
"1250-EV1 Springbank" },
228 { .id = 0x02, .name =
"1251-EV1 Jura" },
229 { .id = 0x03, .name =
"1252-EV1 Glenlivet" },
230 { .id = 0x11, .name =
"6249-EV2 Glenfarclas", },
231 { .id = 0x14, .name =
"6271-EV1 Lochnagar" },
232 { .id = 0x15, .name =
"6320-EV1 Bells",
233 .i2c_devs = wm6230_i2c_devs,
234 .num_i2c_devs =
ARRAY_SIZE(wm6230_i2c_devs) },
235 { .id = 0x21, .name =
"1275-EV1 Mortlach" },
236 { .id = 0x25, .name =
"1274-EV1 Glencadam" },
237 { .id = 0x31, .name =
"1253-EV1 Tomatin",
238 .spi_devs = wm1253_devs, .num_spi_devs =
ARRAY_SIZE(wm1253_devs) },
239 { .id = 0x32, .name =
"XXXX-EV1 Caol Illa" },
240 { .id = 0x33, .name =
"XXXX-EV1 Oban" },
241 { .id = 0x34, .name =
"WM0010-6320-CS42 Balblair" },
242 { .id = 0x39, .name =
"1254-EV1 Dallas Dhu",
243 .i2c_devs = wm1254_devs, .num_i2c_devs =
ARRAY_SIZE(wm1254_devs) },
244 { .id = 0x3a, .name =
"1259-EV1 Tobermory",
245 .i2c_devs = wm1259_devs, .num_i2c_devs =
ARRAY_SIZE(wm1259_devs) },
246 { .id = 0x3b, .name =
"1255-EV1 Kilchoman",
247 .i2c_devs = wm1255_devs, .num_i2c_devs =
ARRAY_SIZE(wm1255_devs) },
248 { .id = 0x3c, .name =
"1273-EV1 Longmorn" },
249 { .id = 0x3d, .name =
"1277-EV1 Littlemill",
250 .i2c_devs = wm1277_devs, .num_i2c_devs =
ARRAY_SIZE(wm1277_devs) },
251 { .id = 0x3e, .name =
"WM5102-6271-EV1-CS127 Amrut",
252 .spi_devs = wm5102_spi_devs,
253 .num_spi_devs =
ARRAY_SIZE(wm5102_spi_devs) },
263 dev_err(&i2c->
dev,
"Failed to read ID: %d\n", ret);
267 id = (ret & 0xfe) >> 2;
270 if (
id == gf_mods[i].
id)
275 gf_mods[i].name, rev + 1);
277 for (j = 0; j < gf_mods[
i].num_i2c_devs; j++) {
279 &(gf_mods[i].i2c_devs[j])))
281 "Failed to register dev: %d\n", ret);
287 dev_warn(&i2c->
dev,
"Unknown module ID 0x%x revision %d\n",
295 {
"wlf-gf-module", 0 },
299 static struct i2c_driver wlf_gf_module_driver = {
301 .name =
"wlf-gf-module",
304 .probe = wlf_gf_module_probe,
305 .id_table = wlf_gf_module_id,
308 static int __init wlf_gf_module_register(
void)
310 return i2c_add_driver(&wlf_gf_module_driver);