wm8994-core.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  1. /*
  2. * wm8994-core.c -- Device access for Wolfson WM8994
  3. *
  4. * Copyright 2009 Wolfson Microelectronics PLC.
  5. *
  6. * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License as published by the
  10. * Free Software Foundation; either version 2 of the License, or (at your
  11. * option) any later version.
  12. *
  13. */
  14. #include <linux/kernel.h>
  15. #include <linux/module.h>
  16. #include <linux/slab.h>
  17. #include <linux/i2c.h>
  18. #include <linux/delay.h>
  19. #include <linux/mfd/core.h>
  20. #include <linux/pm_runtime.h>
  21. #include <linux/regulator/consumer.h>
  22. #include <linux/regulator/machine.h>
  23. #include <linux/mfd/wm8994/core.h>
  24. #include <linux/mfd/wm8994/pdata.h>
  25. #include <linux/mfd/wm8994/registers.h>
  26. static int wm8994_read(struct wm8994 *wm8994, unsigned short reg,
  27. int bytes, void *dest)
  28. {
  29. int ret, i;
  30. u16 *buf = dest;
  31. BUG_ON(bytes % 2);
  32. BUG_ON(bytes <= 0);
  33. ret = wm8994->read_dev(wm8994, reg, bytes, dest);
  34. if (ret < 0)
  35. return ret;
  36. for (i = 0; i < bytes / 2; i++) {
  37. dev_vdbg(wm8994->dev, "Read %04x from R%d(0x%x)\n",
  38. be16_to_cpu(buf[i]), reg + i, reg + i);
  39. }
  40. return 0;
  41. }
  42. /**
  43. * wm8994_reg_read: Read a single WM8994 register.
  44. *
  45. * @wm8994: Device to read from.
  46. * @reg: Register to read.
  47. */
  48. int wm8994_reg_read(struct wm8994 *wm8994, unsigned short reg)
  49. {
  50. unsigned short val;
  51. int ret;
  52. mutex_lock(&wm8994->io_lock);
  53. ret = wm8994_read(wm8994, reg, 2, &val);
  54. mutex_unlock(&wm8994->io_lock);
  55. if (ret < 0)
  56. return ret;
  57. else
  58. return be16_to_cpu(val);
  59. }
  60. EXPORT_SYMBOL_GPL(wm8994_reg_read);
  61. /**
  62. * wm8994_bulk_read: Read multiple WM8994 registers
  63. *
  64. * @wm8994: Device to read from
  65. * @reg: First register
  66. * @count: Number of registers
  67. * @buf: Buffer to fill. The data will be returned big endian.
  68. */
  69. int wm8994_bulk_read(struct wm8994 *wm8994, unsigned short reg,
  70. int count, u16 *buf)
  71. {
  72. int ret;
  73. mutex_lock(&wm8994->io_lock);
  74. ret = wm8994_read(wm8994, reg, count * 2, buf);
  75. mutex_unlock(&wm8994->io_lock);
  76. return ret;
  77. }
  78. EXPORT_SYMBOL_GPL(wm8994_bulk_read);
  79. static int wm8994_write(struct wm8994 *wm8994, unsigned short reg,
  80. int bytes, const void *src)
  81. {
  82. const u16 *buf = src;
  83. int i;
  84. BUG_ON(bytes % 2);
  85. BUG_ON(bytes <= 0);
  86. for (i = 0; i < bytes / 2; i++) {
  87. dev_vdbg(wm8994->dev, "Write %04x to R%d(0x%x)\n",
  88. be16_to_cpu(buf[i]), reg + i, reg + i);
  89. }
  90. return wm8994->write_dev(wm8994, reg, bytes, src);
  91. }
  92. /**
  93. * wm8994_reg_write: Write a single WM8994 register.
  94. *
  95. * @wm8994: Device to write to.
  96. * @reg: Register to write to.
  97. * @val: Value to write.
  98. */
  99. int wm8994_reg_write(struct wm8994 *wm8994, unsigned short reg,
  100. unsigned short val)
  101. {
  102. int ret;
  103. val = cpu_to_be16(val);
  104. mutex_lock(&wm8994->io_lock);
  105. ret = wm8994_write(wm8994, reg, 2, &val);
  106. mutex_unlock(&wm8994->io_lock);
  107. return ret;
  108. }
  109. EXPORT_SYMBOL_GPL(wm8994_reg_write);
  110. /**
  111. * wm8994_bulk_write: Write multiple WM8994 registers
  112. *
  113. * @wm8994: Device to write to
  114. * @reg: First register
  115. * @count: Number of registers
  116. * @buf: Buffer to write from. Data must be big-endian formatted.
  117. */
  118. int wm8994_bulk_write(struct wm8994 *wm8994, unsigned short reg,
  119. int count, const u16 *buf)
  120. {
  121. int ret;
  122. mutex_lock(&wm8994->io_lock);
  123. ret = wm8994_write(wm8994, reg, count * 2, buf);
  124. mutex_unlock(&wm8994->io_lock);
  125. return ret;
  126. }
  127. EXPORT_SYMBOL_GPL(wm8994_bulk_write);
  128. /**
  129. * wm8994_set_bits: Set the value of a bitfield in a WM8994 register
  130. *
  131. * @wm8994: Device to write to.
  132. * @reg: Register to write to.
  133. * @mask: Mask of bits to set.
  134. * @val: Value to set (unshifted)
  135. */
  136. int wm8994_set_bits(struct wm8994 *wm8994, unsigned short reg,
  137. unsigned short mask, unsigned short val)
  138. {
  139. int ret;
  140. u16 r;
  141. mutex_lock(&wm8994->io_lock);
  142. ret = wm8994_read(wm8994, reg, 2, &r);
  143. if (ret < 0)
  144. goto out;
  145. r = be16_to_cpu(r);
  146. r &= ~mask;
  147. r |= val;
  148. r = cpu_to_be16(r);
  149. ret = wm8994_write(wm8994, reg, 2, &r);
  150. out:
  151. mutex_unlock(&wm8994->io_lock);
  152. return ret;
  153. }
  154. EXPORT_SYMBOL_GPL(wm8994_set_bits);
  155. static struct mfd_cell wm8994_regulator_devs[] = {
  156. {
  157. .name = "wm8994-ldo",
  158. .id = 1,
  159. .pm_runtime_no_callbacks = true,
  160. },
  161. {
  162. .name = "wm8994-ldo",
  163. .id = 2,
  164. .pm_runtime_no_callbacks = true,
  165. },
  166. };
  167. static struct resource wm8994_codec_resources[] = {
  168. {
  169. .start = WM8994_IRQ_TEMP_SHUT,
  170. .end = WM8994_IRQ_TEMP_WARN,
  171. .flags = IORESOURCE_IRQ,
  172. },
  173. };
  174. static struct resource wm8994_gpio_resources[] = {
  175. {
  176. .start = WM8994_IRQ_GPIO(1),
  177. .end = WM8994_IRQ_GPIO(11),
  178. .flags = IORESOURCE_IRQ,
  179. },
  180. };
  181. static struct mfd_cell wm8994_devs[] = {
  182. {
  183. .name = "wm8994-codec",
  184. .num_resources = ARRAY_SIZE(wm8994_codec_resources),
  185. .resources = wm8994_codec_resources,
  186. },
  187. {
  188. .name = "wm8994-gpio",
  189. .num_resources = ARRAY_SIZE(wm8994_gpio_resources),
  190. .resources = wm8994_gpio_resources,
  191. .pm_runtime_no_callbacks = true,
  192. },
  193. };
  194. /*
  195. * Supplies for the main bulk of CODEC; the LDO supplies are ignored
  196. * and should be handled via the standard regulator API supply
  197. * management.
  198. */
  199. static const char *wm8994_main_supplies[] = {
  200. "DBVDD",
  201. "DCVDD",
  202. "AVDD1",
  203. "AVDD2",
  204. "CPVDD",
  205. "SPKVDD1",
  206. "SPKVDD2",
  207. };
  208. static const char *wm8958_main_supplies[] = {
  209. "DBVDD1",
  210. "DBVDD2",
  211. "DBVDD3",
  212. "DCVDD",
  213. "AVDD1",
  214. "AVDD2",
  215. "CPVDD",
  216. "SPKVDD1",
  217. "SPKVDD2",
  218. };
  219. #ifdef CONFIG_PM
  220. static int wm8994_suspend(struct device *dev)
  221. {
  222. struct wm8994 *wm8994 = dev_get_drvdata(dev);
  223. int ret;
  224. /* Don't actually go through with the suspend if the CODEC is
  225. * still active (eg, for audio passthrough from CP. */
  226. ret = wm8994_reg_read(wm8994, WM8994_POWER_MANAGEMENT_1);
  227. if (ret < 0) {
  228. dev_err(dev, "Failed to read power status: %d\n", ret);
  229. } else if (ret & WM8994_VMID_SEL_MASK) {
  230. dev_dbg(dev, "CODEC still active, ignoring suspend\n");
  231. return 0;
  232. }
  233. /* GPIO configuration state is saved here since we may be configuring
  234. * the GPIO alternate functions even if we're not using the gpiolib
  235. * driver for them.
  236. */
  237. ret = wm8994_read(wm8994, WM8994_GPIO_1, WM8994_NUM_GPIO_REGS * 2,
  238. &wm8994->gpio_regs);
  239. if (ret < 0)
  240. dev_err(dev, "Failed to save GPIO registers: %d\n", ret);
  241. /* For similar reasons we also stash the regulator states */
  242. ret = wm8994_read(wm8994, WM8994_LDO_1, WM8994_NUM_LDO_REGS * 2,
  243. &wm8994->ldo_regs);
  244. if (ret < 0)
  245. dev_err(dev, "Failed to save LDO registers: %d\n", ret);
  246. /* Explicitly put the device into reset in case regulators
  247. * don't get disabled in order to ensure consistent restart.
  248. */
  249. wm8994_reg_write(wm8994, WM8994_SOFTWARE_RESET, 0x8994);
  250. wm8994->suspended = true;
  251. ret = regulator_bulk_disable(wm8994->num_supplies,
  252. wm8994->supplies);
  253. if (ret != 0) {
  254. dev_err(dev, "Failed to disable supplies: %d\n", ret);
  255. return ret;
  256. }
  257. return 0;
  258. }
  259. static int wm8994_resume(struct device *dev)
  260. {
  261. struct wm8994 *wm8994 = dev_get_drvdata(dev);
  262. int ret;
  263. /* We may have lied to the PM core about suspending */
  264. if (!wm8994->suspended)
  265. return 0;
  266. ret = regulator_bulk_enable(wm8994->num_supplies,
  267. wm8994->supplies);
  268. if (ret != 0) {
  269. dev_err(dev, "Failed to enable supplies: %d\n", ret);
  270. return ret;
  271. }
  272. ret = wm8994_write(wm8994, WM8994_INTERRUPT_STATUS_1_MASK,
  273. WM8994_NUM_IRQ_REGS * 2, &wm8994->irq_masks_cur);
  274. if (ret < 0)
  275. dev_err(dev, "Failed to restore interrupt masks: %d\n", ret);
  276. ret = wm8994_write(wm8994, WM8994_LDO_1, WM8994_NUM_LDO_REGS * 2,
  277. &wm8994->ldo_regs);
  278. if (ret < 0)
  279. dev_err(dev, "Failed to restore LDO registers: %d\n", ret);
  280. ret = wm8994_write(wm8994, WM8994_GPIO_1, WM8994_NUM_GPIO_REGS * 2,
  281. &wm8994->gpio_regs);
  282. if (ret < 0)
  283. dev_err(dev, "Failed to restore GPIO registers: %d\n", ret);
  284. wm8994->suspended = false;
  285. return 0;
  286. }
  287. #endif
  288. #ifdef CONFIG_REGULATOR
  289. static int wm8994_ldo_in_use(struct wm8994_pdata *pdata, int ldo)
  290. {
  291. struct wm8994_ldo_pdata *ldo_pdata;
  292. if (!pdata)
  293. return 0;
  294. ldo_pdata = &pdata->ldo[ldo];
  295. if (!ldo_pdata->init_data)
  296. return 0;
  297. return ldo_pdata->init_data->num_consumer_supplies != 0;
  298. }
  299. #else
  300. static int wm8994_ldo_in_use(struct wm8994_pdata *pdata, int ldo)
  301. {
  302. return 0;
  303. }
  304. #endif
  305. /*
  306. * Instantiate the generic non-control parts of the device.
  307. */
  308. static int wm8994_device_init(struct wm8994 *wm8994, int irq)
  309. {
  310. struct wm8994_pdata *pdata = wm8994->dev->platform_data;
  311. const char *devname;
  312. int ret, i;
  313. mutex_init(&wm8994->io_lock);
  314. dev_set_drvdata(wm8994->dev, wm8994);
  315. /* Add the on-chip regulators first for bootstrapping */
  316. ret = mfd_add_devices(wm8994->dev, -1,
  317. wm8994_regulator_devs,
  318. ARRAY_SIZE(wm8994_regulator_devs),
  319. NULL, 0);
  320. if (ret != 0) {
  321. dev_err(wm8994->dev, "Failed to add children: %d\n", ret);
  322. goto err;
  323. }
  324. switch (wm8994->type) {
  325. case WM8994:
  326. wm8994->num_supplies = ARRAY_SIZE(wm8994_main_supplies);
  327. break;
  328. case WM8958:
  329. wm8994->num_supplies = ARRAY_SIZE(wm8958_main_supplies);
  330. break;
  331. default:
  332. BUG();
  333. return -EINVAL;
  334. }
  335. wm8994->supplies = kzalloc(sizeof(struct regulator_bulk_data) *
  336. wm8994->num_supplies,
  337. GFP_KERNEL);
  338. if (!wm8994->supplies) {
  339. ret = -ENOMEM;
  340. goto err;
  341. }
  342. switch (wm8994->type) {
  343. case WM8994:
  344. for (i = 0; i < ARRAY_SIZE(wm8994_main_supplies); i++)
  345. wm8994->supplies[i].supply = wm8994_main_supplies[i];
  346. break;
  347. case WM8958:
  348. for (i = 0; i < ARRAY_SIZE(wm8958_main_supplies); i++)
  349. wm8994->supplies[i].supply = wm8958_main_supplies[i];
  350. break;
  351. default:
  352. BUG();
  353. return -EINVAL;
  354. }
  355. ret = regulator_bulk_get(wm8994->dev, wm8994->num_supplies,
  356. wm8994->supplies);
  357. if (ret != 0) {
  358. dev_err(wm8994->dev, "Failed to get supplies: %d\n", ret);
  359. goto err_supplies;
  360. }
  361. ret = regulator_bulk_enable(wm8994->num_supplies,
  362. wm8994->supplies);
  363. if (ret != 0) {
  364. dev_err(wm8994->dev, "Failed to enable supplies: %d\n", ret);
  365. goto err_get;
  366. }
  367. ret = wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET);
  368. if (ret < 0) {
  369. dev_err(wm8994->dev, "Failed to read ID register\n");
  370. goto err_enable;
  371. }
  372. switch (ret) {
  373. case 0x8994:
  374. devname = "WM8994";
  375. if (wm8994->type != WM8994)
  376. dev_warn(wm8994->dev, "Device registered as type %d\n",
  377. wm8994->type);
  378. wm8994->type = WM8994;
  379. break;
  380. case 0x8958:
  381. devname = "WM8958";
  382. if (wm8994->type != WM8958)
  383. dev_warn(wm8994->dev, "Device registered as type %d\n",
  384. wm8994->type);
  385. wm8994->type = WM8958;
  386. break;
  387. default:
  388. dev_err(wm8994->dev, "Device is not a WM8994, ID is %x\n",
  389. ret);
  390. ret = -EINVAL;
  391. goto err_enable;
  392. }
  393. ret = wm8994_reg_read(wm8994, WM8994_CHIP_REVISION);
  394. if (ret < 0) {
  395. dev_err(wm8994->dev, "Failed to read revision register: %d\n",
  396. ret);
  397. goto err_enable;
  398. }
  399. switch (ret) {
  400. case 0:
  401. case 1:
  402. if (wm8994->type == WM8994)
  403. dev_warn(wm8994->dev,
  404. "revision %c not fully supported\n",
  405. 'A' + ret);
  406. break;
  407. default:
  408. break;
  409. }
  410. dev_info(wm8994->dev, "%s revision %c\n", devname, 'A' + ret);
  411. if (pdata) {
  412. wm8994->irq_base = pdata->irq_base;
  413. wm8994->gpio_base = pdata->gpio_base;
  414. /* GPIO configuration is only applied if it's non-zero */
  415. for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) {
  416. if (pdata->gpio_defaults[i]) {
  417. wm8994_set_bits(wm8994, WM8994_GPIO_1 + i,
  418. 0xffff,
  419. pdata->gpio_defaults[i]);
  420. }
  421. }
  422. }
  423. /* In some system designs where the regulators are not in use,
  424. * we can achieve a small reduction in leakage currents by
  425. * floating LDO outputs. This bit makes no difference if the
  426. * LDOs are enabled, it only affects cases where the LDOs were
  427. * in operation and are then disabled.
  428. */
  429. for (i = 0; i < WM8994_NUM_LDO_REGS; i++) {
  430. if (wm8994_ldo_in_use(pdata, i))
  431. wm8994_set_bits(wm8994, WM8994_LDO_1 + i,
  432. WM8994_LDO1_DISCH, WM8994_LDO1_DISCH);
  433. else
  434. wm8994_set_bits(wm8994, WM8994_LDO_1 + i,
  435. WM8994_LDO1_DISCH, 0);
  436. }
  437. wm8994_irq_init(wm8994);
  438. ret = mfd_add_devices(wm8994->dev, -1,
  439. wm8994_devs, ARRAY_SIZE(wm8994_devs),
  440. NULL, 0);
  441. if (ret != 0) {
  442. dev_err(wm8994->dev, "Failed to add children: %d\n", ret);
  443. goto err_irq;
  444. }
  445. pm_runtime_enable(wm8994->dev);
  446. pm_runtime_resume(wm8994->dev);
  447. return 0;
  448. err_irq:
  449. wm8994_irq_exit(wm8994);
  450. err_enable:
  451. regulator_bulk_disable(wm8994->num_supplies,
  452. wm8994->supplies);
  453. err_get:
  454. regulator_bulk_free(wm8994->num_supplies, wm8994->supplies);
  455. err_supplies:
  456. kfree(wm8994->supplies);
  457. err:
  458. mfd_remove_devices(wm8994->dev);
  459. kfree(wm8994);
  460. return ret;
  461. }
  462. static void wm8994_device_exit(struct wm8994 *wm8994)
  463. {
  464. pm_runtime_disable(wm8994->dev);
  465. mfd_remove_devices(wm8994->dev);
  466. wm8994_irq_exit(wm8994);
  467. regulator_bulk_disable(wm8994->num_supplies,
  468. wm8994->supplies);
  469. regulator_bulk_free(wm8994->num_supplies, wm8994->supplies);
  470. kfree(wm8994->supplies);
  471. kfree(wm8994);
  472. }
  473. static int wm8994_i2c_read_device(struct wm8994 *wm8994, unsigned short reg,
  474. int bytes, void *dest)
  475. {
  476. struct i2c_client *i2c = wm8994->control_data;
  477. int ret;
  478. u16 r = cpu_to_be16(reg);
  479. ret = i2c_master_send(i2c, (unsigned char *)&r, 2);
  480. if (ret < 0)
  481. return ret;
  482. if (ret != 2)
  483. return -EIO;
  484. ret = i2c_master_recv(i2c, dest, bytes);
  485. if (ret < 0)
  486. return ret;
  487. if (ret != bytes)
  488. return -EIO;
  489. return 0;
  490. }
  491. static int wm8994_i2c_write_device(struct wm8994 *wm8994, unsigned short reg,
  492. int bytes, const void *src)
  493. {
  494. struct i2c_client *i2c = wm8994->control_data;
  495. struct i2c_msg xfer[2];
  496. int ret;
  497. reg = cpu_to_be16(reg);
  498. xfer[0].addr = i2c->addr;
  499. xfer[0].flags = 0;
  500. xfer[0].len = 2;
  501. xfer[0].buf = (char *)&reg;
  502. xfer[1].addr = i2c->addr;
  503. xfer[1].flags = I2C_M_NOSTART;
  504. xfer[1].len = bytes;
  505. xfer[1].buf = (char *)src;
  506. ret = i2c_transfer(i2c->adapter, xfer, 2);
  507. if (ret < 0)
  508. return ret;
  509. if (ret != 2)
  510. return -EIO;
  511. return 0;
  512. }
  513. static int wm8994_i2c_probe(struct i2c_client *i2c,
  514. const struct i2c_device_id *id)
  515. {
  516. struct wm8994 *wm8994;
  517. wm8994 = kzalloc(sizeof(struct wm8994), GFP_KERNEL);
  518. if (wm8994 == NULL)
  519. return -ENOMEM;
  520. i2c_set_clientdata(i2c, wm8994);
  521. wm8994->dev = &i2c->dev;
  522. wm8994->control_data = i2c;
  523. wm8994->read_dev = wm8994_i2c_read_device;
  524. wm8994->write_dev = wm8994_i2c_write_device;
  525. wm8994->irq = i2c->irq;
  526. wm8994->type = id->driver_data;
  527. return wm8994_device_init(wm8994, i2c->irq);
  528. }
  529. static int wm8994_i2c_remove(struct i2c_client *i2c)
  530. {
  531. struct wm8994 *wm8994 = i2c_get_clientdata(i2c);
  532. wm8994_device_exit(wm8994);
  533. return 0;
  534. }
  535. static const struct i2c_device_id wm8994_i2c_id[] = {
  536. { "wm8994", WM8994 },
  537. { "wm8958", WM8958 },
  538. { }
  539. };
  540. MODULE_DEVICE_TABLE(i2c, wm8994_i2c_id);
  541. static UNIVERSAL_DEV_PM_OPS(wm8994_pm_ops, wm8994_suspend, wm8994_resume,
  542. NULL);
  543. static struct i2c_driver wm8994_i2c_driver = {
  544. .driver = {
  545. .name = "wm8994",
  546. .owner = THIS_MODULE,
  547. .pm = &wm8994_pm_ops,
  548. },
  549. .probe = wm8994_i2c_probe,
  550. .remove = wm8994_i2c_remove,
  551. .id_table = wm8994_i2c_id,
  552. };
  553. static int __init wm8994_i2c_init(void)
  554. {
  555. int ret;
  556. ret = i2c_add_driver(&wm8994_i2c_driver);
  557. if (ret != 0)
  558. pr_err("Failed to register wm8994 I2C driver: %d\n", ret);
  559. return ret;
  560. }
  561. module_init(wm8994_i2c_init);
  562. static void __exit wm8994_i2c_exit(void)
  563. {
  564. i2c_del_driver(&wm8994_i2c_driver);
  565. }
  566. module_exit(wm8994_i2c_exit);
  567. MODULE_DESCRIPTION("Core support for the WM8994 audio CODEC");
  568. MODULE_LICENSE("GPL");
  569. MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");