omap-mcpdm.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. /*
  2. * omap-mcpdm.c -- OMAP ALSA SoC DAI driver using McPDM port
  3. *
  4. * Copyright (C) 2009 - 2011 Texas Instruments
  5. *
  6. * Author: Misael Lopez Cruz <misael.lopez@ti.com>
  7. * Contact: Jorge Eduardo Candelaria <x0107209@ti.com>
  8. * Margarita Olaya <magi.olaya@ti.com>
  9. * Peter Ujfalusi <peter.ujfalusi@ti.com>
  10. *
  11. * This program is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License
  13. * version 2 as published by the Free Software Foundation.
  14. *
  15. * This program is distributed in the hope that it will be useful, but
  16. * WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  23. * 02110-1301 USA
  24. *
  25. */
  26. #include <linux/init.h>
  27. #include <linux/module.h>
  28. #include <linux/platform_device.h>
  29. #include <linux/interrupt.h>
  30. #include <linux/err.h>
  31. #include <linux/io.h>
  32. #include <linux/irq.h>
  33. #include <linux/slab.h>
  34. #include <linux/pm_runtime.h>
  35. #include <linux/of_device.h>
  36. #include <sound/core.h>
  37. #include <sound/pcm.h>
  38. #include <sound/pcm_params.h>
  39. #include <sound/soc.h>
  40. #include <sound/dmaengine_pcm.h>
  41. #include <sound/omap-pcm.h>
  42. #include "omap-mcpdm.h"
  43. struct mcpdm_link_config {
  44. u32 link_mask; /* channel mask for the direction */
  45. u32 threshold; /* FIFO threshold */
  46. };
  47. struct omap_mcpdm {
  48. struct device *dev;
  49. unsigned long phys_base;
  50. void __iomem *io_base;
  51. int irq;
  52. struct mutex mutex;
  53. /* Playback/Capture configuration */
  54. struct mcpdm_link_config config[2];
  55. /* McPDM dn offsets for rx1, and 2 channels */
  56. u32 dn_rx_offset;
  57. /* McPDM needs to be restarted due to runtime reconfiguration */
  58. bool restart;
  59. struct snd_dmaengine_dai_dma_data dma_data[2];
  60. };
  61. /*
  62. * Stream DMA parameters
  63. */
  64. static inline void omap_mcpdm_write(struct omap_mcpdm *mcpdm, u16 reg, u32 val)
  65. {
  66. writel_relaxed(val, mcpdm->io_base + reg);
  67. }
  68. static inline int omap_mcpdm_read(struct omap_mcpdm *mcpdm, u16 reg)
  69. {
  70. return readl_relaxed(mcpdm->io_base + reg);
  71. }
  72. #ifdef DEBUG
  73. static void omap_mcpdm_reg_dump(struct omap_mcpdm *mcpdm)
  74. {
  75. dev_dbg(mcpdm->dev, "***********************\n");
  76. dev_dbg(mcpdm->dev, "IRQSTATUS_RAW: 0x%04x\n",
  77. omap_mcpdm_read(mcpdm, MCPDM_REG_IRQSTATUS_RAW));
  78. dev_dbg(mcpdm->dev, "IRQSTATUS: 0x%04x\n",
  79. omap_mcpdm_read(mcpdm, MCPDM_REG_IRQSTATUS));
  80. dev_dbg(mcpdm->dev, "IRQENABLE_SET: 0x%04x\n",
  81. omap_mcpdm_read(mcpdm, MCPDM_REG_IRQENABLE_SET));
  82. dev_dbg(mcpdm->dev, "IRQENABLE_CLR: 0x%04x\n",
  83. omap_mcpdm_read(mcpdm, MCPDM_REG_IRQENABLE_CLR));
  84. dev_dbg(mcpdm->dev, "IRQWAKE_EN: 0x%04x\n",
  85. omap_mcpdm_read(mcpdm, MCPDM_REG_IRQWAKE_EN));
  86. dev_dbg(mcpdm->dev, "DMAENABLE_SET: 0x%04x\n",
  87. omap_mcpdm_read(mcpdm, MCPDM_REG_DMAENABLE_SET));
  88. dev_dbg(mcpdm->dev, "DMAENABLE_CLR: 0x%04x\n",
  89. omap_mcpdm_read(mcpdm, MCPDM_REG_DMAENABLE_CLR));
  90. dev_dbg(mcpdm->dev, "DMAWAKEEN: 0x%04x\n",
  91. omap_mcpdm_read(mcpdm, MCPDM_REG_DMAWAKEEN));
  92. dev_dbg(mcpdm->dev, "CTRL: 0x%04x\n",
  93. omap_mcpdm_read(mcpdm, MCPDM_REG_CTRL));
  94. dev_dbg(mcpdm->dev, "DN_DATA: 0x%04x\n",
  95. omap_mcpdm_read(mcpdm, MCPDM_REG_DN_DATA));
  96. dev_dbg(mcpdm->dev, "UP_DATA: 0x%04x\n",
  97. omap_mcpdm_read(mcpdm, MCPDM_REG_UP_DATA));
  98. dev_dbg(mcpdm->dev, "FIFO_CTRL_DN: 0x%04x\n",
  99. omap_mcpdm_read(mcpdm, MCPDM_REG_FIFO_CTRL_DN));
  100. dev_dbg(mcpdm->dev, "FIFO_CTRL_UP: 0x%04x\n",
  101. omap_mcpdm_read(mcpdm, MCPDM_REG_FIFO_CTRL_UP));
  102. dev_dbg(mcpdm->dev, "***********************\n");
  103. }
  104. #else
  105. static void omap_mcpdm_reg_dump(struct omap_mcpdm *mcpdm) {}
  106. #endif
  107. /*
  108. * Enables the transfer through the PDM interface to/from the Phoenix
  109. * codec by enabling the corresponding UP or DN channels.
  110. */
  111. static void omap_mcpdm_start(struct omap_mcpdm *mcpdm)
  112. {
  113. u32 ctrl = omap_mcpdm_read(mcpdm, MCPDM_REG_CTRL);
  114. u32 link_mask = mcpdm->config[0].link_mask | mcpdm->config[1].link_mask;
  115. ctrl |= (MCPDM_SW_DN_RST | MCPDM_SW_UP_RST);
  116. omap_mcpdm_write(mcpdm, MCPDM_REG_CTRL, ctrl);
  117. ctrl |= link_mask;
  118. omap_mcpdm_write(mcpdm, MCPDM_REG_CTRL, ctrl);
  119. ctrl &= ~(MCPDM_SW_DN_RST | MCPDM_SW_UP_RST);
  120. omap_mcpdm_write(mcpdm, MCPDM_REG_CTRL, ctrl);
  121. }
  122. /*
  123. * Disables the transfer through the PDM interface to/from the Phoenix
  124. * codec by disabling the corresponding UP or DN channels.
  125. */
  126. static void omap_mcpdm_stop(struct omap_mcpdm *mcpdm)
  127. {
  128. u32 ctrl = omap_mcpdm_read(mcpdm, MCPDM_REG_CTRL);
  129. u32 link_mask = MCPDM_PDM_DN_MASK | MCPDM_PDM_UP_MASK;
  130. ctrl |= (MCPDM_SW_DN_RST | MCPDM_SW_UP_RST);
  131. omap_mcpdm_write(mcpdm, MCPDM_REG_CTRL, ctrl);
  132. ctrl &= ~(link_mask);
  133. omap_mcpdm_write(mcpdm, MCPDM_REG_CTRL, ctrl);
  134. ctrl &= ~(MCPDM_SW_DN_RST | MCPDM_SW_UP_RST);
  135. omap_mcpdm_write(mcpdm, MCPDM_REG_CTRL, ctrl);
  136. }
  137. /*
  138. * Is the physical McPDM interface active.
  139. */
  140. static inline int omap_mcpdm_active(struct omap_mcpdm *mcpdm)
  141. {
  142. return omap_mcpdm_read(mcpdm, MCPDM_REG_CTRL) &
  143. (MCPDM_PDM_DN_MASK | MCPDM_PDM_UP_MASK);
  144. }
  145. /*
  146. * Configures McPDM uplink, and downlink for audio.
  147. * This function should be called before omap_mcpdm_start.
  148. */
  149. static void omap_mcpdm_open_streams(struct omap_mcpdm *mcpdm)
  150. {
  151. omap_mcpdm_write(mcpdm, MCPDM_REG_IRQENABLE_SET,
  152. MCPDM_DN_IRQ_EMPTY | MCPDM_DN_IRQ_FULL |
  153. MCPDM_UP_IRQ_EMPTY | MCPDM_UP_IRQ_FULL);
  154. /* Enable DN RX1/2 offset cancellation feature, if configured */
  155. if (mcpdm->dn_rx_offset) {
  156. u32 dn_offset = mcpdm->dn_rx_offset;
  157. omap_mcpdm_write(mcpdm, MCPDM_REG_DN_OFFSET, dn_offset);
  158. dn_offset |= (MCPDM_DN_OFST_RX1_EN | MCPDM_DN_OFST_RX2_EN);
  159. omap_mcpdm_write(mcpdm, MCPDM_REG_DN_OFFSET, dn_offset);
  160. }
  161. omap_mcpdm_write(mcpdm, MCPDM_REG_FIFO_CTRL_DN,
  162. mcpdm->config[SNDRV_PCM_STREAM_PLAYBACK].threshold);
  163. omap_mcpdm_write(mcpdm, MCPDM_REG_FIFO_CTRL_UP,
  164. mcpdm->config[SNDRV_PCM_STREAM_CAPTURE].threshold);
  165. omap_mcpdm_write(mcpdm, MCPDM_REG_DMAENABLE_SET,
  166. MCPDM_DMA_DN_ENABLE | MCPDM_DMA_UP_ENABLE);
  167. }
  168. /*
  169. * Cleans McPDM uplink, and downlink configuration.
  170. * This function should be called when the stream is closed.
  171. */
  172. static void omap_mcpdm_close_streams(struct omap_mcpdm *mcpdm)
  173. {
  174. /* Disable irq request generation for downlink */
  175. omap_mcpdm_write(mcpdm, MCPDM_REG_IRQENABLE_CLR,
  176. MCPDM_DN_IRQ_EMPTY | MCPDM_DN_IRQ_FULL);
  177. /* Disable DMA request generation for downlink */
  178. omap_mcpdm_write(mcpdm, MCPDM_REG_DMAENABLE_CLR, MCPDM_DMA_DN_ENABLE);
  179. /* Disable irq request generation for uplink */
  180. omap_mcpdm_write(mcpdm, MCPDM_REG_IRQENABLE_CLR,
  181. MCPDM_UP_IRQ_EMPTY | MCPDM_UP_IRQ_FULL);
  182. /* Disable DMA request generation for uplink */
  183. omap_mcpdm_write(mcpdm, MCPDM_REG_DMAENABLE_CLR, MCPDM_DMA_UP_ENABLE);
  184. /* Disable RX1/2 offset cancellation */
  185. if (mcpdm->dn_rx_offset)
  186. omap_mcpdm_write(mcpdm, MCPDM_REG_DN_OFFSET, 0);
  187. }
  188. static irqreturn_t omap_mcpdm_irq_handler(int irq, void *dev_id)
  189. {
  190. struct omap_mcpdm *mcpdm = dev_id;
  191. int irq_status;
  192. irq_status = omap_mcpdm_read(mcpdm, MCPDM_REG_IRQSTATUS);
  193. /* Acknowledge irq event */
  194. omap_mcpdm_write(mcpdm, MCPDM_REG_IRQSTATUS, irq_status);
  195. if (irq_status & MCPDM_DN_IRQ_FULL)
  196. dev_dbg(mcpdm->dev, "DN (playback) FIFO Full\n");
  197. if (irq_status & MCPDM_DN_IRQ_EMPTY)
  198. dev_dbg(mcpdm->dev, "DN (playback) FIFO Empty\n");
  199. if (irq_status & MCPDM_DN_IRQ)
  200. dev_dbg(mcpdm->dev, "DN (playback) write request\n");
  201. if (irq_status & MCPDM_UP_IRQ_FULL)
  202. dev_dbg(mcpdm->dev, "UP (capture) FIFO Full\n");
  203. if (irq_status & MCPDM_UP_IRQ_EMPTY)
  204. dev_dbg(mcpdm->dev, "UP (capture) FIFO Empty\n");
  205. if (irq_status & MCPDM_UP_IRQ)
  206. dev_dbg(mcpdm->dev, "UP (capture) write request\n");
  207. return IRQ_HANDLED;
  208. }
  209. static int omap_mcpdm_dai_startup(struct snd_pcm_substream *substream,
  210. struct snd_soc_dai *dai)
  211. {
  212. struct omap_mcpdm *mcpdm = snd_soc_dai_get_drvdata(dai);
  213. mutex_lock(&mcpdm->mutex);
  214. if (!dai->active) {
  215. u32 ctrl = omap_mcpdm_read(mcpdm, MCPDM_REG_CTRL);
  216. omap_mcpdm_write(mcpdm, MCPDM_REG_CTRL, ctrl | MCPDM_WD_EN);
  217. omap_mcpdm_open_streams(mcpdm);
  218. }
  219. mutex_unlock(&mcpdm->mutex);
  220. return 0;
  221. }
  222. static void omap_mcpdm_dai_shutdown(struct snd_pcm_substream *substream,
  223. struct snd_soc_dai *dai)
  224. {
  225. struct omap_mcpdm *mcpdm = snd_soc_dai_get_drvdata(dai);
  226. mutex_lock(&mcpdm->mutex);
  227. if (!dai->active) {
  228. if (omap_mcpdm_active(mcpdm)) {
  229. omap_mcpdm_stop(mcpdm);
  230. omap_mcpdm_close_streams(mcpdm);
  231. mcpdm->config[0].link_mask = 0;
  232. mcpdm->config[1].link_mask = 0;
  233. }
  234. }
  235. mutex_unlock(&mcpdm->mutex);
  236. }
  237. static int omap_mcpdm_dai_hw_params(struct snd_pcm_substream *substream,
  238. struct snd_pcm_hw_params *params,
  239. struct snd_soc_dai *dai)
  240. {
  241. struct omap_mcpdm *mcpdm = snd_soc_dai_get_drvdata(dai);
  242. int stream = substream->stream;
  243. struct snd_dmaengine_dai_dma_data *dma_data;
  244. u32 threshold;
  245. int channels;
  246. int link_mask = 0;
  247. channels = params_channels(params);
  248. switch (channels) {
  249. case 5:
  250. if (stream == SNDRV_PCM_STREAM_CAPTURE)
  251. /* up to 3 channels for capture */
  252. return -EINVAL;
  253. link_mask |= 1 << 4;
  254. case 4:
  255. if (stream == SNDRV_PCM_STREAM_CAPTURE)
  256. /* up to 3 channels for capture */
  257. return -EINVAL;
  258. link_mask |= 1 << 3;
  259. case 3:
  260. link_mask |= 1 << 2;
  261. case 2:
  262. link_mask |= 1 << 1;
  263. case 1:
  264. link_mask |= 1 << 0;
  265. break;
  266. default:
  267. /* unsupported number of channels */
  268. return -EINVAL;
  269. }
  270. dma_data = snd_soc_dai_get_dma_data(dai, substream);
  271. threshold = mcpdm->config[stream].threshold;
  272. /* Configure McPDM channels, and DMA packet size */
  273. if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
  274. link_mask <<= 3;
  275. /* If capture is not running assume a stereo stream to come */
  276. if (!mcpdm->config[!stream].link_mask)
  277. mcpdm->config[!stream].link_mask = 0x3;
  278. dma_data->maxburst =
  279. (MCPDM_DN_THRES_MAX - threshold) * channels;
  280. } else {
  281. /* If playback is not running assume a stereo stream to come */
  282. if (!mcpdm->config[!stream].link_mask)
  283. mcpdm->config[!stream].link_mask = (0x3 << 3);
  284. dma_data->maxburst = threshold * channels;
  285. }
  286. /* Check if we need to restart McPDM with this stream */
  287. if (mcpdm->config[stream].link_mask &&
  288. mcpdm->config[stream].link_mask != link_mask)
  289. mcpdm->restart = true;
  290. mcpdm->config[stream].link_mask = link_mask;
  291. return 0;
  292. }
  293. static int omap_mcpdm_prepare(struct snd_pcm_substream *substream,
  294. struct snd_soc_dai *dai)
  295. {
  296. struct omap_mcpdm *mcpdm = snd_soc_dai_get_drvdata(dai);
  297. if (!omap_mcpdm_active(mcpdm)) {
  298. omap_mcpdm_start(mcpdm);
  299. omap_mcpdm_reg_dump(mcpdm);
  300. } else if (mcpdm->restart) {
  301. omap_mcpdm_stop(mcpdm);
  302. omap_mcpdm_start(mcpdm);
  303. mcpdm->restart = false;
  304. omap_mcpdm_reg_dump(mcpdm);
  305. }
  306. return 0;
  307. }
  308. static const struct snd_soc_dai_ops omap_mcpdm_dai_ops = {
  309. .startup = omap_mcpdm_dai_startup,
  310. .shutdown = omap_mcpdm_dai_shutdown,
  311. .hw_params = omap_mcpdm_dai_hw_params,
  312. .prepare = omap_mcpdm_prepare,
  313. };
  314. static int omap_mcpdm_probe(struct snd_soc_dai *dai)
  315. {
  316. struct omap_mcpdm *mcpdm = snd_soc_dai_get_drvdata(dai);
  317. int ret;
  318. pm_runtime_enable(mcpdm->dev);
  319. /* Disable lines while request is ongoing */
  320. pm_runtime_get_sync(mcpdm->dev);
  321. omap_mcpdm_write(mcpdm, MCPDM_REG_CTRL, 0x00);
  322. ret = devm_request_irq(mcpdm->dev, mcpdm->irq, omap_mcpdm_irq_handler,
  323. 0, "McPDM", (void *)mcpdm);
  324. pm_runtime_put_sync(mcpdm->dev);
  325. if (ret) {
  326. dev_err(mcpdm->dev, "Request for IRQ failed\n");
  327. pm_runtime_disable(mcpdm->dev);
  328. }
  329. /* Configure McPDM threshold values */
  330. mcpdm->config[SNDRV_PCM_STREAM_PLAYBACK].threshold = 2;
  331. mcpdm->config[SNDRV_PCM_STREAM_CAPTURE].threshold =
  332. MCPDM_UP_THRES_MAX - 3;
  333. snd_soc_dai_init_dma_data(dai,
  334. &mcpdm->dma_data[SNDRV_PCM_STREAM_PLAYBACK],
  335. &mcpdm->dma_data[SNDRV_PCM_STREAM_CAPTURE]);
  336. return ret;
  337. }
  338. static int omap_mcpdm_remove(struct snd_soc_dai *dai)
  339. {
  340. struct omap_mcpdm *mcpdm = snd_soc_dai_get_drvdata(dai);
  341. pm_runtime_disable(mcpdm->dev);
  342. return 0;
  343. }
  344. #define OMAP_MCPDM_RATES (SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000)
  345. #define OMAP_MCPDM_FORMATS SNDRV_PCM_FMTBIT_S32_LE
  346. static struct snd_soc_dai_driver omap_mcpdm_dai = {
  347. .probe = omap_mcpdm_probe,
  348. .remove = omap_mcpdm_remove,
  349. .probe_order = SND_SOC_COMP_ORDER_LATE,
  350. .remove_order = SND_SOC_COMP_ORDER_EARLY,
  351. .playback = {
  352. .channels_min = 1,
  353. .channels_max = 5,
  354. .rates = OMAP_MCPDM_RATES,
  355. .formats = OMAP_MCPDM_FORMATS,
  356. .sig_bits = 24,
  357. },
  358. .capture = {
  359. .channels_min = 1,
  360. .channels_max = 3,
  361. .rates = OMAP_MCPDM_RATES,
  362. .formats = OMAP_MCPDM_FORMATS,
  363. .sig_bits = 24,
  364. },
  365. .ops = &omap_mcpdm_dai_ops,
  366. };
  367. static const struct snd_soc_component_driver omap_mcpdm_component = {
  368. .name = "omap-mcpdm",
  369. };
  370. void omap_mcpdm_configure_dn_offsets(struct snd_soc_pcm_runtime *rtd,
  371. u8 rx1, u8 rx2)
  372. {
  373. struct omap_mcpdm *mcpdm = snd_soc_dai_get_drvdata(rtd->cpu_dai);
  374. mcpdm->dn_rx_offset = MCPDM_DNOFST_RX1(rx1) | MCPDM_DNOFST_RX2(rx2);
  375. }
  376. EXPORT_SYMBOL_GPL(omap_mcpdm_configure_dn_offsets);
  377. static int asoc_mcpdm_probe(struct platform_device *pdev)
  378. {
  379. struct omap_mcpdm *mcpdm;
  380. struct resource *res;
  381. int ret;
  382. mcpdm = devm_kzalloc(&pdev->dev, sizeof(struct omap_mcpdm), GFP_KERNEL);
  383. if (!mcpdm)
  384. return -ENOMEM;
  385. platform_set_drvdata(pdev, mcpdm);
  386. mutex_init(&mcpdm->mutex);
  387. res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dma");
  388. if (res == NULL)
  389. return -ENOMEM;
  390. mcpdm->dma_data[0].addr = res->start + MCPDM_REG_DN_DATA;
  391. mcpdm->dma_data[1].addr = res->start + MCPDM_REG_UP_DATA;
  392. mcpdm->dma_data[0].filter_data = "dn_link";
  393. mcpdm->dma_data[1].filter_data = "up_link";
  394. res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mpu");
  395. mcpdm->io_base = devm_ioremap_resource(&pdev->dev, res);
  396. if (IS_ERR(mcpdm->io_base))
  397. return PTR_ERR(mcpdm->io_base);
  398. mcpdm->irq = platform_get_irq(pdev, 0);
  399. if (mcpdm->irq < 0)
  400. return mcpdm->irq;
  401. mcpdm->dev = &pdev->dev;
  402. ret = devm_snd_soc_register_component(&pdev->dev,
  403. &omap_mcpdm_component,
  404. &omap_mcpdm_dai, 1);
  405. if (ret)
  406. return ret;
  407. return omap_pcm_platform_register(&pdev->dev);
  408. }
  409. static const struct of_device_id omap_mcpdm_of_match[] = {
  410. { .compatible = "ti,omap4-mcpdm", },
  411. { }
  412. };
  413. MODULE_DEVICE_TABLE(of, omap_mcpdm_of_match);
  414. static struct platform_driver asoc_mcpdm_driver = {
  415. .driver = {
  416. .name = "omap-mcpdm",
  417. .of_match_table = omap_mcpdm_of_match,
  418. },
  419. .probe = asoc_mcpdm_probe,
  420. };
  421. module_platform_driver(asoc_mcpdm_driver);
  422. MODULE_ALIAS("platform:omap-mcpdm");
  423. MODULE_AUTHOR("Misael Lopez Cruz <misael.lopez@ti.com>");
  424. MODULE_DESCRIPTION("OMAP PDM SoC Interface");
  425. MODULE_LICENSE("GPL");