diff options
author | Oyvind Repvik <nail@nslu2-linux.org> | 2007-03-01 10:00:45 +0000 |
---|---|---|
committer | Oyvind Repvik <nail@nslu2-linux.org> | 2007-03-01 10:00:45 +0000 |
commit | d3364fe9b363f0d44fe9e9fdb970fbc7f2fc4bd6 (patch) | |
tree | 17c78a32930dbda54bdf889667fe5961a632c4ad /packages/linux/linux-turbostation/linux-2.6.16_arch_ppc_platforms_sandpoint.h | |
parent | f3bc368fcae8dba840ef39eb02a5dc815cda01f8 (diff) |
linux: Add linux-turbostation
Diffstat (limited to 'packages/linux/linux-turbostation/linux-2.6.16_arch_ppc_platforms_sandpoint.h')
-rw-r--r-- | packages/linux/linux-turbostation/linux-2.6.16_arch_ppc_platforms_sandpoint.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/packages/linux/linux-turbostation/linux-2.6.16_arch_ppc_platforms_sandpoint.h b/packages/linux/linux-turbostation/linux-2.6.16_arch_ppc_platforms_sandpoint.h new file mode 100644 index 0000000000..52a3fd1313 --- /dev/null +++ b/packages/linux/linux-turbostation/linux-2.6.16_arch_ppc_platforms_sandpoint.h @@ -0,0 +1,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 + |