serial.h
来自「优龙2410linux2.6.8内核源代码」· C头文件 代码 · 共 70 行
H
70 行
/* * linux/include/asm-arm/arch-imx/serial.h * * Copyright (C) 1999 ARM Limited * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */#ifndef __ASM_ARCH_SERIAL_H#define __ASM_ARCH_SERIAL_H#define BASE_BAUD (1843200 / 4)#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)#ifdef CONFIG_MACH_SCB9328 /* UART CLK PORT IRQ FLAGS */#define STD_SERIAL_PORT_DEFNS \ { baud_base: (7372800 / 16), \ io_type: UPIO_MEM, \ port: SCB9328_UART1_BASE, \ iomem_base: (u8*)SCB9328_UART1_BASE, \ irq: SCB9328_UART1_IRQ, \ flags: STD_COM_FLAGS \ }, { \ baud_base: (7372800 / 16), \ io_type: UPIO_MEM, \ port: SCB9328_UART2_BASE, \ iomem_base: (u8*)SCB9328_UART2_BASE, \ irq: SCB9328_UART2_IRQ, \ flags: STD_COM_FLAGS \ }#elif defined CONFIG_MACH_MX1FS2#define STD_SERIAL_PORT_DEFNS \ { baud_base: (3686400 / 16), \ io_type: UPIO_MEM, \ port: MX1FS2_UART1_BASE, \ iomem_base: (u8*)MX1FS2_UART1_BASE, \ irq: MX1FS2_UART1_IRQ, \ flags: STD_COM_FLAGS \ }, { \ baud_base: (3686400 / 16), \ io_type: UPIO_MEM, \ port: MX1FS2_UART2_BASE, \ iomem_base: (u8*)MX1FS2_UART2_BASE, \ irq: MX1FS2_UART2_IRQ, \ flags: STD_COM_FLAGS \ }#else#define STD_SERIAL_PORT_DEFNS#endif#define EXTRA_SERIAL_PORT_DEFNS#endif /* __ASM_ARCH_SERIAL_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?