Beispiel #1
0
static int eukrea_cpuimx27_console_init(void)
{
#ifdef CONFIG_DRIVER_SERIAL_IMX
	imx_add_uart((void *)IMX_UART1_BASE, DEVICE_ID_DYNAMIC);
#endif
	/* configure 8 bit UART on cs3 */
	FMCR &= ~0x2;
	imx27_setup_weimcs(3, 0x0000D603, 0x0D1D0D01, 0x00D20000);
#ifdef CONFIG_DRIVER_SERIAL_NS16550
	add_ns16550_device(DEVICE_ID_DYNAMIC, IMX_CS3_BASE + QUART_OFFSET, 0xf,
			 IORESOURCE_MEM_16BIT, &quad_uart_serial_plat);
#endif
	return 0;
}
Beispiel #2
0
static int eukrea_cpuimx27_console_init(void)
{
#ifdef CONFIG_DRIVER_SERIAL_IMX
    imx_add_uart((void *)IMX_UART1_BASE, -1);
#endif
    /* configure 8 bit UART on cs3 */
    FMCR &= ~0x2;
    CS3U = 0x0000D603;
    CS3L = 0x0D1D0D01;
    CS3A = 0x00D20000;
#ifdef CONFIG_DRIVER_SERIAL_NS16550
    add_ns16550_device(-1, IMX_CS3_BASE + QUART_OFFSET, 0xf,
                       IORESOURCE_MEM_16BIT, &quad_uart_serial_plat);
#endif
    return 0;
}