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

Subversion Repositories or1k_soc_on_altera_embedded_dev_kit

[/] [or1k_soc_on_altera_embedded_dev_kit/] [trunk/] [linux-2.6/] [linux-2.6.24/] [include/] [asm-or32/] [serial.h] - Blame information for rev 7

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 xianfeng
#ifdef __KERNEL__
2
#ifndef _OR32_SERIAL_H__
3
#define _OR32_SERIAL_H__
4
 
5
#include <asm/board.h>
6
 
7
/* JPB: Linux will set the default UART baud rate (for us this seems to be 9600)
8
 * based on the system clock. If you want a different baud rate, spoof the
9
 * system by giving a smaller value for BASE_BAUD, which Linux will use as the
10
 * system clock when computing baud rate.
11
 *
12
 * Original code placed an unwarranted divide by 16, thereby trying to set up
13
 * a 2 Mbit terminal!
14
 *
15
 * #define BASE_BAUD ( (SYS_CLK/(OR32_CONSOLE_BAUD)) * (9600/16) )
16
 */
17
#define BASE_BAUD ( (SYS_CLK/(OR32_CONSOLE_BAUD)) * (9600) )
18
 
19
#endif /* __ASM_SERIAL_H__ */
20
#endif /* __KERNEL__ */

powered by: WebSVN 2.1.0

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