mcf.c 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  1. /****************************************************************************/
  2. /*
  3. * mcf.c -- Freescale ColdFire UART driver
  4. *
  5. * (C) Copyright 2003-2007, Greg Ungerer <gerg@snapgear.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. */
  12. /****************************************************************************/
  13. #include <linux/kernel.h>
  14. #include <linux/init.h>
  15. #include <linux/interrupt.h>
  16. #include <linux/module.h>
  17. #include <linux/console.h>
  18. #include <linux/tty.h>
  19. #include <linux/tty_flip.h>
  20. #include <linux/serial.h>
  21. #include <linux/serial_core.h>
  22. #include <linux/io.h>
  23. #include <asm/coldfire.h>
  24. #include <asm/mcfsim.h>
  25. #include <asm/mcfuart.h>
  26. #include <asm/nettel.h>
  27. /****************************************************************************/
  28. /*
  29. * Some boards implement the DTR/DCD lines using GPIO lines, most
  30. * don't. Dummy out the access macros for those that don't. Those
  31. * that do should define these macros somewhere in there board
  32. * specific inlude files.
  33. */
  34. #if !defined(mcf_getppdcd)
  35. #define mcf_getppdcd(p) (1)
  36. #endif
  37. #if !defined(mcf_getppdtr)
  38. #define mcf_getppdtr(p) (1)
  39. #endif
  40. #if !defined(mcf_setppdtr)
  41. #define mcf_setppdtr(p, v) do { } while (0)
  42. #endif
  43. /****************************************************************************/
  44. /*
  45. * Local per-uart structure.
  46. */
  47. struct mcf_uart {
  48. struct uart_port port;
  49. unsigned int sigs; /* Local copy of line sigs */
  50. unsigned char imr; /* Local IMR mirror */
  51. };
  52. /****************************************************************************/
  53. static unsigned int mcf_tx_empty(struct uart_port *port)
  54. {
  55. return (readb(port->membase + MCFUART_USR) & MCFUART_USR_TXEMPTY) ?
  56. TIOCSER_TEMT : 0;
  57. }
  58. /****************************************************************************/
  59. static unsigned int mcf_get_mctrl(struct uart_port *port)
  60. {
  61. struct mcf_uart *pp = container_of(port, struct mcf_uart, port);
  62. unsigned long flags;
  63. unsigned int sigs;
  64. spin_lock_irqsave(&port->lock, flags);
  65. sigs = (readb(port->membase + MCFUART_UIPR) & MCFUART_UIPR_CTS) ?
  66. 0 : TIOCM_CTS;
  67. sigs |= (pp->sigs & TIOCM_RTS);
  68. sigs |= (mcf_getppdcd(port->line) ? TIOCM_CD : 0);
  69. sigs |= (mcf_getppdtr(port->line) ? TIOCM_DTR : 0);
  70. spin_unlock_irqrestore(&port->lock, flags);
  71. return sigs;
  72. }
  73. /****************************************************************************/
  74. static void mcf_set_mctrl(struct uart_port *port, unsigned int sigs)
  75. {
  76. struct mcf_uart *pp = container_of(port, struct mcf_uart, port);
  77. unsigned long flags;
  78. spin_lock_irqsave(&port->lock, flags);
  79. pp->sigs = sigs;
  80. mcf_setppdtr(port->line, (sigs & TIOCM_DTR));
  81. if (sigs & TIOCM_RTS)
  82. writeb(MCFUART_UOP_RTS, port->membase + MCFUART_UOP1);
  83. else
  84. writeb(MCFUART_UOP_RTS, port->membase + MCFUART_UOP0);
  85. spin_unlock_irqrestore(&port->lock, flags);
  86. }
  87. /****************************************************************************/
  88. static void mcf_start_tx(struct uart_port *port)
  89. {
  90. struct mcf_uart *pp = container_of(port, struct mcf_uart, port);
  91. unsigned long flags;
  92. spin_lock_irqsave(&port->lock, flags);
  93. pp->imr |= MCFUART_UIR_TXREADY;
  94. writeb(pp->imr, port->membase + MCFUART_UIMR);
  95. spin_unlock_irqrestore(&port->lock, flags);
  96. }
  97. /****************************************************************************/
  98. static void mcf_stop_tx(struct uart_port *port)
  99. {
  100. struct mcf_uart *pp = container_of(port, struct mcf_uart, port);
  101. unsigned long flags;
  102. spin_lock_irqsave(&port->lock, flags);
  103. pp->imr &= ~MCFUART_UIR_TXREADY;
  104. writeb(pp->imr, port->membase + MCFUART_UIMR);
  105. spin_unlock_irqrestore(&port->lock, flags);
  106. }
  107. /****************************************************************************/
  108. static void mcf_stop_rx(struct uart_port *port)
  109. {
  110. struct mcf_uart *pp = container_of(port, struct mcf_uart, port);
  111. unsigned long flags;
  112. spin_lock_irqsave(&port->lock, flags);
  113. pp->imr &= ~MCFUART_UIR_RXREADY;
  114. writeb(pp->imr, port->membase + MCFUART_UIMR);
  115. spin_unlock_irqrestore(&port->lock, flags);
  116. }
  117. /****************************************************************************/
  118. static void mcf_break_ctl(struct uart_port *port, int break_state)
  119. {
  120. unsigned long flags;
  121. spin_lock_irqsave(&port->lock, flags);
  122. if (break_state == -1)
  123. writeb(MCFUART_UCR_CMDBREAKSTART, port->membase + MCFUART_UCR);
  124. else
  125. writeb(MCFUART_UCR_CMDBREAKSTOP, port->membase + MCFUART_UCR);
  126. spin_unlock_irqrestore(&port->lock, flags);
  127. }
  128. /****************************************************************************/
  129. static void mcf_enable_ms(struct uart_port *port)
  130. {
  131. }
  132. /****************************************************************************/
  133. static int mcf_startup(struct uart_port *port)
  134. {
  135. struct mcf_uart *pp = container_of(port, struct mcf_uart, port);
  136. unsigned long flags;
  137. spin_lock_irqsave(&port->lock, flags);
  138. /* Reset UART, get it into known state... */
  139. writeb(MCFUART_UCR_CMDRESETRX, port->membase + MCFUART_UCR);
  140. writeb(MCFUART_UCR_CMDRESETTX, port->membase + MCFUART_UCR);
  141. /* Enable the UART transmitter and receiver */
  142. writeb(MCFUART_UCR_RXENABLE | MCFUART_UCR_TXENABLE,
  143. port->membase + MCFUART_UCR);
  144. /* Enable RX interrupts now */
  145. pp->imr = MCFUART_UIR_RXREADY;
  146. writeb(pp->imr, port->membase + MCFUART_UIMR);
  147. spin_unlock_irqrestore(&port->lock, flags);
  148. return 0;
  149. }
  150. /****************************************************************************/
  151. static void mcf_shutdown(struct uart_port *port)
  152. {
  153. struct mcf_uart *pp = container_of(port, struct mcf_uart, port);
  154. unsigned long flags;
  155. spin_lock_irqsave(&port->lock, flags);
  156. /* Disable all interrupts now */
  157. pp->imr = 0;
  158. writeb(pp->imr, port->membase + MCFUART_UIMR);
  159. /* Disable UART transmitter and receiver */
  160. writeb(MCFUART_UCR_CMDRESETRX, port->membase + MCFUART_UCR);
  161. writeb(MCFUART_UCR_CMDRESETTX, port->membase + MCFUART_UCR);
  162. spin_unlock_irqrestore(&port->lock, flags);
  163. }
  164. /****************************************************************************/
  165. static void mcf_set_termios(struct uart_port *port, struct ktermios *termios,
  166. struct ktermios *old)
  167. {
  168. unsigned long flags;
  169. unsigned int baud, baudclk;
  170. #if defined(CONFIG_M5272)
  171. unsigned int baudfr;
  172. #endif
  173. unsigned char mr1, mr2;
  174. baud = uart_get_baud_rate(port, termios, old, 0, 230400);
  175. #if defined(CONFIG_M5272)
  176. baudclk = (MCF_BUSCLK / baud) / 32;
  177. baudfr = (((MCF_BUSCLK / baud) + 1) / 2) % 16;
  178. #else
  179. baudclk = ((MCF_BUSCLK / baud) + 16) / 32;
  180. #endif
  181. mr1 = MCFUART_MR1_RXIRQRDY | MCFUART_MR1_RXERRCHAR;
  182. mr2 = 0;
  183. switch (termios->c_cflag & CSIZE) {
  184. case CS5: mr1 |= MCFUART_MR1_CS5; break;
  185. case CS6: mr1 |= MCFUART_MR1_CS6; break;
  186. case CS7: mr1 |= MCFUART_MR1_CS7; break;
  187. case CS8:
  188. default: mr1 |= MCFUART_MR1_CS8; break;
  189. }
  190. if (termios->c_cflag & PARENB) {
  191. if (termios->c_cflag & CMSPAR) {
  192. if (termios->c_cflag & PARODD)
  193. mr1 |= MCFUART_MR1_PARITYMARK;
  194. else
  195. mr1 |= MCFUART_MR1_PARITYSPACE;
  196. } else {
  197. if (termios->c_cflag & PARODD)
  198. mr1 |= MCFUART_MR1_PARITYODD;
  199. else
  200. mr1 |= MCFUART_MR1_PARITYEVEN;
  201. }
  202. } else {
  203. mr1 |= MCFUART_MR1_PARITYNONE;
  204. }
  205. if (termios->c_cflag & CSTOPB)
  206. mr2 |= MCFUART_MR2_STOP2;
  207. else
  208. mr2 |= MCFUART_MR2_STOP1;
  209. if (termios->c_cflag & CRTSCTS) {
  210. mr1 |= MCFUART_MR1_RXRTS;
  211. mr2 |= MCFUART_MR2_TXCTS;
  212. }
  213. spin_lock_irqsave(&port->lock, flags);
  214. writeb(MCFUART_UCR_CMDRESETRX, port->membase + MCFUART_UCR);
  215. writeb(MCFUART_UCR_CMDRESETTX, port->membase + MCFUART_UCR);
  216. writeb(MCFUART_UCR_CMDRESETMRPTR, port->membase + MCFUART_UCR);
  217. writeb(mr1, port->membase + MCFUART_UMR);
  218. writeb(mr2, port->membase + MCFUART_UMR);
  219. writeb((baudclk & 0xff00) >> 8, port->membase + MCFUART_UBG1);
  220. writeb((baudclk & 0xff), port->membase + MCFUART_UBG2);
  221. #if defined(CONFIG_M5272)
  222. writeb((baudfr & 0x0f), port->membase + MCFUART_UFPD);
  223. #endif
  224. writeb(MCFUART_UCSR_RXCLKTIMER | MCFUART_UCSR_TXCLKTIMER,
  225. port->membase + MCFUART_UCSR);
  226. writeb(MCFUART_UCR_RXENABLE | MCFUART_UCR_TXENABLE,
  227. port->membase + MCFUART_UCR);
  228. spin_unlock_irqrestore(&port->lock, flags);
  229. }
  230. /****************************************************************************/
  231. static void mcf_rx_chars(struct mcf_uart *pp)
  232. {
  233. struct uart_port *port = &pp->port;
  234. unsigned char status, ch, flag;
  235. while ((status = readb(port->membase + MCFUART_USR)) & MCFUART_USR_RXREADY) {
  236. ch = readb(port->membase + MCFUART_URB);
  237. flag = TTY_NORMAL;
  238. port->icount.rx++;
  239. if (status & MCFUART_USR_RXERR) {
  240. writeb(MCFUART_UCR_CMDRESETERR,
  241. port->membase + MCFUART_UCR);
  242. if (status & MCFUART_USR_RXBREAK) {
  243. port->icount.brk++;
  244. if (uart_handle_break(port))
  245. continue;
  246. } else if (status & MCFUART_USR_RXPARITY) {
  247. port->icount.parity++;
  248. } else if (status & MCFUART_USR_RXOVERRUN) {
  249. port->icount.overrun++;
  250. } else if (status & MCFUART_USR_RXFRAMING) {
  251. port->icount.frame++;
  252. }
  253. status &= port->read_status_mask;
  254. if (status & MCFUART_USR_RXBREAK)
  255. flag = TTY_BREAK;
  256. else if (status & MCFUART_USR_RXPARITY)
  257. flag = TTY_PARITY;
  258. else if (status & MCFUART_USR_RXFRAMING)
  259. flag = TTY_FRAME;
  260. }
  261. if (uart_handle_sysrq_char(port, ch))
  262. continue;
  263. uart_insert_char(port, status, MCFUART_USR_RXOVERRUN, ch, flag);
  264. }
  265. tty_flip_buffer_push(port->info->port.tty);
  266. }
  267. /****************************************************************************/
  268. static void mcf_tx_chars(struct mcf_uart *pp)
  269. {
  270. struct uart_port *port = &pp->port;
  271. struct circ_buf *xmit = &port->info->xmit;
  272. if (port->x_char) {
  273. /* Send special char - probably flow control */
  274. writeb(port->x_char, port->membase + MCFUART_UTB);
  275. port->x_char = 0;
  276. port->icount.tx++;
  277. return;
  278. }
  279. while (readb(port->membase + MCFUART_USR) & MCFUART_USR_TXREADY) {
  280. if (xmit->head == xmit->tail)
  281. break;
  282. writeb(xmit->buf[xmit->tail], port->membase + MCFUART_UTB);
  283. xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE -1);
  284. port->icount.tx++;
  285. }
  286. if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
  287. uart_write_wakeup(port);
  288. if (xmit->head == xmit->tail) {
  289. pp->imr &= ~MCFUART_UIR_TXREADY;
  290. writeb(pp->imr, port->membase + MCFUART_UIMR);
  291. }
  292. }
  293. /****************************************************************************/
  294. static irqreturn_t mcf_interrupt(int irq, void *data)
  295. {
  296. struct uart_port *port = data;
  297. struct mcf_uart *pp = container_of(port, struct mcf_uart, port);
  298. unsigned int isr;
  299. isr = readb(port->membase + MCFUART_UISR) & pp->imr;
  300. if (isr & MCFUART_UIR_RXREADY)
  301. mcf_rx_chars(pp);
  302. if (isr & MCFUART_UIR_TXREADY)
  303. mcf_tx_chars(pp);
  304. return IRQ_HANDLED;
  305. }
  306. /****************************************************************************/
  307. static void mcf_config_port(struct uart_port *port, int flags)
  308. {
  309. port->type = PORT_MCF;
  310. /* Clear mask, so no surprise interrupts. */
  311. writeb(0, port->membase + MCFUART_UIMR);
  312. if (request_irq(port->irq, mcf_interrupt, IRQF_DISABLED, "UART", port))
  313. printk(KERN_ERR "MCF: unable to attach ColdFire UART %d "
  314. "interrupt vector=%d\n", port->line, port->irq);
  315. }
  316. /****************************************************************************/
  317. static const char *mcf_type(struct uart_port *port)
  318. {
  319. return (port->type == PORT_MCF) ? "ColdFire UART" : NULL;
  320. }
  321. /****************************************************************************/
  322. static int mcf_request_port(struct uart_port *port)
  323. {
  324. /* UARTs always present */
  325. return 0;
  326. }
  327. /****************************************************************************/
  328. static void mcf_release_port(struct uart_port *port)
  329. {
  330. /* Nothing to release... */
  331. }
  332. /****************************************************************************/
  333. static int mcf_verify_port(struct uart_port *port, struct serial_struct *ser)
  334. {
  335. if ((ser->type != PORT_UNKNOWN) && (ser->type != PORT_MCF))
  336. return -EINVAL;
  337. return 0;
  338. }
  339. /****************************************************************************/
  340. /*
  341. * Define the basic serial functions we support.
  342. */
  343. static struct uart_ops mcf_uart_ops = {
  344. .tx_empty = mcf_tx_empty,
  345. .get_mctrl = mcf_get_mctrl,
  346. .set_mctrl = mcf_set_mctrl,
  347. .start_tx = mcf_start_tx,
  348. .stop_tx = mcf_stop_tx,
  349. .stop_rx = mcf_stop_rx,
  350. .enable_ms = mcf_enable_ms,
  351. .break_ctl = mcf_break_ctl,
  352. .startup = mcf_startup,
  353. .shutdown = mcf_shutdown,
  354. .set_termios = mcf_set_termios,
  355. .type = mcf_type,
  356. .request_port = mcf_request_port,
  357. .release_port = mcf_release_port,
  358. .config_port = mcf_config_port,
  359. .verify_port = mcf_verify_port,
  360. };
  361. static struct mcf_uart mcf_ports[3];
  362. #define MCF_MAXPORTS ARRAY_SIZE(mcf_ports)
  363. /****************************************************************************/
  364. #if defined(CONFIG_SERIAL_MCF_CONSOLE)
  365. /****************************************************************************/
  366. int __init early_mcf_setup(struct mcf_platform_uart *platp)
  367. {
  368. struct uart_port *port;
  369. int i;
  370. for (i = 0; ((i < MCF_MAXPORTS) && (platp[i].mapbase)); i++) {
  371. port = &mcf_ports[i].port;
  372. port->line = i;
  373. port->type = PORT_MCF;
  374. port->mapbase = platp[i].mapbase;
  375. port->membase = (platp[i].membase) ? platp[i].membase :
  376. (unsigned char __iomem *) port->mapbase;
  377. port->iotype = SERIAL_IO_MEM;
  378. port->irq = platp[i].irq;
  379. port->uartclk = MCF_BUSCLK;
  380. port->flags = ASYNC_BOOT_AUTOCONF;
  381. port->ops = &mcf_uart_ops;
  382. }
  383. return 0;
  384. }
  385. /****************************************************************************/
  386. static void mcf_console_putc(struct console *co, const char c)
  387. {
  388. struct uart_port *port = &(mcf_ports + co->index)->port;
  389. int i;
  390. for (i = 0; (i < 0x10000); i++) {
  391. if (readb(port->membase + MCFUART_USR) & MCFUART_USR_TXREADY)
  392. break;
  393. }
  394. writeb(c, port->membase + MCFUART_UTB);
  395. for (i = 0; (i < 0x10000); i++) {
  396. if (readb(port->membase + MCFUART_USR) & MCFUART_USR_TXREADY)
  397. break;
  398. }
  399. }
  400. /****************************************************************************/
  401. static void mcf_console_write(struct console *co, const char *s, unsigned int count)
  402. {
  403. for (; (count); count--, s++) {
  404. mcf_console_putc(co, *s);
  405. if (*s == '\n')
  406. mcf_console_putc(co, '\r');
  407. }
  408. }
  409. /****************************************************************************/
  410. static int __init mcf_console_setup(struct console *co, char *options)
  411. {
  412. struct uart_port *port;
  413. int baud = CONFIG_SERIAL_MCF_BAUDRATE;
  414. int bits = 8;
  415. int parity = 'n';
  416. int flow = 'n';
  417. if ((co->index < 0) || (co->index >= MCF_MAXPORTS))
  418. co->index = 0;
  419. port = &mcf_ports[co->index].port;
  420. if (port->membase == 0)
  421. return -ENODEV;
  422. if (options)
  423. uart_parse_options(options, &baud, &parity, &bits, &flow);
  424. return uart_set_options(port, co, baud, parity, bits, flow);
  425. }
  426. /****************************************************************************/
  427. static struct uart_driver mcf_driver;
  428. static struct console mcf_console = {
  429. .name = "ttyS",
  430. .write = mcf_console_write,
  431. .device = uart_console_device,
  432. .setup = mcf_console_setup,
  433. .flags = CON_PRINTBUFFER,
  434. .index = -1,
  435. .data = &mcf_driver,
  436. };
  437. static int __init mcf_console_init(void)
  438. {
  439. register_console(&mcf_console);
  440. return 0;
  441. }
  442. console_initcall(mcf_console_init);
  443. #define MCF_CONSOLE &mcf_console
  444. /****************************************************************************/
  445. #else
  446. /****************************************************************************/
  447. #define MCF_CONSOLE NULL
  448. /****************************************************************************/
  449. #endif /* CONFIG_MCF_CONSOLE */
  450. /****************************************************************************/
  451. /*
  452. * Define the mcf UART driver structure.
  453. */
  454. static struct uart_driver mcf_driver = {
  455. .owner = THIS_MODULE,
  456. .driver_name = "mcf",
  457. .dev_name = "ttyS",
  458. .major = TTY_MAJOR,
  459. .minor = 64,
  460. .nr = MCF_MAXPORTS,
  461. .cons = MCF_CONSOLE,
  462. };
  463. /****************************************************************************/
  464. static int __devinit mcf_probe(struct platform_device *pdev)
  465. {
  466. struct mcf_platform_uart *platp = pdev->dev.platform_data;
  467. struct uart_port *port;
  468. int i;
  469. for (i = 0; ((i < MCF_MAXPORTS) && (platp[i].mapbase)); i++) {
  470. port = &mcf_ports[i].port;
  471. port->line = i;
  472. port->type = PORT_MCF;
  473. port->mapbase = platp[i].mapbase;
  474. port->membase = (platp[i].membase) ? platp[i].membase :
  475. (unsigned char __iomem *) platp[i].mapbase;
  476. port->iotype = SERIAL_IO_MEM;
  477. port->irq = platp[i].irq;
  478. port->uartclk = MCF_BUSCLK;
  479. port->ops = &mcf_uart_ops;
  480. port->flags = ASYNC_BOOT_AUTOCONF;
  481. uart_add_one_port(&mcf_driver, port);
  482. }
  483. return 0;
  484. }
  485. /****************************************************************************/
  486. static int mcf_remove(struct platform_device *pdev)
  487. {
  488. struct uart_port *port;
  489. int i;
  490. for (i = 0; (i < MCF_MAXPORTS); i++) {
  491. port = &mcf_ports[i].port;
  492. if (port)
  493. uart_remove_one_port(&mcf_driver, port);
  494. }
  495. return 0;
  496. }
  497. /****************************************************************************/
  498. static struct platform_driver mcf_platform_driver = {
  499. .probe = mcf_probe,
  500. .remove = __devexit_p(mcf_remove),
  501. .driver = {
  502. .name = "mcfuart",
  503. .owner = THIS_MODULE,
  504. },
  505. };
  506. /****************************************************************************/
  507. static int __init mcf_init(void)
  508. {
  509. int rc;
  510. printk("ColdFire internal UART serial driver\n");
  511. rc = uart_register_driver(&mcf_driver);
  512. if (rc)
  513. return rc;
  514. rc = platform_driver_register(&mcf_platform_driver);
  515. if (rc)
  516. return rc;
  517. return 0;
  518. }
  519. /****************************************************************************/
  520. static void __exit mcf_exit(void)
  521. {
  522. platform_driver_unregister(&mcf_platform_driver);
  523. uart_unregister_driver(&mcf_driver);
  524. }
  525. /****************************************************************************/
  526. module_init(mcf_init);
  527. module_exit(mcf_exit);
  528. MODULE_AUTHOR("Greg Ungerer <gerg@snapgear.com>");
  529. MODULE_DESCRIPTION("Freescale ColdFire UART driver");
  530. MODULE_LICENSE("GPL");
  531. MODULE_ALIAS("platform:mcfuart");
  532. /****************************************************************************/