p1022_ds.c 17 KB

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