summaryrefslogtreecommitdiff
path: root/recipes/linux/linux-turbostation/linux-2.6.16_arch_ppc_platforms_sandpoint.h
blob: 52a3fd1313101c1cf655f952273b4962d6856e93 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Index: linux-2.6.20.1/arch/ppc/platforms/sandpoint.h
===================================================================
--- linux-2.6.20.1.orig/arch/ppc/platforms/sandpoint.h	2007-02-20 07:34:32.000000000 +0100
+++ linux-2.6.20.1/arch/ppc/platforms/sandpoint.h	2007-02-26 03:15:15.000000000 +0100
@@ -49,29 +49,37 @@
 /*
  * Serial defines.
  */
-#define SANDPOINT_SERIAL_0		0xfe0003f8
-#define SANDPOINT_SERIAL_1		0xfe0002f8
+#define SANDPOINT_SERIAL_0		0xfdf04500
+#define SANDPOINT_SERIAL_1		0xfdf04600
 
-#define RS_TABLE_SIZE  2
+#define RS_TABLE_SIZE  1
 
 /* Rate for the 1.8432 Mhz clock for the onboard serial chip */
-#define BASE_BAUD			( 1843200 / 16 )
-#define UART_CLK			1843200
+#define BASE_BAUD			( 133000000 / 16 )
+#define UART_CLK			133000000
 
 #ifdef CONFIG_SERIAL_DETECT_IRQ
-#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_AUTO_IRQ)
+#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_AUTO_IRQ|ASYNC_SKIP_TEST)
 #else
-#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF)
+#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
 #endif
 
+#define SANDPOINT_SERIAL_0_INT	25 // 4 + EPIC_IRQ_BASE + NUM_8259_INTERRUPTS
+#define SANDPOINT_SERIAL_1_INT	24 // 3 + EPIC_IRQ_BASE + NUM_8259_INTERRUPTS
+#if 0
 #define STD_SERIAL_PORT_DFNS \
-        { 0, BASE_BAUD, SANDPOINT_SERIAL_0, 4, STD_COM_FLAGS, /* ttyS0 */ \
+        { 0, BASE_BAUD, SANDPOINT_SERIAL_0, SANDPOINT_SERIAL_0_INT, STD_COM_FLAGS, /* ttyS0 */ \
 		iomem_base: (u8 *)SANDPOINT_SERIAL_0,			  \
 		io_type: SERIAL_IO_MEM },				  \
-        { 0, BASE_BAUD, SANDPOINT_SERIAL_1, 3, STD_COM_FLAGS, /* ttyS1 */ \
+        { 0, BASE_BAUD, SANDPOINT_SERIAL_1, SANDPOINT_SERIAL_1_INT, STD_COM_FLAGS, /* ttyS1 */ \
 		iomem_base: (u8 *)SANDPOINT_SERIAL_1,			  \
 		io_type: SERIAL_IO_MEM },
-
+#else
+#define STD_SERIAL_PORT_DFNS \
+        { 0, BASE_BAUD, SANDPOINT_SERIAL_0, SANDPOINT_SERIAL_0_INT, STD_COM_FLAGS, /* ttyS0 */ \
+		iomem_base: (u8 *)SANDPOINT_SERIAL_0,			  \
+		io_type: SERIAL_IO_MEM },
+#endif
 #define SERIAL_PORT_DFNS \
         STD_SERIAL_PORT_DFNS