mcf.c 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
  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. uart_update_timeout(port, termios->c_cflag, baud);
  215. writeb(MCFUART_UCR_CMDRESETRX, port->membase + MCFUART_UCR);
  216. writeb(MCFUART_UCR_CMDRESETTX, port->membase + MCFUART_UCR);
  217. writeb(MCFUART_UCR_CMDRESETMRPTR, port->membase + MCFUART_UCR);
  218. writeb(mr1, port->membase + MCFUART_UMR);
  219. writeb(mr2, port->membase + MCFUART_UMR);
  220. writeb((baudclk & 0xff00) >> 8, port->membase + MCFUART_UBG1);
  221. writeb((baudclk & 0xff), port->membase + MCFUART_UBG2);
  222. #if defined(CONFIG_M5272)
  223. writeb((baudfr & 0x0f), port->membase + MCFUART_UFPD);
  224. #endif
  225. writeb(MCFUART_UCSR_RXCLKTIMER | MCFUART_UCSR_TXCLKTIMER,
  226. port->membase + MCFUART_UCSR);
  227. writeb(MCFUART_UCR_RXENABLE | MCFUART_UCR_TXENABLE,
  228. port->membase + MCFUART_UCR);
  229. spin_unlock_irqrestore(&port->lock, flags);
  230. }
  231. /****************************************************************************/
  232. static void mcf_rx_chars(struct mcf_uart *pp)
  233. {
  234. struct uart_port *port = &pp->port;
  235. unsigned char status, ch, flag;
  236. while ((status = readb(port->membase + MCFUART_USR)) & MCFUART_USR_RXREADY) {
  237. ch = readb(port->membase + MCFUART_URB);
  238. flag = TTY_NORMAL;
  239. port->icount.rx++;
  240. if (status & MCFUART_USR_RXERR) {
  241. writeb(MCFUART_UCR_CMDRESETERR,
  242. port->membase + MCFUART_UCR);
  243. if (status & MCFUART_USR_RXBREAK) {
  244. port->icount.brk++;
  245. if (uart_handle_break(port))
  246. continue;
  247. } else if (status & MCFUART_USR_RXPARITY) {
  248. port->icount.parity++;
  249. } else if (status & MCFUART_USR_RXOVERRUN) {
  250. port->icount.overrun++;
  251. } else if (status & MCFUART_USR_RXFRAMING) {
  252. port->icount.frame++;
  253. }
  254. status &= port->read_status_mask;
  255. if (status & MCFUART_USR_RXBREAK)
  256. flag = TTY_BREAK;
  257. else if (status & MCFUART_USR_RXPARITY)
  258. flag = TTY_PARITY;
  259. else if (status & MCFUART_USR_RXFRAMING)
  260. flag = TTY_FRAME;
  261. }
  262. if (uart_handle_sysrq_char(port, ch))
  263. continue;
  264. uart_insert_char(port, status, MCFUART_USR_RXOVERRUN, ch, flag);
  265. }
  266. tty_flip_buffer_push(port->state->port.tty);
  267. }
  268. /****************************************************************************/
  269. static void mcf_tx_chars(struct mcf_uart *pp)
  270. {
  271. struct uart_port *port = &pp->port;
  272. struct circ_buf *xmit = &port->state->xmit;
  273. if (port->x_char) {
  274. /* Send special char - probably flow control */
  275. writeb(port->x_char, port->membase + MCFUART_UTB);
  276. port->x_char = 0;
  277. port->icount.tx++;
  278. return;
  279. }
  280. while (readb(port->membase + MCFUART_USR) & MCFUART_USR_TXREADY) {
  281. if (xmit->head == xmit->tail)
  282. break;
  283. writeb(xmit->buf[xmit->tail], port->membase + MCFUART_UTB);
  284. xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE -1);
  285. port->icount.tx++;
  286. }
  287. if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
  288. uart_write_wakeup(port);
  289. if (xmit->head == xmit->tail) {
  290. pp->imr &= ~MCFUART_UIR_TXREADY;
  291. writeb(pp->imr, port->membase + MCFUART_UIMR);
  292. }
  293. }
  294. /****************************************************************************/
  295. static irqreturn_t mcf_interrupt(int irq, void *data)
  296. {
  297. struct uart_port *port = data;
  298. struct mcf_uart *pp = container_of(port, struct mcf_uart, port);
  299. unsigned int isr;
  300. isr = readb(port->membase + MCFUART_UISR) & pp->imr;
  301. if (isr & MCFUART_UIR_RXREADY)
  302. mcf_rx_chars(pp);
  303. if (isr & MCFUART_UIR_TXREADY)
  304. mcf_tx_chars(pp);
  305. return IRQ_HANDLED;
  306. }
  307. /****************************************************************************/
  308. static void mcf_config_port(struct uart_port *port, int flags)
  309. {
  310. port->type = PORT_MCF;
  311. port->fifosize = MCFUART_TXFIFOSIZE;
  312. /* Clear mask, so no surprise interrupts. */
  313. writeb(0, port->membase + MCFUART_UIMR);
  314. if (request_irq(port->irq, mcf_interrupt, IRQF_DISABLED, "UART", port))
  315. printk(KERN_ERR "MCF: unable to attach ColdFire UART %d "
  316. "interrupt vector=%d\n", port->line, port->irq);
  317. }
  318. /****************************************************************************/
  319. static const char *mcf_type(struct uart_port *port)
  320. {
  321. return (port->type == PORT_MCF) ? "ColdFire UART" : NULL;
  322. }
  323. /****************************************************************************/
  324. static int mcf_request_port(struct uart_port *port)
  325. {
  326. /* UARTs always present */
  327. return 0;
  328. }
  329. /****************************************************************************/
  330. static void mcf_release_port(struct uart_port *port)
  331. {
  332. /* Nothing to release... */
  333. }
  334. /****************************************************************************/
  335. static int mcf_verify_port(struct uart_port *port, struct serial_struct *ser)
  336. {
  337. if ((ser->type != PORT_UNKNOWN) && (ser->type != PORT_MCF))
  338. return -EINVAL;
  339. return 0;
  340. }
  341. /****************************************************************************/
  342. /*
  343. * Define the basic serial functions we support.
  344. */
  345. static const struct uart_ops mcf_uart_ops = {
  346. .tx_empty = mcf_tx_empty,
  347. .get_mctrl = mcf_get_mctrl,
  348. .set_mctrl = mcf_set_mctrl,
  349. .start_tx = mcf_start_tx,
  350. .stop_tx = mcf_stop_tx,
  351. .stop_rx = mcf_stop_rx,
  352. .enable_ms = mcf_enable_ms,
  353. .break_ctl = mcf_break_ctl,
  354. .startup = mcf_startup,
  355. .shutdown = mcf_shutdown,
  356. .set_termios = mcf_set_termios,
  357. .type = mcf_type,
  358. .request_port = mcf_request_port,
  359. .release_port = mcf_release_port,
  360. .config_port = mcf_config_port,
  361. .verify_port = mcf_verify_port,
  362. };
  363. static struct mcf_uart mcf_ports[4];
  364. #define MCF_MAXPORTS ARRAY_SIZE(mcf_ports)
  365. /****************************************************************************/
  366. #if defined(CONFIG_SERIAL_MCF_CONSOLE)
  367. /****************************************************************************/
  368. int __init early_mcf_setup(struct mcf_platform_uart *platp)
  369. {
  370. struct uart_port *port;
  371. int i;
  372. for (i = 0; ((i < MCF_MAXPORTS) && (platp[i].mapbase)); i++) {
  373. port = &mcf_ports[i].port;
  374. port->line = i;
  375. port->type = PORT_MCF;
  376. port->mapbase = platp[i].mapbase;
  377. port->membase = (platp[i].membase) ? platp[i].membase :
  378. (unsigned char __iomem *) port->mapbase;
  379. port->iotype = SERIAL_IO_MEM;
  380. port->irq = platp[i].irq;
  381. port->uartclk = MCF_BUSCLK;
  382. port->flags = ASYNC_BOOT_AUTOCONF;
  383. port->ops = &mcf_uart_ops;
  384. }
  385. return 0;
  386. }
  387. /****************************************************************************/
  388. static void mcf_console_putc(struct console *co, const char c)
  389. {
  390. struct uart_port *port = &(mcf_ports + co->index)->port;
  391. int i;
  392. for (i = 0; (i < 0x10000); i++) {
  393. if (readb(port->membase + MCFUART_USR) & MCFUART_USR_TXREADY)
  394. break;
  395. }
  396. writeb(c, port->membase + MCFUART_UTB);
  397. for (i = 0; (i < 0x10000); i++) {
  398. if (readb(port->membase + MCFUART_USR) & MCFUART_USR_TXREADY)
  399. break;
  400. }
  401. }
  402. /****************************************************************************/
  403. static void mcf_console_write(struct console *co, const char *s, unsigned int count)
  404. {
  405. for (; (count); count--, s++) {
  406. mcf_console_putc(co, *s);
  407. if (*s == '\n')
  408. mcf_console_putc(co, '\r');
  409. }
  410. }
  411. /****************************************************************************/
  412. static int __init mcf_console_setup(struct console *co, char *options)
  413. {
  414. struct uart_port *port;
  415. int baud = CONFIG_SERIAL_MCF_BAUDRATE;
  416. int bits = 8;
  417. int parity = 'n';
  418. int flow = 'n';
  419. if ((co->index < 0) || (co->index >= MCF_MAXPORTS))
  420. co->index = 0;
  421. port = &mcf_ports[co->index].port;
  422. if (port->membase == 0)
  423. return -ENODEV;
  424. if (options)
  425. uart_parse_options(options, &baud, &parity, &bits, &flow);
  426. return uart_set_options(port, co, baud, parity, bits, flow);
  427. }
  428. /****************************************************************************/
  429. static struct uart_driver mcf_driver;
  430. static struct console mcf_console = {
  431. .name = "ttyS",
  432. .write = mcf_console_write,
  433. .device = uart_console_device,
  434. .setup = mcf_console_setup,
  435. .flags = CON_PRINTBUFFER,
  436. .index = -1,
  437. .data = &mcf_driver,
  438. };
  439. static int __init mcf_console_init(void)
  440. {
  441. register_console(&mcf_console);
  442. return 0;
  443. }
  444. console_initcall(mcf_console_init);
  445. #define MCF_CONSOLE &mcf_console
  446. /****************************************************************************/
  447. #else
  448. /****************************************************************************/
  449. #define MCF_CONSOLE NULL
  450. /****************************************************************************/
  451. #endif /* CONFIG_MCF_CONSOLE */
  452. /****************************************************************************/
  453. /*
  454. * Define the mcf UART driver structure.
  455. */
  456. static struct uart_driver mcf_driver = {
  457. .owner = THIS_MODULE,
  458. .driver_name = "mcf",
  459. .dev_name = "ttyS",
  460. .major = TTY_MAJOR,
  461. .minor = 64,
  462. .nr = MCF_MAXPORTS,
  463. .cons = MCF_CONSOLE,
  464. };
  465. /****************************************************************************/
  466. static int __devinit mcf_probe(struct platform_device *pdev)
  467. {
  468. struct mcf_platform_uart *platp = pdev->dev.platform_data;
  469. struct uart_port *port;
  470. int i;
  471. for (i = 0; ((i < MCF_MAXPORTS) && (platp[i].mapbase)); i++) {
  472. port = &mcf_ports[i].port;
  473. port->line = i;
  474. port->type = PORT_MCF;
  475. port->mapbase = platp[i].mapbase;
  476. port->membase = (platp[i].membase) ? platp[i].membase :
  477. (unsigned char __iomem *) platp[i].mapbase;
  478. port->iotype = SERIAL_IO_MEM;
  479. port->irq = platp[i].irq;
  480. port->uartclk = MCF_BUSCLK;
  481. port->ops = &mcf_uart_ops;
  482. port->flags = ASYNC_BOOT_AUTOCONF;
  483. uart_add_one_port(&mcf_driver, port);
  484. }
  485. return 0;
  486. }
  487. /****************************************************************************/
  488. static int __devexit mcf_remove(struct platform_device *pdev)
  489. {
  490. struct uart_port *port;
  491. int i;
  492. for (i = 0; (i < MCF_MAXPORTS); i++) {
  493. port = &mcf_ports[i].port;
  494. if (port)
  495. uart_remove_one_port(&mcf_driver, port);
  496. }
  497. return 0;
  498. }
  499. /****************************************************************************/
  500. static struct platform_driver mcf_platform_driver = {
  501. .probe = mcf_probe,
  502. .remove = __devexit_p(mcf_remove),
  503. .driver = {
  504. .name = "mcfuart",
  505. .owner = THIS_MODULE,
  506. },
  507. };
  508. /****************************************************************************/
  509. static int __init mcf_init(void)
  510. {
  511. int rc;
  512. printk("ColdFire internal UART serial driver\n");
  513. rc = uart_register_driver(&mcf_driver);
  514. if (rc)
  515. return rc;
  516. rc = platform_driver_register(&mcf_platform_driver);
  517. if (rc)
  518. return rc;
  519. return 0;
  520. }
  521. /****************************************************************************/
  522. static void __exit mcf_exit(void)
  523. {
  524. platform_driver_unregister(&mcf_platform_driver);
  525. uart_unregister_driver(&mcf_driver);
  526. }
  527. /****************************************************************************/
  528. module_init(mcf_init);
  529. module_exit(mcf_exit);
  530. MODULE_AUTHOR("Greg Ungerer <gerg@snapgear.com>");
  531. MODULE_DESCRIPTION("Freescale ColdFire UART driver");
  532. MODULE_LICENSE("GPL");
  533. MODULE_ALIAS("platform:mcfuart");
  534. /****************************************************************************/