summaryrefslogtreecommitdiff
path: root/target/linux/xburst/files-2.6.32/arch/mips/include/asm/mach-jz4740/serial.h
blob: c4819b98255b8ae4779e3d61448ca958837d362e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 *  linux/include/asm-mips/mach-jz4740/serial.h
 *
 *  Ingenic's JZ4740 common include.
 *
 *  Copyright (C) 2006 - 2007 Ingenic Semiconductor Inc.
 *
 *  Author: <yliu@ingenic.cn>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef __ASM_BOARD_SERIAL_H__
#define __ASM_BOARD_SERIAL_H__

#ifndef CONFIG_SERIAL_MANY_PORTS
#undef RS_TABLE_SIZE
#define RS_TABLE_SIZE  1
#endif

#define JZ_BASE_BAUD	(12000000/16)

#define JZ_SERIAL_PORT_DEFNS \
	{ .baud_base = JZ_BASE_BAUD, .irq = IRQ_UART0, \
	  .flags = STD_COM_FLAGS, .iomem_base = (u8 *)UART0_BASE, \
	  .iomem_reg_shift = 2, .io_type = SERIAL_IO_MEM },

#endif /* __ASM_BORAD_SERIAL_H__ */