patch-2.4.21 linux-2.4.21/arch/ppc/platforms/lopec_serial.h
Next file: linux-2.4.21/arch/ppc/platforms/lopec_setup.c
Previous file: linux-2.4.21/arch/ppc/platforms/lopec_pci.c
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
2003-06-13 07:51:31.000000000 -0700
- Orig file:
linux-2.4.20/arch/ppc/platforms/lopec_serial.h
- Orig date:
1969-12-31 16:00:00.000000000 -0800
diff -urN linux-2.4.20/arch/ppc/platforms/lopec_serial.h linux-2.4.21/arch/ppc/platforms/lopec_serial.h
@@ -0,0 +1,45 @@
+/*
+ * include/asm-ppc/lopec_serial.h
+ *
+ * Definitions for Motorola LoPEC board.
+ *
+ * Author: Dan Cox
+ * danc@mvista.com (or, alternately, source@mvista.com)
+ *
+ * Copyright 2001 MontaVista Software Inc.
+ *
+ * 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.
+ */
+
+#ifndef __PLATFORMS_LOPEC_SERIAL_H__
+#define __PLATFORMS_LOPEC_SERIAL_H__
+
+#define RS_TABLE_SIZE 3
+
+#define BASE_BAUD (1843200 / 16)
+#define UART0_INT 29
+#define UART1_INT 20
+#define UART2_INT 21
+
+#define UART0_PORT 0xFFE10000
+#define UART1_PORT 0xFFE11000
+#define UART2_PORT 0xFFE12000
+#define UART0_IO_BASE (u8 *) UART0_PORT
+#define UART1_IO_BASE (u8 *) UART1_PORT
+#define UART2_IO_BASE (u8 *) UART2_PORT
+
+#define STD_UART_OP(num) \
+ { 0, BASE_BAUD, UART##num##_PORT, UART##num##_INT, \
+ (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST), \
+ iomem_base: UART##num##_IO_BASE, \
+ io_type: SERIAL_IO_MEM },
+
+#define SERIAL_PORT_DFNS \
+ STD_UART_OP(0) \
+ STD_UART_OP(1) \
+ STD_UART_OP(2)
+
+#endif /* __PLATFORMS_LOPEC_SERIAL_H__ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)