Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

mxc_uart_early.c File Reference

Detailed Description

Driver for the Freescale Semiconductor MXC serial ports based on drivers/char/8250_early.c, Copyright 2004 Hewlett-Packard Development Company, L.P. by Bjorn Helgaasby.

Early serial console for MXC UARTS.

This is for use before the serial driver has initialized, in particular, before the UARTs have been discovered and named. Instead of specifying the console device as, e.g., "ttymxc0", we locate the device directly by its MMIO or I/O port address.

The user can specify the device directly, e.g., console=mxcuart,0x43f90000,115200n8 or platform code can call early_uart_console_init() to set the early UART device.

After the normal serial driver starts, we try to locate the matching ttymxc device and start a console there.

Definition in file mxc_uart_early.c.

#include <linux/tty.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/console.h>
#include <linux/serial_core.h>
#include <linux/serial_reg.h>
#include <linux/clk.h>
#include <mach/mxc_uart.h>

Go to the source code of this file.


struct  mxc_early_uart_device


void __init early_mxcuart_console_write (struct console *co, const char *s, u_int count)
 late_initcall (mxc_early_uart_console_switch)
int __init mxc_early_serial_console_init (char *cmdline)
static int __init mxc_early_uart_console_init (void)
int __init mxc_early_uart_console_switch (void)
static int __init mxc_early_uart_setup (struct console *console, char *options)
int __init mxc_uart_start_console (struct uart_port *, char *)
static void __init mxcuart_console_write_char (struct uart_port *port, int ch)
static int __init parse_options (struct mxc_early_uart_device *device, char *options)
static unsigned int __init probe_baud (struct uart_port *port)


static struct
static struct clk * clk

Generated by  Doxygen 1.6.0   Back to index