mpc8610_hpcd.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. /**
  2. * Freescale MPC8610HPCD ALSA SoC Machine driver
  3. *
  4. * Author: Timur Tabi <timur@freescale.com>
  5. *
  6. * Copyright 2007-2010 Freescale Semiconductor, Inc.
  7. *
  8. * This file is licensed under the terms of the GNU General Public License
  9. * version 2. This program is licensed "as is" without any warranty of any
  10. * kind, whether express or implied.
  11. */
  12. #include <linux/module.h>
  13. #include <linux/interrupt.h>
  14. #include <linux/of_device.h>
  15. #include <linux/slab.h>
  16. #include <linux/of_i2c.h>
  17. #include <sound/soc.h>
  18. #include <asm/fsl_guts.h>
  19. #include "fsl_dma.h"
  20. #include "fsl_ssi.h"
  21. /* There's only one global utilities register */
  22. static phys_addr_t guts_phys;
  23. #define DAI_NAME_SIZE 32
  24. /**
  25. * mpc8610_hpcd_data: machine-specific ASoC device data
  26. *
  27. * This structure contains data for a single sound platform device on an
  28. * MPC8610 HPCD. Some of the data is taken from the device tree.
  29. */
  30. struct mpc8610_hpcd_data {
  31. struct snd_soc_dai_link dai[2];
  32. struct snd_soc_card card;
  33. unsigned int dai_format;
  34. unsigned int codec_clk_direction;
  35. unsigned int cpu_clk_direction;
  36. unsigned int clk_frequency;
  37. unsigned int ssi_id; /* 0 = SSI1, 1 = SSI2, etc */
  38. unsigned int dma_id[2]; /* 0 = DMA1, 1 = DMA2, etc */
  39. unsigned int dma_channel_id[2]; /* 0 = ch 0, 1 = ch 1, etc*/
  40. char codec_dai_name[DAI_NAME_SIZE];
  41. char codec_name[DAI_NAME_SIZE];
  42. char platform_name[2][DAI_NAME_SIZE]; /* One for each DMA channel */
  43. };
  44. /**
  45. * mpc8610_hpcd_machine_probe: initialize the board
  46. *
  47. * This function is used to initialize the board-specific hardware.
  48. *
  49. * Here we program the DMACR and PMUXCR registers.
  50. */
  51. static int mpc8610_hpcd_machine_probe(struct snd_soc_card *card)
  52. {
  53. struct mpc8610_hpcd_data *machine_data =
  54. container_of(card, struct mpc8610_hpcd_data, card);
  55. struct ccsr_guts __iomem *guts;
  56. guts = ioremap(guts_phys, sizeof(struct ccsr_guts));
  57. if (!guts) {
  58. dev_err(card->dev, "could not map global utilities\n");
  59. return -ENOMEM;
  60. }
  61. /* Program the signal routing between the SSI and the DMA */
  62. guts_set_dmacr(guts, machine_data->dma_id[0],
  63. machine_data->dma_channel_id[0],
  64. CCSR_GUTS_DMACR_DEV_SSI);
  65. guts_set_dmacr(guts, machine_data->dma_id[1],
  66. machine_data->dma_channel_id[1],
  67. CCSR_GUTS_DMACR_DEV_SSI);
  68. guts_set_pmuxcr_dma(guts, machine_data->dma_id[0],
  69. machine_data->dma_channel_id[0], 0);
  70. guts_set_pmuxcr_dma(guts, machine_data->dma_id[1],
  71. machine_data->dma_channel_id[1], 0);
  72. switch (machine_data->ssi_id) {
  73. case 0:
  74. clrsetbits_be32(&guts->pmuxcr,
  75. CCSR_GUTS_PMUXCR_SSI1_MASK, CCSR_GUTS_PMUXCR_SSI1_SSI);
  76. break;
  77. case 1:
  78. clrsetbits_be32(&guts->pmuxcr,
  79. CCSR_GUTS_PMUXCR_SSI2_MASK, CCSR_GUTS_PMUXCR_SSI2_SSI);
  80. break;
  81. }
  82. iounmap(guts);
  83. return 0;
  84. }
  85. /**
  86. * mpc8610_hpcd_startup: program the board with various hardware parameters
  87. *
  88. * This function takes board-specific information, like clock frequencies
  89. * and serial data formats, and passes that information to the codec and
  90. * transport drivers.
  91. */
  92. static int mpc8610_hpcd_startup(struct snd_pcm_substream *substream)
  93. {
  94. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  95. struct mpc8610_hpcd_data *machine_data =
  96. container_of(rtd->card, struct mpc8610_hpcd_data, card);
  97. struct device *dev = rtd->card->dev;
  98. int ret = 0;
  99. /* Tell the codec driver what the serial protocol is. */
  100. ret = snd_soc_dai_set_fmt(rtd->codec_dai, machine_data->dai_format);
  101. if (ret < 0) {
  102. dev_err(dev, "could not set codec driver audio format\n");
  103. return ret;
  104. }
  105. /*
  106. * Tell the codec driver what the MCLK frequency is, and whether it's
  107. * a slave or master.
  108. */
  109. ret = snd_soc_dai_set_sysclk(rtd->codec_dai, 0,
  110. machine_data->clk_frequency,
  111. machine_data->codec_clk_direction);
  112. if (ret < 0) {
  113. dev_err(dev, "could not set codec driver clock params\n");
  114. return ret;
  115. }
  116. return 0;
  117. }
  118. /**
  119. * mpc8610_hpcd_machine_remove: Remove the sound device
  120. *
  121. * This function is called to remove the sound device for one SSI. We
  122. * de-program the DMACR and PMUXCR register.
  123. */
  124. static int mpc8610_hpcd_machine_remove(struct snd_soc_card *card)
  125. {
  126. struct mpc8610_hpcd_data *machine_data =
  127. container_of(card, struct mpc8610_hpcd_data, card);
  128. struct ccsr_guts __iomem *guts;
  129. guts = ioremap(guts_phys, sizeof(struct ccsr_guts));
  130. if (!guts) {
  131. dev_err(card->dev, "could not map global utilities\n");
  132. return -ENOMEM;
  133. }
  134. /* Restore the signal routing */
  135. guts_set_dmacr(guts, machine_data->dma_id[0],
  136. machine_data->dma_channel_id[0], 0);
  137. guts_set_dmacr(guts, machine_data->dma_id[1],
  138. machine_data->dma_channel_id[1], 0);
  139. switch (machine_data->ssi_id) {
  140. case 0:
  141. clrsetbits_be32(&guts->pmuxcr,
  142. CCSR_GUTS_PMUXCR_SSI1_MASK, CCSR_GUTS_PMUXCR_SSI1_LA);
  143. break;
  144. case 1:
  145. clrsetbits_be32(&guts->pmuxcr,
  146. CCSR_GUTS_PMUXCR_SSI2_MASK, CCSR_GUTS_PMUXCR_SSI2_LA);
  147. break;
  148. }
  149. iounmap(guts);
  150. return 0;
  151. }
  152. /**
  153. * mpc8610_hpcd_ops: ASoC machine driver operations
  154. */
  155. static struct snd_soc_ops mpc8610_hpcd_ops = {
  156. .startup = mpc8610_hpcd_startup,
  157. };
  158. /**
  159. * get_node_by_phandle_name - get a node by its phandle name
  160. *
  161. * This function takes a node, the name of a property in that node, and a
  162. * compatible string. Assuming the property is a phandle to another node,
  163. * it returns that node, (optionally) if that node is compatible.
  164. *
  165. * If the property is not a phandle, or the node it points to is not compatible
  166. * with the specific string, then NULL is returned.
  167. */
  168. static struct device_node *get_node_by_phandle_name(struct device_node *np,
  169. const char *name,
  170. const char *compatible)
  171. {
  172. const phandle *ph;
  173. int len;
  174. ph = of_get_property(np, name, &len);
  175. if (!ph || (len != sizeof(phandle)))
  176. return NULL;
  177. np = of_find_node_by_phandle(*ph);
  178. if (!np)
  179. return NULL;
  180. if (compatible && !of_device_is_compatible(np, compatible)) {
  181. of_node_put(np);
  182. return NULL;
  183. }
  184. return np;
  185. }
  186. /**
  187. * get_parent_cell_index -- return the cell-index of the parent of a node
  188. *
  189. * Return the value of the cell-index property of the parent of the given
  190. * node. This is used for DMA channel nodes that need to know the DMA ID
  191. * of the controller they are on.
  192. */
  193. static int get_parent_cell_index(struct device_node *np)
  194. {
  195. struct device_node *parent = of_get_parent(np);
  196. const u32 *iprop;
  197. if (!parent)
  198. return -1;
  199. iprop = of_get_property(parent, "cell-index", NULL);
  200. of_node_put(parent);
  201. if (!iprop)
  202. return -1;
  203. return be32_to_cpup(iprop);
  204. }
  205. /**
  206. * codec_node_dev_name - determine the dev_name for a codec node
  207. *
  208. * This function determines the dev_name for an I2C node. This is the name
  209. * that would be returned by dev_name() if this device_node were part of a
  210. * 'struct device' It's ugly and hackish, but it works.
  211. *
  212. * The dev_name for such devices include the bus number and I2C address. For
  213. * example, "cs4270.0-004f".
  214. */
  215. static int codec_node_dev_name(struct device_node *np, char *buf, size_t len)
  216. {
  217. const u32 *iprop;
  218. int addr;
  219. char temp[DAI_NAME_SIZE];
  220. struct i2c_client *i2c;
  221. of_modalias_node(np, temp, DAI_NAME_SIZE);
  222. iprop = of_get_property(np, "reg", NULL);
  223. if (!iprop)
  224. return -EINVAL;
  225. addr = be32_to_cpup(iprop);
  226. /* We need the adapter number */
  227. i2c = of_find_i2c_device_by_node(np);
  228. if (!i2c)
  229. return -ENODEV;
  230. snprintf(buf, len, "%s.%u-%04x", temp, i2c->adapter->nr, addr);
  231. return 0;
  232. }
  233. static int get_dma_channel(struct device_node *ssi_np,
  234. const char *name,
  235. struct snd_soc_dai_link *dai,
  236. unsigned int *dma_channel_id,
  237. unsigned int *dma_id)
  238. {
  239. struct resource res;
  240. struct device_node *dma_channel_np;
  241. const u32 *iprop;
  242. int ret;
  243. dma_channel_np = get_node_by_phandle_name(ssi_np, name,
  244. "fsl,ssi-dma-channel");
  245. if (!dma_channel_np)
  246. return -EINVAL;
  247. /* Determine the dev_name for the device_node. This code mimics the
  248. * behavior of of_device_make_bus_id(). We need this because ASoC uses
  249. * the dev_name() of the device to match the platform (DMA) device with
  250. * the CPU (SSI) device. It's all ugly and hackish, but it works (for
  251. * now).
  252. *
  253. * dai->platform name should already point to an allocated buffer.
  254. */
  255. ret = of_address_to_resource(dma_channel_np, 0, &res);
  256. if (ret)
  257. return ret;
  258. snprintf((char *)dai->platform_name, DAI_NAME_SIZE, "%llx.%s",
  259. (unsigned long long) res.start, dma_channel_np->name);
  260. iprop = of_get_property(dma_channel_np, "cell-index", NULL);
  261. if (!iprop) {
  262. of_node_put(dma_channel_np);
  263. return -EINVAL;
  264. }
  265. *dma_channel_id = be32_to_cpup(iprop);
  266. *dma_id = get_parent_cell_index(dma_channel_np);
  267. of_node_put(dma_channel_np);
  268. return 0;
  269. }
  270. /**
  271. * mpc8610_hpcd_probe: platform probe function for the machine driver
  272. *
  273. * Although this is a machine driver, the SSI node is the "master" node with
  274. * respect to audio hardware connections. Therefore, we create a new ASoC
  275. * device for each new SSI node that has a codec attached.
  276. */
  277. static int mpc8610_hpcd_probe(struct platform_device *pdev)
  278. {
  279. struct device *dev = pdev->dev.parent;
  280. /* ssi_pdev is the platform device for the SSI node that probed us */
  281. struct platform_device *ssi_pdev =
  282. container_of(dev, struct platform_device, dev);
  283. struct device_node *np = ssi_pdev->dev.of_node;
  284. struct device_node *codec_np = NULL;
  285. struct platform_device *sound_device = NULL;
  286. struct mpc8610_hpcd_data *machine_data;
  287. int ret = -ENODEV;
  288. const char *sprop;
  289. const u32 *iprop;
  290. /* Find the codec node for this SSI. */
  291. codec_np = of_parse_phandle(np, "codec-handle", 0);
  292. if (!codec_np) {
  293. dev_err(dev, "invalid codec node\n");
  294. return -EINVAL;
  295. }
  296. machine_data = kzalloc(sizeof(struct mpc8610_hpcd_data), GFP_KERNEL);
  297. if (!machine_data) {
  298. ret = -ENOMEM;
  299. goto error_alloc;
  300. }
  301. machine_data->dai[0].cpu_dai_name = dev_name(&ssi_pdev->dev);
  302. machine_data->dai[0].ops = &mpc8610_hpcd_ops;
  303. /* Determine the codec name, it will be used as the codec DAI name */
  304. ret = codec_node_dev_name(codec_np, machine_data->codec_name,
  305. DAI_NAME_SIZE);
  306. if (ret) {
  307. dev_err(&pdev->dev, "invalid codec node %s\n",
  308. codec_np->full_name);
  309. ret = -EINVAL;
  310. goto error;
  311. }
  312. machine_data->dai[0].codec_name = machine_data->codec_name;
  313. /* The DAI name from the codec (snd_soc_dai_driver.name) */
  314. machine_data->dai[0].codec_dai_name = "cs4270-hifi";
  315. /* We register two DAIs per SSI, one for playback and the other for
  316. * capture. Currently, we only support codecs that have one DAI for
  317. * both playback and capture.
  318. */
  319. memcpy(&machine_data->dai[1], &machine_data->dai[0],
  320. sizeof(struct snd_soc_dai_link));
  321. /* Get the device ID */
  322. iprop = of_get_property(np, "cell-index", NULL);
  323. if (!iprop) {
  324. dev_err(&pdev->dev, "cell-index property not found\n");
  325. ret = -EINVAL;
  326. goto error;
  327. }
  328. machine_data->ssi_id = be32_to_cpup(iprop);
  329. /* Get the serial format and clock direction. */
  330. sprop = of_get_property(np, "fsl,mode", NULL);
  331. if (!sprop) {
  332. dev_err(&pdev->dev, "fsl,mode property not found\n");
  333. ret = -EINVAL;
  334. goto error;
  335. }
  336. if (strcasecmp(sprop, "i2s-slave") == 0) {
  337. machine_data->dai_format =
  338. SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBM_CFM;
  339. machine_data->codec_clk_direction = SND_SOC_CLOCK_OUT;
  340. machine_data->cpu_clk_direction = SND_SOC_CLOCK_IN;
  341. /* In i2s-slave mode, the codec has its own clock source, so we
  342. * need to get the frequency from the device tree and pass it to
  343. * the codec driver.
  344. */
  345. iprop = of_get_property(codec_np, "clock-frequency", NULL);
  346. if (!iprop || !*iprop) {
  347. dev_err(&pdev->dev, "codec bus-frequency "
  348. "property is missing or invalid\n");
  349. ret = -EINVAL;
  350. goto error;
  351. }
  352. machine_data->clk_frequency = be32_to_cpup(iprop);
  353. } else if (strcasecmp(sprop, "i2s-master") == 0) {
  354. machine_data->dai_format =
  355. SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBS_CFS;
  356. machine_data->codec_clk_direction = SND_SOC_CLOCK_IN;
  357. machine_data->cpu_clk_direction = SND_SOC_CLOCK_OUT;
  358. } else if (strcasecmp(sprop, "lj-slave") == 0) {
  359. machine_data->dai_format =
  360. SND_SOC_DAIFMT_LEFT_J | SND_SOC_DAIFMT_CBM_CFM;
  361. machine_data->codec_clk_direction = SND_SOC_CLOCK_OUT;
  362. machine_data->cpu_clk_direction = SND_SOC_CLOCK_IN;
  363. } else if (strcasecmp(sprop, "lj-master") == 0) {
  364. machine_data->dai_format =
  365. SND_SOC_DAIFMT_LEFT_J | SND_SOC_DAIFMT_CBS_CFS;
  366. machine_data->codec_clk_direction = SND_SOC_CLOCK_IN;
  367. machine_data->cpu_clk_direction = SND_SOC_CLOCK_OUT;
  368. } else if (strcasecmp(sprop, "rj-slave") == 0) {
  369. machine_data->dai_format =
  370. SND_SOC_DAIFMT_RIGHT_J | SND_SOC_DAIFMT_CBM_CFM;
  371. machine_data->codec_clk_direction = SND_SOC_CLOCK_OUT;
  372. machine_data->cpu_clk_direction = SND_SOC_CLOCK_IN;
  373. } else if (strcasecmp(sprop, "rj-master") == 0) {
  374. machine_data->dai_format =
  375. SND_SOC_DAIFMT_RIGHT_J | SND_SOC_DAIFMT_CBS_CFS;
  376. machine_data->codec_clk_direction = SND_SOC_CLOCK_IN;
  377. machine_data->cpu_clk_direction = SND_SOC_CLOCK_OUT;
  378. } else if (strcasecmp(sprop, "ac97-slave") == 0) {
  379. machine_data->dai_format =
  380. SND_SOC_DAIFMT_AC97 | SND_SOC_DAIFMT_CBM_CFM;
  381. machine_data->codec_clk_direction = SND_SOC_CLOCK_OUT;
  382. machine_data->cpu_clk_direction = SND_SOC_CLOCK_IN;
  383. } else if (strcasecmp(sprop, "ac97-master") == 0) {
  384. machine_data->dai_format =
  385. SND_SOC_DAIFMT_AC97 | SND_SOC_DAIFMT_CBS_CFS;
  386. machine_data->codec_clk_direction = SND_SOC_CLOCK_IN;
  387. machine_data->cpu_clk_direction = SND_SOC_CLOCK_OUT;
  388. } else {
  389. dev_err(&pdev->dev,
  390. "unrecognized fsl,mode property '%s'\n", sprop);
  391. ret = -EINVAL;
  392. goto error;
  393. }
  394. if (!machine_data->clk_frequency) {
  395. dev_err(&pdev->dev, "unknown clock frequency\n");
  396. ret = -EINVAL;
  397. goto error;
  398. }
  399. /* Find the playback DMA channel to use. */
  400. machine_data->dai[0].platform_name = machine_data->platform_name[0];
  401. ret = get_dma_channel(np, "fsl,playback-dma", &machine_data->dai[0],
  402. &machine_data->dma_channel_id[0],
  403. &machine_data->dma_id[0]);
  404. if (ret) {
  405. dev_err(&pdev->dev, "missing/invalid playback DMA phandle\n");
  406. goto error;
  407. }
  408. /* Find the capture DMA channel to use. */
  409. machine_data->dai[1].platform_name = machine_data->platform_name[1];
  410. ret = get_dma_channel(np, "fsl,capture-dma", &machine_data->dai[1],
  411. &machine_data->dma_channel_id[1],
  412. &machine_data->dma_id[1]);
  413. if (ret) {
  414. dev_err(&pdev->dev, "missing/invalid capture DMA phandle\n");
  415. goto error;
  416. }
  417. /* Initialize our DAI data structure. */
  418. machine_data->dai[0].stream_name = "playback";
  419. machine_data->dai[1].stream_name = "capture";
  420. machine_data->dai[0].name = machine_data->dai[0].stream_name;
  421. machine_data->dai[1].name = machine_data->dai[1].stream_name;
  422. machine_data->card.probe = mpc8610_hpcd_machine_probe;
  423. machine_data->card.remove = mpc8610_hpcd_machine_remove;
  424. machine_data->card.name = pdev->name; /* The platform driver name */
  425. machine_data->card.num_links = 2;
  426. machine_data->card.dai_link = machine_data->dai;
  427. /* Allocate a new audio platform device structure */
  428. sound_device = platform_device_alloc("soc-audio", -1);
  429. if (!sound_device) {
  430. dev_err(&pdev->dev, "platform device alloc failed\n");
  431. ret = -ENOMEM;
  432. goto error;
  433. }
  434. /* Associate the card data with the sound device */
  435. platform_set_drvdata(sound_device, &machine_data->card);
  436. /* Register with ASoC */
  437. ret = platform_device_add(sound_device);
  438. if (ret) {
  439. dev_err(&pdev->dev, "platform device add failed\n");
  440. goto error_sound;
  441. }
  442. dev_set_drvdata(&pdev->dev, sound_device);
  443. of_node_put(codec_np);
  444. return 0;
  445. error_sound:
  446. platform_device_put(sound_device);
  447. error:
  448. kfree(machine_data);
  449. error_alloc:
  450. of_node_put(codec_np);
  451. return ret;
  452. }
  453. /**
  454. * mpc8610_hpcd_remove: remove the platform device
  455. *
  456. * This function is called when the platform device is removed.
  457. */
  458. static int __devexit mpc8610_hpcd_remove(struct platform_device *pdev)
  459. {
  460. struct platform_device *sound_device = dev_get_drvdata(&pdev->dev);
  461. struct snd_soc_card *card = platform_get_drvdata(sound_device);
  462. struct mpc8610_hpcd_data *machine_data =
  463. container_of(card, struct mpc8610_hpcd_data, card);
  464. platform_device_unregister(sound_device);
  465. kfree(machine_data);
  466. sound_device->dev.platform_data = NULL;
  467. dev_set_drvdata(&pdev->dev, NULL);
  468. return 0;
  469. }
  470. static struct platform_driver mpc8610_hpcd_driver = {
  471. .probe = mpc8610_hpcd_probe,
  472. .remove = __devexit_p(mpc8610_hpcd_remove),
  473. .driver = {
  474. /* The name must match 'compatible' property in the device tree,
  475. * in lowercase letters.
  476. */
  477. .name = "snd-soc-mpc8610hpcd",
  478. .owner = THIS_MODULE,
  479. },
  480. };
  481. /**
  482. * mpc8610_hpcd_init: machine driver initialization.
  483. *
  484. * This function is called when this module is loaded.
  485. */
  486. static int __init mpc8610_hpcd_init(void)
  487. {
  488. struct device_node *guts_np;
  489. struct resource res;
  490. pr_info("Freescale MPC8610 HPCD ALSA SoC machine driver\n");
  491. /* Get the physical address of the global utilities registers */
  492. guts_np = of_find_compatible_node(NULL, NULL, "fsl,mpc8610-guts");
  493. if (of_address_to_resource(guts_np, 0, &res)) {
  494. pr_err("mpc8610-hpcd: missing/invalid global utilities node\n");
  495. return -EINVAL;
  496. }
  497. guts_phys = res.start;
  498. return platform_driver_register(&mpc8610_hpcd_driver);
  499. }
  500. /**
  501. * mpc8610_hpcd_exit: machine driver exit
  502. *
  503. * This function is called when this driver is unloaded.
  504. */
  505. static void __exit mpc8610_hpcd_exit(void)
  506. {
  507. platform_driver_unregister(&mpc8610_hpcd_driver);
  508. }
  509. module_init(mpc8610_hpcd_init);
  510. module_exit(mpc8610_hpcd_exit);
  511. MODULE_AUTHOR("Timur Tabi <timur@freescale.com>");
  512. MODULE_DESCRIPTION("Freescale MPC8610 HPCD ALSA SoC machine driver");
  513. MODULE_LICENSE("GPL v2");