16c554移植:
#define PORT(_base,_irq) \
{ \
.mapbase = _base, \
.irq = _irq, \
.uartclk = 1843200, \
.regshift = 1, \
.iotype = UPIO_MEM, \
.flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP | UPF_SKIP_TEST | UPF_SHARE_IR
Q ,\
}
static struct plat_serial8250_port exar_data[] = {
PORT(0x16a00000, SBS_UART0_IRQ),
PORT(0x16a00020, SBS_UART1_IRQ),
PORT(0x16a00040, SBS_UART2_IRQ),
PORT(0x16a00060, SBS_UART3_IRQ),
{ },
};
说明:
mapbase: 为基地址
irq: 中断号
uartclk: 波特率
regshift:寄存器之间的偏移
iotype: io类型
flags: 标志
阅读(1920) | 评论(0) | 转发(0) |