| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- From 4b5a534c16325217c05a87938885c0ee1fe69a34 Mon Sep 17 00:00:00 2001
- From: Kurt Mahan <[email protected]>
- Date: Wed, 31 Oct 2007 17:01:41 -0600
- Subject: [PATCH] MCF5445x core serial support.
- LTIBName: m5445x-serial
- Signed-off-by: Kurt Mahan <[email protected]>
- ---
- drivers/serial/mcfserial.c | 23 +++++++++++++++++++++--
- 1 files changed, 21 insertions(+), 2 deletions(-)
- --- a/drivers/serial/mcfserial.c
- +++ b/drivers/serial/mcfserial.c
- @@ -45,7 +45,9 @@
- #include <asm/coldfire.h>
- #include <asm/mcfsim.h>
- #include <asm/mcfuart.h>
- +#ifdef CONFIG_NETtel
- #include <asm/nettel.h>
- +#endif
- #include <asm/uaccess.h>
- #include "mcfserial.h"
-
- @@ -61,7 +63,8 @@ struct timer_list mcfrs_timer_struct;
- #define CONSOLE_BAUD_RATE 38400
- #define DEFAULT_CBAUD B38400
- #elif defined(CONFIG_MOD5272) || defined(CONFIG_M5208EVB) || \
- - defined(CONFIG_M5329EVB) || defined(CONFIG_GILBARCO)
- + defined(CONFIG_M5329EVB) || defined(CONFIG_GILBARCO) || \
- + defined(CONFIG_M54455)
- #define CONSOLE_BAUD_RATE 115200
- #define DEFAULT_CBAUD B115200
- #elif defined(CONFIG_ARNEWSH) || defined(CONFIG_FREESCALE) || \
- @@ -94,7 +97,7 @@ static struct tty_driver *mcfrs_serial_d
- #undef SERIAL_DEBUG_FLOW
-
- #if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
- - defined(CONFIG_M520x) || defined(CONFIG_M532x)
- + defined(CONFIG_M520x) || defined(CONFIG_M532x) || defined(CONFIG_M54455)
- #define IRQBASE (MCFINT_VECBASE+MCFINT_UART0)
- #else
- #define IRQBASE 73
- @@ -1604,6 +1607,20 @@ static void mcfrs_irqinit(struct mcf_ser
- /* GPIOs also must be initalized, depends on board */
- break;
- }
- +#elif defined(CONFIG_M54455)
- + volatile unsigned char *uartp;
- + uartp = info->addr;
- + switch (info->line) {
- + case 0:
- + MCF_GPIO_PAR_UART |= 0x000F;
- + break;
- + case 1:
- + MCF_GPIO_PAR_UART |= 0x0FF0;
- + break;
- + case 2:
- + /* GPIOs also must be initalized, depends on board */
- + break;
- + }
- #else
- volatile unsigned char *icrp, *uartp;
-
- @@ -1966,7 +1983,9 @@ struct console mcfrs_console = {
-
- static int __init mcfrs_console_init(void)
- {
- +#ifndef CONFIG_M54455
- register_console(&mcfrs_console);
- +#endif
- return 0;
- }
-
|