OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [drivers/] [char/] [serial.c] - Diff between revs 656 and 764

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 656 Rev 764
Line 160... Line 160...
 * megabits/second; but this requires the faster clock.
 * megabits/second; but this requires the faster clock.
 */
 */
#define BASE_BAUD ( 1843200 / 16 )
#define BASE_BAUD ( 1843200 / 16 )
 
 
/* Base boud for or1k */
/* Base boud for or1k */
#define BASE_BAUD_OR1K ( 200000/ 16 )
#define BASE_BAUD_OR1K ( SYS_CLK / 16 )
 
 
/*
/*
 * Well, it is not a 24,756 MHz clock but it is at least a start.
 * Well, it is not a 24,756 MHz clock but it is at least a start.
 * This PCI board here has a 14,7456 MHz crystal oscillator which is
 * This PCI board here has a 14,7456 MHz crystal oscillator which is
 * eight times as fast as the standard serial clock...
 * eight times as fast as the standard serial clock...
Line 229... Line 229...
        { 0, BASE_BAUD, 0x208, 25, STD_COM_FLAGS },      /* ttyS1 */
        { 0, BASE_BAUD, 0x208, 25, STD_COM_FLAGS },      /* ttyS1 */
        { 0, BASE_BAUD, 0x210, 25, STD_COM_FLAGS },      /* ttyS2 */
        { 0, BASE_BAUD, 0x210, 25, STD_COM_FLAGS },      /* ttyS2 */
        { 0, BASE_BAUD, 0x218, 25, STD_COM_FLAGS },      /* ttyS3 */
        { 0, BASE_BAUD, 0x218, 25, STD_COM_FLAGS },      /* ttyS3 */
#elif defined(CONFIG_OR32)
#elif defined(CONFIG_OR32)
        { 0, BASE_BAUD_OR1K, UART_BASE_ADD, IRQ_UART_0, STD_COM_FLAGS }, /* ttyS0 */
        { 0, BASE_BAUD_OR1K, UART_BASE_ADD, IRQ_UART_0, STD_COM_FLAGS }, /* ttyS0 */
 
        { 0, BASE_BAUD_OR1K, UART_BASE_ADD, IRQ_UART_0, STD_COM_FLAGS }, /* ttyS0 */
#else
#else
        { 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS },       /* ttyS0 */
        { 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS },       /* ttyS0 */
        { 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS },       /* ttyS1 */
        { 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS },       /* ttyS1 */
        { 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS },       /* ttyS2 */
        { 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS },       /* ttyS2 */
        { 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS },      /* ttyS3 */
        { 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS },      /* ttyS3 */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.