omap_elm.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. /*
  2. * Error Location Module
  3. *
  4. * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. */
  17. #define DRIVER_NAME "omap-elm"
  18. #include <linux/platform_device.h>
  19. #include <linux/module.h>
  20. #include <linux/interrupt.h>
  21. #include <linux/io.h>
  22. #include <linux/of.h>
  23. #include <linux/sched.h>
  24. #include <linux/pm_runtime.h>
  25. #include <linux/platform_data/elm.h>
  26. #define ELM_SYSCONFIG 0x010
  27. #define ELM_IRQSTATUS 0x018
  28. #define ELM_IRQENABLE 0x01c
  29. #define ELM_LOCATION_CONFIG 0x020
  30. #define ELM_PAGE_CTRL 0x080
  31. #define ELM_SYNDROME_FRAGMENT_0 0x400
  32. #define ELM_SYNDROME_FRAGMENT_1 0x404
  33. #define ELM_SYNDROME_FRAGMENT_2 0x408
  34. #define ELM_SYNDROME_FRAGMENT_3 0x40c
  35. #define ELM_SYNDROME_FRAGMENT_4 0x410
  36. #define ELM_SYNDROME_FRAGMENT_5 0x414
  37. #define ELM_SYNDROME_FRAGMENT_6 0x418
  38. #define ELM_LOCATION_STATUS 0x800
  39. #define ELM_ERROR_LOCATION_0 0x880
  40. /* ELM Interrupt Status Register */
  41. #define INTR_STATUS_PAGE_VALID BIT(8)
  42. /* ELM Interrupt Enable Register */
  43. #define INTR_EN_PAGE_MASK BIT(8)
  44. /* ELM Location Configuration Register */
  45. #define ECC_BCH_LEVEL_MASK 0x3
  46. /* ELM syndrome */
  47. #define ELM_SYNDROME_VALID BIT(16)
  48. /* ELM_LOCATION_STATUS Register */
  49. #define ECC_CORRECTABLE_MASK BIT(8)
  50. #define ECC_NB_ERRORS_MASK 0x1f
  51. /* ELM_ERROR_LOCATION_0-15 Registers */
  52. #define ECC_ERROR_LOCATION_MASK 0x1fff
  53. #define ELM_ECC_SIZE 0x7ff
  54. #define SYNDROME_FRAGMENT_REG_SIZE 0x40
  55. #define ERROR_LOCATION_SIZE 0x100
  56. struct elm_registers {
  57. u32 elm_irqenable;
  58. u32 elm_sysconfig;
  59. u32 elm_location_config;
  60. u32 elm_page_ctrl;
  61. u32 elm_syndrome_fragment_6[ERROR_VECTOR_MAX];
  62. u32 elm_syndrome_fragment_5[ERROR_VECTOR_MAX];
  63. u32 elm_syndrome_fragment_4[ERROR_VECTOR_MAX];
  64. u32 elm_syndrome_fragment_3[ERROR_VECTOR_MAX];
  65. u32 elm_syndrome_fragment_2[ERROR_VECTOR_MAX];
  66. u32 elm_syndrome_fragment_1[ERROR_VECTOR_MAX];
  67. u32 elm_syndrome_fragment_0[ERROR_VECTOR_MAX];
  68. };
  69. struct elm_info {
  70. struct device *dev;
  71. void __iomem *elm_base;
  72. struct completion elm_completion;
  73. struct list_head list;
  74. enum bch_ecc bch_type;
  75. struct elm_registers elm_regs;
  76. int ecc_steps;
  77. int ecc_syndrome_size;
  78. };
  79. static LIST_HEAD(elm_devices);
  80. static void elm_write_reg(struct elm_info *info, int offset, u32 val)
  81. {
  82. writel(val, info->elm_base + offset);
  83. }
  84. static u32 elm_read_reg(struct elm_info *info, int offset)
  85. {
  86. return readl(info->elm_base + offset);
  87. }
  88. /**
  89. * elm_config - Configure ELM module
  90. * @dev: ELM device
  91. * @bch_type: Type of BCH ecc
  92. */
  93. int elm_config(struct device *dev, enum bch_ecc bch_type,
  94. int ecc_steps, int ecc_step_size, int ecc_syndrome_size)
  95. {
  96. u32 reg_val;
  97. struct elm_info *info = dev_get_drvdata(dev);
  98. if (!info) {
  99. dev_err(dev, "Unable to configure elm - device not probed?\n");
  100. return -EPROBE_DEFER;
  101. }
  102. /* ELM cannot detect ECC errors for chunks > 1KB */
  103. if (ecc_step_size > ((ELM_ECC_SIZE + 1) / 2)) {
  104. dev_err(dev, "unsupported config ecc-size=%d\n", ecc_step_size);
  105. return -EINVAL;
  106. }
  107. /* ELM support 8 error syndrome process */
  108. if (ecc_steps > ERROR_VECTOR_MAX) {
  109. dev_err(dev, "unsupported config ecc-step=%d\n", ecc_steps);
  110. return -EINVAL;
  111. }
  112. reg_val = (bch_type & ECC_BCH_LEVEL_MASK) | (ELM_ECC_SIZE << 16);
  113. elm_write_reg(info, ELM_LOCATION_CONFIG, reg_val);
  114. info->bch_type = bch_type;
  115. info->ecc_steps = ecc_steps;
  116. info->ecc_syndrome_size = ecc_syndrome_size;
  117. return 0;
  118. }
  119. EXPORT_SYMBOL(elm_config);
  120. /**
  121. * elm_configure_page_mode - Enable/Disable page mode
  122. * @info: elm info
  123. * @index: index number of syndrome fragment vector
  124. * @enable: enable/disable flag for page mode
  125. *
  126. * Enable page mode for syndrome fragment index
  127. */
  128. static void elm_configure_page_mode(struct elm_info *info, int index,
  129. bool enable)
  130. {
  131. u32 reg_val;
  132. reg_val = elm_read_reg(info, ELM_PAGE_CTRL);
  133. if (enable)
  134. reg_val |= BIT(index); /* enable page mode */
  135. else
  136. reg_val &= ~BIT(index); /* disable page mode */
  137. elm_write_reg(info, ELM_PAGE_CTRL, reg_val);
  138. }
  139. /**
  140. * elm_load_syndrome - Load ELM syndrome reg
  141. * @info: elm info
  142. * @err_vec: elm error vectors
  143. * @ecc: buffer with calculated ecc
  144. *
  145. * Load syndrome fragment registers with calculated ecc in reverse order.
  146. */
  147. static void elm_load_syndrome(struct elm_info *info,
  148. struct elm_errorvec *err_vec, u8 *ecc)
  149. {
  150. int i, offset;
  151. u32 val;
  152. for (i = 0; i < info->ecc_steps; i++) {
  153. /* Check error reported */
  154. if (err_vec[i].error_reported) {
  155. elm_configure_page_mode(info, i, true);
  156. offset = ELM_SYNDROME_FRAGMENT_0 +
  157. SYNDROME_FRAGMENT_REG_SIZE * i;
  158. switch (info->bch_type) {
  159. case BCH8_ECC:
  160. /* syndrome fragment 0 = ecc[9-12B] */
  161. val = cpu_to_be32(*(u32 *) &ecc[9]);
  162. elm_write_reg(info, offset, val);
  163. /* syndrome fragment 1 = ecc[5-8B] */
  164. offset += 4;
  165. val = cpu_to_be32(*(u32 *) &ecc[5]);
  166. elm_write_reg(info, offset, val);
  167. /* syndrome fragment 2 = ecc[1-4B] */
  168. offset += 4;
  169. val = cpu_to_be32(*(u32 *) &ecc[1]);
  170. elm_write_reg(info, offset, val);
  171. /* syndrome fragment 3 = ecc[0B] */
  172. offset += 4;
  173. val = ecc[0];
  174. elm_write_reg(info, offset, val);
  175. break;
  176. case BCH4_ECC:
  177. /* syndrome fragment 0 = ecc[20-52b] bits */
  178. val = (cpu_to_be32(*(u32 *) &ecc[3]) >> 4) |
  179. ((ecc[2] & 0xf) << 28);
  180. elm_write_reg(info, offset, val);
  181. /* syndrome fragment 1 = ecc[0-20b] bits */
  182. offset += 4;
  183. val = cpu_to_be32(*(u32 *) &ecc[0]) >> 12;
  184. elm_write_reg(info, offset, val);
  185. break;
  186. case BCH16_ECC:
  187. val = cpu_to_be32(*(u32 *) &ecc[22]);
  188. elm_write_reg(info, offset, val);
  189. offset += 4;
  190. val = cpu_to_be32(*(u32 *) &ecc[18]);
  191. elm_write_reg(info, offset, val);
  192. offset += 4;
  193. val = cpu_to_be32(*(u32 *) &ecc[14]);
  194. elm_write_reg(info, offset, val);
  195. offset += 4;
  196. val = cpu_to_be32(*(u32 *) &ecc[10]);
  197. elm_write_reg(info, offset, val);
  198. offset += 4;
  199. val = cpu_to_be32(*(u32 *) &ecc[6]);
  200. elm_write_reg(info, offset, val);
  201. offset += 4;
  202. val = cpu_to_be32(*(u32 *) &ecc[2]);
  203. elm_write_reg(info, offset, val);
  204. offset += 4;
  205. val = cpu_to_be32(*(u32 *) &ecc[0]) >> 16;
  206. elm_write_reg(info, offset, val);
  207. break;
  208. default:
  209. pr_err("invalid config bch_type\n");
  210. }
  211. }
  212. /* Update ecc pointer with ecc byte size */
  213. ecc += info->ecc_syndrome_size;
  214. }
  215. }
  216. /**
  217. * elm_start_processing - start elm syndrome processing
  218. * @info: elm info
  219. * @err_vec: elm error vectors
  220. *
  221. * Set syndrome valid bit for syndrome fragment registers for which
  222. * elm syndrome fragment registers are loaded. This enables elm module
  223. * to start processing syndrome vectors.
  224. */
  225. static void elm_start_processing(struct elm_info *info,
  226. struct elm_errorvec *err_vec)
  227. {
  228. int i, offset;
  229. u32 reg_val;
  230. /*
  231. * Set syndrome vector valid, so that ELM module
  232. * will process it for vectors error is reported
  233. */
  234. for (i = 0; i < info->ecc_steps; i++) {
  235. if (err_vec[i].error_reported) {
  236. offset = ELM_SYNDROME_FRAGMENT_6 +
  237. SYNDROME_FRAGMENT_REG_SIZE * i;
  238. reg_val = elm_read_reg(info, offset);
  239. reg_val |= ELM_SYNDROME_VALID;
  240. elm_write_reg(info, offset, reg_val);
  241. }
  242. }
  243. }
  244. /**
  245. * elm_error_correction - locate correctable error position
  246. * @info: elm info
  247. * @err_vec: elm error vectors
  248. *
  249. * On completion of processing by elm module, error location status
  250. * register updated with correctable/uncorrectable error information.
  251. * In case of correctable errors, number of errors located from
  252. * elm location status register & read the positions from
  253. * elm error location register.
  254. */
  255. static void elm_error_correction(struct elm_info *info,
  256. struct elm_errorvec *err_vec)
  257. {
  258. int i, j, errors = 0;
  259. int offset;
  260. u32 reg_val;
  261. for (i = 0; i < info->ecc_steps; i++) {
  262. /* Check error reported */
  263. if (err_vec[i].error_reported) {
  264. offset = ELM_LOCATION_STATUS + ERROR_LOCATION_SIZE * i;
  265. reg_val = elm_read_reg(info, offset);
  266. /* Check correctable error or not */
  267. if (reg_val & ECC_CORRECTABLE_MASK) {
  268. offset = ELM_ERROR_LOCATION_0 +
  269. ERROR_LOCATION_SIZE * i;
  270. /* Read count of correctable errors */
  271. err_vec[i].error_count = reg_val &
  272. ECC_NB_ERRORS_MASK;
  273. /* Update the error locations in error vector */
  274. for (j = 0; j < err_vec[i].error_count; j++) {
  275. reg_val = elm_read_reg(info, offset);
  276. err_vec[i].error_loc[j] = reg_val &
  277. ECC_ERROR_LOCATION_MASK;
  278. /* Update error location register */
  279. offset += 4;
  280. }
  281. errors += err_vec[i].error_count;
  282. } else {
  283. err_vec[i].error_uncorrectable = true;
  284. }
  285. /* Clearing interrupts for processed error vectors */
  286. elm_write_reg(info, ELM_IRQSTATUS, BIT(i));
  287. /* Disable page mode */
  288. elm_configure_page_mode(info, i, false);
  289. }
  290. }
  291. }
  292. /**
  293. * elm_decode_bch_error_page - Locate error position
  294. * @dev: device pointer
  295. * @ecc_calc: calculated ECC bytes from GPMC
  296. * @err_vec: elm error vectors
  297. *
  298. * Called with one or more error reported vectors & vectors with
  299. * error reported is updated in err_vec[].error_reported
  300. */
  301. void elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc,
  302. struct elm_errorvec *err_vec)
  303. {
  304. struct elm_info *info = dev_get_drvdata(dev);
  305. u32 reg_val;
  306. /* Enable page mode interrupt */
  307. reg_val = elm_read_reg(info, ELM_IRQSTATUS);
  308. elm_write_reg(info, ELM_IRQSTATUS, reg_val & INTR_STATUS_PAGE_VALID);
  309. elm_write_reg(info, ELM_IRQENABLE, INTR_EN_PAGE_MASK);
  310. /* Load valid ecc byte to syndrome fragment register */
  311. elm_load_syndrome(info, err_vec, ecc_calc);
  312. /* Enable syndrome processing for which syndrome fragment is updated */
  313. elm_start_processing(info, err_vec);
  314. /* Wait for ELM module to finish locating error correction */
  315. wait_for_completion(&info->elm_completion);
  316. /* Disable page mode interrupt */
  317. reg_val = elm_read_reg(info, ELM_IRQENABLE);
  318. elm_write_reg(info, ELM_IRQENABLE, reg_val & ~INTR_EN_PAGE_MASK);
  319. elm_error_correction(info, err_vec);
  320. }
  321. EXPORT_SYMBOL(elm_decode_bch_error_page);
  322. static irqreturn_t elm_isr(int this_irq, void *dev_id)
  323. {
  324. u32 reg_val;
  325. struct elm_info *info = dev_id;
  326. reg_val = elm_read_reg(info, ELM_IRQSTATUS);
  327. /* All error vectors processed */
  328. if (reg_val & INTR_STATUS_PAGE_VALID) {
  329. elm_write_reg(info, ELM_IRQSTATUS,
  330. reg_val & INTR_STATUS_PAGE_VALID);
  331. complete(&info->elm_completion);
  332. return IRQ_HANDLED;
  333. }
  334. return IRQ_NONE;
  335. }
  336. static int elm_probe(struct platform_device *pdev)
  337. {
  338. int ret = 0;
  339. struct resource *res, *irq;
  340. struct elm_info *info;
  341. info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
  342. if (!info)
  343. return -ENOMEM;
  344. info->dev = &pdev->dev;
  345. irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
  346. if (!irq) {
  347. dev_err(&pdev->dev, "no irq resource defined\n");
  348. return -ENODEV;
  349. }
  350. res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
  351. info->elm_base = devm_ioremap_resource(&pdev->dev, res);
  352. if (IS_ERR(info->elm_base))
  353. return PTR_ERR(info->elm_base);
  354. ret = devm_request_irq(&pdev->dev, irq->start, elm_isr, 0,
  355. pdev->name, info);
  356. if (ret) {
  357. dev_err(&pdev->dev, "failure requesting irq %i\n", irq->start);
  358. return ret;
  359. }
  360. pm_runtime_enable(&pdev->dev);
  361. if (pm_runtime_get_sync(&pdev->dev) < 0) {
  362. ret = -EINVAL;
  363. pm_runtime_disable(&pdev->dev);
  364. dev_err(&pdev->dev, "can't enable clock\n");
  365. return ret;
  366. }
  367. init_completion(&info->elm_completion);
  368. INIT_LIST_HEAD(&info->list);
  369. list_add(&info->list, &elm_devices);
  370. platform_set_drvdata(pdev, info);
  371. return ret;
  372. }
  373. static int elm_remove(struct platform_device *pdev)
  374. {
  375. pm_runtime_put_sync(&pdev->dev);
  376. pm_runtime_disable(&pdev->dev);
  377. return 0;
  378. }
  379. #ifdef CONFIG_PM_SLEEP
  380. /**
  381. * elm_context_save
  382. * saves ELM configurations to preserve them across Hardware powered-down
  383. */
  384. static int elm_context_save(struct elm_info *info)
  385. {
  386. struct elm_registers *regs = &info->elm_regs;
  387. enum bch_ecc bch_type = info->bch_type;
  388. u32 offset = 0, i;
  389. regs->elm_irqenable = elm_read_reg(info, ELM_IRQENABLE);
  390. regs->elm_sysconfig = elm_read_reg(info, ELM_SYSCONFIG);
  391. regs->elm_location_config = elm_read_reg(info, ELM_LOCATION_CONFIG);
  392. regs->elm_page_ctrl = elm_read_reg(info, ELM_PAGE_CTRL);
  393. for (i = 0; i < ERROR_VECTOR_MAX; i++) {
  394. offset = i * SYNDROME_FRAGMENT_REG_SIZE;
  395. switch (bch_type) {
  396. case BCH16_ECC:
  397. regs->elm_syndrome_fragment_6[i] = elm_read_reg(info,
  398. ELM_SYNDROME_FRAGMENT_6 + offset);
  399. regs->elm_syndrome_fragment_5[i] = elm_read_reg(info,
  400. ELM_SYNDROME_FRAGMENT_5 + offset);
  401. regs->elm_syndrome_fragment_4[i] = elm_read_reg(info,
  402. ELM_SYNDROME_FRAGMENT_4 + offset);
  403. case BCH8_ECC:
  404. regs->elm_syndrome_fragment_3[i] = elm_read_reg(info,
  405. ELM_SYNDROME_FRAGMENT_3 + offset);
  406. regs->elm_syndrome_fragment_2[i] = elm_read_reg(info,
  407. ELM_SYNDROME_FRAGMENT_2 + offset);
  408. case BCH4_ECC:
  409. regs->elm_syndrome_fragment_1[i] = elm_read_reg(info,
  410. ELM_SYNDROME_FRAGMENT_1 + offset);
  411. regs->elm_syndrome_fragment_0[i] = elm_read_reg(info,
  412. ELM_SYNDROME_FRAGMENT_0 + offset);
  413. break;
  414. default:
  415. return -EINVAL;
  416. }
  417. /* ELM SYNDROME_VALID bit in SYNDROME_FRAGMENT_6[] needs
  418. * to be saved for all BCH schemes*/
  419. regs->elm_syndrome_fragment_6[i] = elm_read_reg(info,
  420. ELM_SYNDROME_FRAGMENT_6 + offset);
  421. }
  422. return 0;
  423. }
  424. /**
  425. * elm_context_restore
  426. * writes configurations saved duing power-down back into ELM registers
  427. */
  428. static int elm_context_restore(struct elm_info *info)
  429. {
  430. struct elm_registers *regs = &info->elm_regs;
  431. enum bch_ecc bch_type = info->bch_type;
  432. u32 offset = 0, i;
  433. elm_write_reg(info, ELM_IRQENABLE, regs->elm_irqenable);
  434. elm_write_reg(info, ELM_SYSCONFIG, regs->elm_sysconfig);
  435. elm_write_reg(info, ELM_LOCATION_CONFIG, regs->elm_location_config);
  436. elm_write_reg(info, ELM_PAGE_CTRL, regs->elm_page_ctrl);
  437. for (i = 0; i < ERROR_VECTOR_MAX; i++) {
  438. offset = i * SYNDROME_FRAGMENT_REG_SIZE;
  439. switch (bch_type) {
  440. case BCH16_ECC:
  441. elm_write_reg(info, ELM_SYNDROME_FRAGMENT_6 + offset,
  442. regs->elm_syndrome_fragment_6[i]);
  443. elm_write_reg(info, ELM_SYNDROME_FRAGMENT_5 + offset,
  444. regs->elm_syndrome_fragment_5[i]);
  445. elm_write_reg(info, ELM_SYNDROME_FRAGMENT_4 + offset,
  446. regs->elm_syndrome_fragment_4[i]);
  447. case BCH8_ECC:
  448. elm_write_reg(info, ELM_SYNDROME_FRAGMENT_3 + offset,
  449. regs->elm_syndrome_fragment_3[i]);
  450. elm_write_reg(info, ELM_SYNDROME_FRAGMENT_2 + offset,
  451. regs->elm_syndrome_fragment_2[i]);
  452. case BCH4_ECC:
  453. elm_write_reg(info, ELM_SYNDROME_FRAGMENT_1 + offset,
  454. regs->elm_syndrome_fragment_1[i]);
  455. elm_write_reg(info, ELM_SYNDROME_FRAGMENT_0 + offset,
  456. regs->elm_syndrome_fragment_0[i]);
  457. break;
  458. default:
  459. return -EINVAL;
  460. }
  461. /* ELM_SYNDROME_VALID bit to be set in last to trigger FSM */
  462. elm_write_reg(info, ELM_SYNDROME_FRAGMENT_6 + offset,
  463. regs->elm_syndrome_fragment_6[i] &
  464. ELM_SYNDROME_VALID);
  465. }
  466. return 0;
  467. }
  468. static int elm_suspend(struct device *dev)
  469. {
  470. struct elm_info *info = dev_get_drvdata(dev);
  471. elm_context_save(info);
  472. pm_runtime_put_sync(dev);
  473. return 0;
  474. }
  475. static int elm_resume(struct device *dev)
  476. {
  477. struct elm_info *info = dev_get_drvdata(dev);
  478. pm_runtime_get_sync(dev);
  479. elm_context_restore(info);
  480. return 0;
  481. }
  482. #endif
  483. static SIMPLE_DEV_PM_OPS(elm_pm_ops, elm_suspend, elm_resume);
  484. #ifdef CONFIG_OF
  485. static const struct of_device_id elm_of_match[] = {
  486. { .compatible = "ti,am3352-elm" },
  487. {},
  488. };
  489. MODULE_DEVICE_TABLE(of, elm_of_match);
  490. #endif
  491. static struct platform_driver elm_driver = {
  492. .driver = {
  493. .name = DRIVER_NAME,
  494. .of_match_table = of_match_ptr(elm_of_match),
  495. .pm = &elm_pm_ops,
  496. },
  497. .probe = elm_probe,
  498. .remove = elm_remove,
  499. };
  500. module_platform_driver(elm_driver);
  501. MODULE_DESCRIPTION("ELM driver for BCH error correction");
  502. MODULE_AUTHOR("Texas Instruments");
  503. MODULE_ALIAS("platform:" DRIVER_NAME);
  504. MODULE_LICENSE("GPL v2");