From: Sam Song <samlinuxkernel@yahoo.com>
To: Russell King <rmk+lkml@arm.linux.org.uk>
Cc: mgreer@mvista.com, david-b@pacbell.net, linux-kernel@vger.kernel.org
Subject: Re: [patch 2.6.13-git] 8250 tweaks
Date: Thu, 14 Jul 2005 22:11:36 -0700 (PDT) [thread overview]
Message-ID: <20050715051136.25530.qmail@web32013.mail.mud.yahoo.com> (raw)
In-Reply-To: <20050714114220.C31383@flint.arm.linux.org.uk>
[-- Attachment #1: Type: text/plain, Size: 957 bytes --]
Russell King <rmk+lkml@arm.linux.org.uk> wrote:
> Well, in this case, the "whinging" resulted in
> finding a _real_ bug and locating why your ports
> weren't being found. So I guess it's
> good for something.
Indeed! The old kernel didn't have such an advantage.
> Can you mail me a diff of the changes you made to
> arch/ppc/platforms/sandpoint.h please?
Certainly.
> If that file is being used it seems that you
> actually have 4 ports defined in total. However,
> I'm a little confused because the sandpoint.h
> defines don't seem to match your original dmesg
> output.
Well, I use a sandpoint-based board. Not the same as
the reference one. There are two serial ports on the
board and I enabled them both with IRQ9/10.
In addition, No 8259 on this board.
Pls don't apply this patch:-)
Thanks,
Sam
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
[-- Attachment #2: 2389572820-sandpoint-8250.diff --]
[-- Type: application/octet-stream, Size: 3227 bytes --]
diff -urN linux-2.6.13-rc3/arch/ppc/platforms/sandpoint.c linux-2.6.13-rc3-8241/arch/ppc/platforms/sandpoint.c
--- linux-2.6.13-rc3/arch/ppc/platforms/sandpoint.c 2005-07-13 12:46:46.000000000 +0800
+++ linux-2.6.13-rc3-8241/arch/ppc/platforms/sandpoint.c 2005-07-15 12:52:08.000000000 +0800
@@ -320,9 +320,8 @@
/* this disables the 2nd serial port on the DUART
* since the sandpoint does not have it connected */
- pdata[1].uartclk = 0;
- pdata[1].irq = 0;
- pdata[1].mapbase = 0;
+ pdata[1].uartclk = bp->bi_busfreq;
+ pdata[1].membase = ioremap(pdata[1].mapbase, 0x100);
}
}
diff -urN linux-2.6.13-rc3/arch/ppc/platforms/sandpoint.h linux-2.6.13-rc3-8241/arch/ppc/platforms/sandpoint.h
--- linux-2.6.13-rc3/arch/ppc/platforms/sandpoint.h 2005-07-13 12:46:46.000000000 +0800
+++ linux-2.6.13-rc3-8241/arch/ppc/platforms/sandpoint.h 2005-07-15 12:45:14.000000000 +0800
@@ -51,30 +51,13 @@
/*
* Serial defines.
*/
-#define SANDPOINT_SERIAL_0 0xfe0003f8
-#define SANDPOINT_SERIAL_1 0xfe0002f8
-
-#define RS_TABLE_SIZE 2
-
+#define RS_TABLE_SIZE 4
+
/* Rate for the 1.8432 Mhz clock for the onboard serial chip */
-#define BASE_BAUD ( 1843200 / 16 )
-#define UART_CLK 1843200
-
-#ifdef CONFIG_SERIAL_DETECT_IRQ
-#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_AUTO_IRQ)
-#else
-#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF)
-#endif
-
-#define STD_SERIAL_PORT_DFNS \
- { 0, BASE_BAUD, SANDPOINT_SERIAL_0, 4, 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 */ \
- iomem_base: (u8 *)SANDPOINT_SERIAL_1, \
- io_type: SERIAL_IO_MEM },
-
-#define SERIAL_PORT_DFNS \
- STD_SERIAL_PORT_DFNS
+#define BASE_BAUD ( 100000000 / 16 ) /* 100Mhz speed, divided by 16
+ * to make the output freqency */
+#define UART_CLK 1843200
+
+#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
#endif /* __PPC_PLATFORMS_SANDPOINT_H */
diff -urN linux-2.6.13-rc3/arch/ppc/syslib/mpc10x_common.c linux-2.6.13-rc3-8241/arch/ppc/syslib/mpc10x_common.c
--- linux-2.6.13-rc3/arch/ppc/syslib/mpc10x_common.c 2005-07-13 12:46:46.000000000 +0800
+++ linux-2.6.13-rc3-8241/arch/ppc/syslib/mpc10x_common.c 2005-07-15 12:50:39.000000000 +0800
@@ -41,10 +41,10 @@
#else
#define EPIC_IRQ_BASE 5
#endif
-#define MPC10X_I2C_IRQ (EPIC_IRQ_BASE + NUM_8259_INTERRUPTS)
-#define MPC10X_DMA0_IRQ (EPIC_IRQ_BASE + 1 + NUM_8259_INTERRUPTS)
-#define MPC10X_DMA1_IRQ (EPIC_IRQ_BASE + 2 + NUM_8259_INTERRUPTS)
-#define MPC10X_UART0_IRQ (EPIC_IRQ_BASE + 4 + NUM_8259_INTERRUPTS)
+#define MPC10X_I2C_IRQ (EPIC_IRQ_BASE)
+#define MPC10X_DMA0_IRQ (EPIC_IRQ_BASE + 1)
+#define MPC10X_DMA1_IRQ (EPIC_IRQ_BASE + 2)
+#define MPC10X_UART0_IRQ (EPIC_IRQ_BASE + 4)
#else
#define MPC10X_I2C_IRQ -1
#define MPC10X_DMA0_IRQ -1
next prev parent reply other threads:[~2005-07-15 5:12 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-12 2:22 David Brownell
2005-07-12 7:19 ` Russell King
2005-07-12 9:14 ` Russell King
2005-07-12 10:25 ` david-b
2005-07-12 11:08 ` Russell King
2005-07-12 11:32 ` david-b
2005-07-12 12:01 ` Russell King
2005-07-12 13:30 ` david-b
2005-07-12 14:00 ` Russell King
2005-07-13 4:55 ` Sam Song
2005-07-13 6:12 ` Russell King
2005-07-13 10:51 ` Sam Song
2005-07-13 12:48 ` Russell King
2005-07-14 7:12 ` Sam Song
2005-07-14 10:42 ` Russell King
2005-07-15 5:11 ` Sam Song [this message]
2005-07-16 8:43 ` Russell King
2005-07-16 10:12 ` Sam Song
2005-07-16 10:15 ` Russell King
2005-07-16 12:31 ` Sam Song
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050715051136.25530.qmail@web32013.mail.mud.yahoo.com \
--to=samlinuxkernel@yahoo.com \
--cc=david-b@pacbell.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mgreer@mvista.com \
--cc=rmk+lkml@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®