uartlite.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  1. /*
  2. * uartlite.c: Serial driver for Xilinx uartlite serial controller
  3. *
  4. * Copyright (C) 2006 Peter Korsgaard <jacmet@sunsite.dk>
  5. * Copyright (C) 2007 Secret Lab Technologies Ltd.
  6. *
  7. * This file is licensed under the terms of the GNU General Public License
  8. * version 2. This program is licensed "as is" without any warranty of any
  9. * kind, whether express or implied.
  10. */
  11. #include <linux/platform_device.h>
  12. #include <linux/module.h>
  13. #include <linux/console.h>
  14. #include <linux/serial.h>
  15. #include <linux/serial_core.h>
  16. #include <linux/tty.h>
  17. #include <linux/delay.h>
  18. #include <linux/interrupt.h>
  19. #include <linux/init.h>
  20. #include <asm/io.h>
  21. #if defined(CONFIG_OF) && (defined(CONFIG_PPC32) || defined(CONFIG_MICROBLAZE))
  22. #include <linux/of.h>
  23. #include <linux/of_address.h>
  24. #include <linux/of_device.h>
  25. #include <linux/of_platform.h>
  26. /* Match table for of_platform binding */
  27. static struct of_device_id ulite_of_match[] __devinitdata = {
  28. { .compatible = "xlnx,opb-uartlite-1.00.b", },
  29. { .compatible = "xlnx,xps-uartlite-1.00.a", },
  30. {}
  31. };
  32. MODULE_DEVICE_TABLE(of, ulite_of_match);
  33. #endif
  34. #define ULITE_NAME "ttyUL"
  35. #define ULITE_MAJOR 204
  36. #define ULITE_MINOR 187
  37. #define ULITE_NR_UARTS 4
  38. /* ---------------------------------------------------------------------
  39. * Register definitions
  40. *
  41. * For register details see datasheet:
  42. * http://www.xilinx.com/bvdocs/ipcenter/data_sheet/opb_uartlite.pdf
  43. */
  44. #define ULITE_RX 0x00
  45. #define ULITE_TX 0x04
  46. #define ULITE_STATUS 0x08
  47. #define ULITE_CONTROL 0x0c
  48. #define ULITE_REGION 16
  49. #define ULITE_STATUS_RXVALID 0x01
  50. #define ULITE_STATUS_RXFULL 0x02
  51. #define ULITE_STATUS_TXEMPTY 0x04
  52. #define ULITE_STATUS_TXFULL 0x08
  53. #define ULITE_STATUS_IE 0x10
  54. #define ULITE_STATUS_OVERRUN 0x20
  55. #define ULITE_STATUS_FRAME 0x40
  56. #define ULITE_STATUS_PARITY 0x80
  57. #define ULITE_CONTROL_RST_TX 0x01
  58. #define ULITE_CONTROL_RST_RX 0x02
  59. #define ULITE_CONTROL_IE 0x10
  60. static struct uart_port ulite_ports[ULITE_NR_UARTS];
  61. /* ---------------------------------------------------------------------
  62. * Core UART driver operations
  63. */
  64. static int ulite_receive(struct uart_port *port, int stat)
  65. {
  66. struct tty_struct *tty = port->state->port.tty;
  67. unsigned char ch = 0;
  68. char flag = TTY_NORMAL;
  69. if ((stat & (ULITE_STATUS_RXVALID | ULITE_STATUS_OVERRUN
  70. | ULITE_STATUS_FRAME)) == 0)
  71. return 0;
  72. /* stats */
  73. if (stat & ULITE_STATUS_RXVALID) {
  74. port->icount.rx++;
  75. ch = ioread32be(port->membase + ULITE_RX);
  76. if (stat & ULITE_STATUS_PARITY)
  77. port->icount.parity++;
  78. }
  79. if (stat & ULITE_STATUS_OVERRUN)
  80. port->icount.overrun++;
  81. if (stat & ULITE_STATUS_FRAME)
  82. port->icount.frame++;
  83. /* drop byte with parity error if IGNPAR specificed */
  84. if (stat & port->ignore_status_mask & ULITE_STATUS_PARITY)
  85. stat &= ~ULITE_STATUS_RXVALID;
  86. stat &= port->read_status_mask;
  87. if (stat & ULITE_STATUS_PARITY)
  88. flag = TTY_PARITY;
  89. stat &= ~port->ignore_status_mask;
  90. if (stat & ULITE_STATUS_RXVALID)
  91. tty_insert_flip_char(tty, ch, flag);
  92. if (stat & ULITE_STATUS_FRAME)
  93. tty_insert_flip_char(tty, 0, TTY_FRAME);
  94. if (stat & ULITE_STATUS_OVERRUN)
  95. tty_insert_flip_char(tty, 0, TTY_OVERRUN);
  96. return 1;
  97. }
  98. static int ulite_transmit(struct uart_port *port, int stat)
  99. {
  100. struct circ_buf *xmit = &port->state->xmit;
  101. if (stat & ULITE_STATUS_TXFULL)
  102. return 0;
  103. if (port->x_char) {
  104. iowrite32be(port->x_char, port->membase + ULITE_TX);
  105. port->x_char = 0;
  106. port->icount.tx++;
  107. return 1;
  108. }
  109. if (uart_circ_empty(xmit) || uart_tx_stopped(port))
  110. return 0;
  111. iowrite32be(xmit->buf[xmit->tail], port->membase + ULITE_TX);
  112. xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE-1);
  113. port->icount.tx++;
  114. /* wake up */
  115. if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
  116. uart_write_wakeup(port);
  117. return 1;
  118. }
  119. static irqreturn_t ulite_isr(int irq, void *dev_id)
  120. {
  121. struct uart_port *port = dev_id;
  122. int busy, n = 0;
  123. do {
  124. int stat = ioread32be(port->membase + ULITE_STATUS);
  125. busy = ulite_receive(port, stat);
  126. busy |= ulite_transmit(port, stat);
  127. n++;
  128. } while (busy);
  129. /* work done? */
  130. if (n > 1) {
  131. tty_flip_buffer_push(port->state->port.tty);
  132. return IRQ_HANDLED;
  133. } else {
  134. return IRQ_NONE;
  135. }
  136. }
  137. static unsigned int ulite_tx_empty(struct uart_port *port)
  138. {
  139. unsigned long flags;
  140. unsigned int ret;
  141. spin_lock_irqsave(&port->lock, flags);
  142. ret = ioread32be(port->membase + ULITE_STATUS);
  143. spin_unlock_irqrestore(&port->lock, flags);
  144. return ret & ULITE_STATUS_TXEMPTY ? TIOCSER_TEMT : 0;
  145. }
  146. static unsigned int ulite_get_mctrl(struct uart_port *port)
  147. {
  148. return TIOCM_CTS | TIOCM_DSR | TIOCM_CAR;
  149. }
  150. static void ulite_set_mctrl(struct uart_port *port, unsigned int mctrl)
  151. {
  152. /* N/A */
  153. }
  154. static void ulite_stop_tx(struct uart_port *port)
  155. {
  156. /* N/A */
  157. }
  158. static void ulite_start_tx(struct uart_port *port)
  159. {
  160. ulite_transmit(port, ioread32be(port->membase + ULITE_STATUS));
  161. }
  162. static void ulite_stop_rx(struct uart_port *port)
  163. {
  164. /* don't forward any more data (like !CREAD) */
  165. port->ignore_status_mask = ULITE_STATUS_RXVALID | ULITE_STATUS_PARITY
  166. | ULITE_STATUS_FRAME | ULITE_STATUS_OVERRUN;
  167. }
  168. static void ulite_enable_ms(struct uart_port *port)
  169. {
  170. /* N/A */
  171. }
  172. static void ulite_break_ctl(struct uart_port *port, int ctl)
  173. {
  174. /* N/A */
  175. }
  176. static int ulite_startup(struct uart_port *port)
  177. {
  178. int ret;
  179. ret = request_irq(port->irq, ulite_isr,
  180. IRQF_SHARED | IRQF_SAMPLE_RANDOM, "uartlite", port);
  181. if (ret)
  182. return ret;
  183. iowrite32be(ULITE_CONTROL_RST_RX | ULITE_CONTROL_RST_TX,
  184. port->membase + ULITE_CONTROL);
  185. iowrite32be(ULITE_CONTROL_IE, port->membase + ULITE_CONTROL);
  186. return 0;
  187. }
  188. static void ulite_shutdown(struct uart_port *port)
  189. {
  190. iowrite32be(0, port->membase + ULITE_CONTROL);
  191. ioread32be(port->membase + ULITE_CONTROL); /* dummy */
  192. free_irq(port->irq, port);
  193. }
  194. static void ulite_set_termios(struct uart_port *port, struct ktermios *termios,
  195. struct ktermios *old)
  196. {
  197. unsigned long flags;
  198. unsigned int baud;
  199. spin_lock_irqsave(&port->lock, flags);
  200. port->read_status_mask = ULITE_STATUS_RXVALID | ULITE_STATUS_OVERRUN
  201. | ULITE_STATUS_TXFULL;
  202. if (termios->c_iflag & INPCK)
  203. port->read_status_mask |=
  204. ULITE_STATUS_PARITY | ULITE_STATUS_FRAME;
  205. port->ignore_status_mask = 0;
  206. if (termios->c_iflag & IGNPAR)
  207. port->ignore_status_mask |= ULITE_STATUS_PARITY
  208. | ULITE_STATUS_FRAME | ULITE_STATUS_OVERRUN;
  209. /* ignore all characters if CREAD is not set */
  210. if ((termios->c_cflag & CREAD) == 0)
  211. port->ignore_status_mask |=
  212. ULITE_STATUS_RXVALID | ULITE_STATUS_PARITY
  213. | ULITE_STATUS_FRAME | ULITE_STATUS_OVERRUN;
  214. /* update timeout */
  215. baud = uart_get_baud_rate(port, termios, old, 0, 460800);
  216. uart_update_timeout(port, termios->c_cflag, baud);
  217. spin_unlock_irqrestore(&port->lock, flags);
  218. }
  219. static const char *ulite_type(struct uart_port *port)
  220. {
  221. return port->type == PORT_UARTLITE ? "uartlite" : NULL;
  222. }
  223. static void ulite_release_port(struct uart_port *port)
  224. {
  225. release_mem_region(port->mapbase, ULITE_REGION);
  226. iounmap(port->membase);
  227. port->membase = NULL;
  228. }
  229. static int ulite_request_port(struct uart_port *port)
  230. {
  231. pr_debug("ulite console: port=%p; port->mapbase=%llx\n",
  232. port, (unsigned long long) port->mapbase);
  233. if (!request_mem_region(port->mapbase, ULITE_REGION, "uartlite")) {
  234. dev_err(port->dev, "Memory region busy\n");
  235. return -EBUSY;
  236. }
  237. port->membase = ioremap(port->mapbase, ULITE_REGION);
  238. if (!port->membase) {
  239. dev_err(port->dev, "Unable to map registers\n");
  240. release_mem_region(port->mapbase, ULITE_REGION);
  241. return -EBUSY;
  242. }
  243. return 0;
  244. }
  245. static void ulite_config_port(struct uart_port *port, int flags)
  246. {
  247. if (!ulite_request_port(port))
  248. port->type = PORT_UARTLITE;
  249. }
  250. static int ulite_verify_port(struct uart_port *port, struct serial_struct *ser)
  251. {
  252. /* we don't want the core code to modify any port params */
  253. return -EINVAL;
  254. }
  255. static struct uart_ops ulite_ops = {
  256. .tx_empty = ulite_tx_empty,
  257. .set_mctrl = ulite_set_mctrl,
  258. .get_mctrl = ulite_get_mctrl,
  259. .stop_tx = ulite_stop_tx,
  260. .start_tx = ulite_start_tx,
  261. .stop_rx = ulite_stop_rx,
  262. .enable_ms = ulite_enable_ms,
  263. .break_ctl = ulite_break_ctl,
  264. .startup = ulite_startup,
  265. .shutdown = ulite_shutdown,
  266. .set_termios = ulite_set_termios,
  267. .type = ulite_type,
  268. .release_port = ulite_release_port,
  269. .request_port = ulite_request_port,
  270. .config_port = ulite_config_port,
  271. .verify_port = ulite_verify_port
  272. };
  273. /* ---------------------------------------------------------------------
  274. * Console driver operations
  275. */
  276. #ifdef CONFIG_SERIAL_UARTLITE_CONSOLE
  277. static void ulite_console_wait_tx(struct uart_port *port)
  278. {
  279. int i;
  280. u8 val;
  281. /* Spin waiting for TX fifo to have space available */
  282. for (i = 0; i < 100000; i++) {
  283. val = ioread32be(port->membase + ULITE_STATUS);
  284. if ((val & ULITE_STATUS_TXFULL) == 0)
  285. break;
  286. cpu_relax();
  287. }
  288. }
  289. static void ulite_console_putchar(struct uart_port *port, int ch)
  290. {
  291. ulite_console_wait_tx(port);
  292. iowrite32be(ch, port->membase + ULITE_TX);
  293. }
  294. static void ulite_console_write(struct console *co, const char *s,
  295. unsigned int count)
  296. {
  297. struct uart_port *port = &ulite_ports[co->index];
  298. unsigned long flags;
  299. unsigned int ier;
  300. int locked = 1;
  301. if (oops_in_progress) {
  302. locked = spin_trylock_irqsave(&port->lock, flags);
  303. } else
  304. spin_lock_irqsave(&port->lock, flags);
  305. /* save and disable interrupt */
  306. ier = ioread32be(port->membase + ULITE_STATUS) & ULITE_STATUS_IE;
  307. iowrite32be(0, port->membase + ULITE_CONTROL);
  308. uart_console_write(port, s, count, ulite_console_putchar);
  309. ulite_console_wait_tx(port);
  310. /* restore interrupt state */
  311. if (ier)
  312. iowrite32be(ULITE_CONTROL_IE, port->membase + ULITE_CONTROL);
  313. if (locked)
  314. spin_unlock_irqrestore(&port->lock, flags);
  315. }
  316. static int __devinit ulite_console_setup(struct console *co, char *options)
  317. {
  318. struct uart_port *port;
  319. int baud = 9600;
  320. int bits = 8;
  321. int parity = 'n';
  322. int flow = 'n';
  323. if (co->index < 0 || co->index >= ULITE_NR_UARTS)
  324. return -EINVAL;
  325. port = &ulite_ports[co->index];
  326. /* Has the device been initialized yet? */
  327. if (!port->mapbase) {
  328. pr_debug("console on ttyUL%i not present\n", co->index);
  329. return -ENODEV;
  330. }
  331. /* not initialized yet? */
  332. if (!port->membase) {
  333. if (ulite_request_port(port))
  334. return -ENODEV;
  335. }
  336. if (options)
  337. uart_parse_options(options, &baud, &parity, &bits, &flow);
  338. return uart_set_options(port, co, baud, parity, bits, flow);
  339. }
  340. static struct uart_driver ulite_uart_driver;
  341. static struct console ulite_console = {
  342. .name = ULITE_NAME,
  343. .write = ulite_console_write,
  344. .device = uart_console_device,
  345. .setup = ulite_console_setup,
  346. .flags = CON_PRINTBUFFER,
  347. .index = -1, /* Specified on the cmdline (e.g. console=ttyUL0 ) */
  348. .data = &ulite_uart_driver,
  349. };
  350. static int __init ulite_console_init(void)
  351. {
  352. register_console(&ulite_console);
  353. return 0;
  354. }
  355. console_initcall(ulite_console_init);
  356. #endif /* CONFIG_SERIAL_UARTLITE_CONSOLE */
  357. static struct uart_driver ulite_uart_driver = {
  358. .owner = THIS_MODULE,
  359. .driver_name = "uartlite",
  360. .dev_name = ULITE_NAME,
  361. .major = ULITE_MAJOR,
  362. .minor = ULITE_MINOR,
  363. .nr = ULITE_NR_UARTS,
  364. #ifdef CONFIG_SERIAL_UARTLITE_CONSOLE
  365. .cons = &ulite_console,
  366. #endif
  367. };
  368. /* ---------------------------------------------------------------------
  369. * Port assignment functions (mapping devices to uart_port structures)
  370. */
  371. /** ulite_assign: register a uartlite device with the driver
  372. *
  373. * @dev: pointer to device structure
  374. * @id: requested id number. Pass -1 for automatic port assignment
  375. * @base: base address of uartlite registers
  376. * @irq: irq number for uartlite
  377. *
  378. * Returns: 0 on success, <0 otherwise
  379. */
  380. static int __devinit ulite_assign(struct device *dev, int id, u32 base, int irq)
  381. {
  382. struct uart_port *port;
  383. int rc;
  384. /* if id = -1; then scan for a free id and use that */
  385. if (id < 0) {
  386. for (id = 0; id < ULITE_NR_UARTS; id++)
  387. if (ulite_ports[id].mapbase == 0)
  388. break;
  389. }
  390. if (id < 0 || id >= ULITE_NR_UARTS) {
  391. dev_err(dev, "%s%i too large\n", ULITE_NAME, id);
  392. return -EINVAL;
  393. }
  394. if ((ulite_ports[id].mapbase) && (ulite_ports[id].mapbase != base)) {
  395. dev_err(dev, "cannot assign to %s%i; it is already in use\n",
  396. ULITE_NAME, id);
  397. return -EBUSY;
  398. }
  399. port = &ulite_ports[id];
  400. spin_lock_init(&port->lock);
  401. port->fifosize = 16;
  402. port->regshift = 2;
  403. port->iotype = UPIO_MEM;
  404. port->iobase = 1; /* mark port in use */
  405. port->mapbase = base;
  406. port->membase = NULL;
  407. port->ops = &ulite_ops;
  408. port->irq = irq;
  409. port->flags = UPF_BOOT_AUTOCONF;
  410. port->dev = dev;
  411. port->type = PORT_UNKNOWN;
  412. port->line = id;
  413. dev_set_drvdata(dev, port);
  414. /* Register the port */
  415. rc = uart_add_one_port(&ulite_uart_driver, port);
  416. if (rc) {
  417. dev_err(dev, "uart_add_one_port() failed; err=%i\n", rc);
  418. port->mapbase = 0;
  419. dev_set_drvdata(dev, NULL);
  420. return rc;
  421. }
  422. return 0;
  423. }
  424. /** ulite_release: register a uartlite device with the driver
  425. *
  426. * @dev: pointer to device structure
  427. */
  428. static int __devexit ulite_release(struct device *dev)
  429. {
  430. struct uart_port *port = dev_get_drvdata(dev);
  431. int rc = 0;
  432. if (port) {
  433. rc = uart_remove_one_port(&ulite_uart_driver, port);
  434. dev_set_drvdata(dev, NULL);
  435. port->mapbase = 0;
  436. }
  437. return rc;
  438. }
  439. /* ---------------------------------------------------------------------
  440. * Platform bus binding
  441. */
  442. static int __devinit ulite_probe(struct platform_device *pdev)
  443. {
  444. struct resource *res, *res2;
  445. res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
  446. if (!res)
  447. return -ENODEV;
  448. res2 = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
  449. if (!res2)
  450. return -ENODEV;
  451. return ulite_assign(&pdev->dev, pdev->id, res->start, res2->start);
  452. }
  453. static int __devexit ulite_remove(struct platform_device *pdev)
  454. {
  455. return ulite_release(&pdev->dev);
  456. }
  457. /* work with hotplug and coldplug */
  458. MODULE_ALIAS("platform:uartlite");
  459. static struct platform_driver ulite_platform_driver = {
  460. .probe = ulite_probe,
  461. .remove = __devexit_p(ulite_remove),
  462. .driver = {
  463. .owner = THIS_MODULE,
  464. .name = "uartlite",
  465. },
  466. };
  467. /* ---------------------------------------------------------------------
  468. * OF bus bindings
  469. */
  470. #if defined(CONFIG_OF) && (defined(CONFIG_PPC32) || defined(CONFIG_MICROBLAZE))
  471. static int __devinit
  472. ulite_of_probe(struct platform_device *op, const struct of_device_id *match)
  473. {
  474. struct resource res;
  475. const unsigned int *id;
  476. int irq, rc;
  477. dev_dbg(&op->dev, "%s(%p, %p)\n", __func__, op, match);
  478. rc = of_address_to_resource(op->dev.of_node, 0, &res);
  479. if (rc) {
  480. dev_err(&op->dev, "invalid address\n");
  481. return rc;
  482. }
  483. irq = irq_of_parse_and_map(op->dev.of_node, 0);
  484. id = of_get_property(op->dev.of_node, "port-number", NULL);
  485. return ulite_assign(&op->dev, id ? *id : -1, res.start, irq);
  486. }
  487. static int __devexit ulite_of_remove(struct platform_device *op)
  488. {
  489. return ulite_release(&op->dev);
  490. }
  491. static struct of_platform_driver ulite_of_driver = {
  492. .probe = ulite_of_probe,
  493. .remove = __devexit_p(ulite_of_remove),
  494. .driver = {
  495. .name = "uartlite",
  496. .owner = THIS_MODULE,
  497. .of_match_table = ulite_of_match,
  498. },
  499. };
  500. /* Registration helpers to keep the number of #ifdefs to a minimum */
  501. static inline int __init ulite_of_register(void)
  502. {
  503. pr_debug("uartlite: calling of_register_platform_driver()\n");
  504. return of_register_platform_driver(&ulite_of_driver);
  505. }
  506. static inline void __exit ulite_of_unregister(void)
  507. {
  508. of_unregister_platform_driver(&ulite_of_driver);
  509. }
  510. #else /* CONFIG_OF && (CONFIG_PPC32 || CONFIG_MICROBLAZE) */
  511. /* Appropriate config not enabled; do nothing helpers */
  512. static inline int __init ulite_of_register(void) { return 0; }
  513. static inline void __exit ulite_of_unregister(void) { }
  514. #endif /* CONFIG_OF && (CONFIG_PPC32 || CONFIG_MICROBLAZE) */
  515. /* ---------------------------------------------------------------------
  516. * Module setup/teardown
  517. */
  518. int __init ulite_init(void)
  519. {
  520. int ret;
  521. pr_debug("uartlite: calling uart_register_driver()\n");
  522. ret = uart_register_driver(&ulite_uart_driver);
  523. if (ret)
  524. goto err_uart;
  525. ret = ulite_of_register();
  526. if (ret)
  527. goto err_of;
  528. pr_debug("uartlite: calling platform_driver_register()\n");
  529. ret = platform_driver_register(&ulite_platform_driver);
  530. if (ret)
  531. goto err_plat;
  532. return 0;
  533. err_plat:
  534. ulite_of_unregister();
  535. err_of:
  536. uart_unregister_driver(&ulite_uart_driver);
  537. err_uart:
  538. printk(KERN_ERR "registering uartlite driver failed: err=%i", ret);
  539. return ret;
  540. }
  541. void __exit ulite_exit(void)
  542. {
  543. platform_driver_unregister(&ulite_platform_driver);
  544. ulite_of_unregister();
  545. uart_unregister_driver(&ulite_uart_driver);
  546. }
  547. module_init(ulite_init);
  548. module_exit(ulite_exit);
  549. MODULE_AUTHOR("Peter Korsgaard <jacmet@sunsite.dk>");
  550. MODULE_DESCRIPTION("Xilinx uartlite serial driver");
  551. MODULE_LICENSE("GPL");