Skip to contentSkip to conversation

fit blackfin uart over sport driver into common uart inftrastructure (v3)

PATCH Superseded sonic zhang 2 participants 3 messages Sep 18, 2009 TTY layer and serial drivers

v1 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fit blackfin uart over sport driver into common uart inftrastructure (v3)

Fit blackfin uart over sport driver into common uart inftrastructure.

1. Disable local interrupts in 32-bit reading from SPORT RX MMR to walk around the RX underflow hardware issue when this reading is interrupted by the other IRQ.

2. Enable sport uart driver to change uart baud, data bit, stop bit at runtime. Bind the index of uart device nodes to physical index of sports.

3. Move most platform data into arch specific board files.

4. Console is registered in sport uart driver as well.

5. Remove 500 us block waiting in sport tx stop code by putting a dummy data into tx fifo to make sure the sport tx stops when all bytes are shifted out except for the dummy data.

6. clean up a bit and fix up coding style.

---
 drivers/serial/Kconfig           |   24 ++
 drivers/serial/bfin_sport_uart.c |  757 ++++++++++++++++++++++++++------------
 drivers/serial/bfin_sport_uart.h |   53 ++-
 3 files changed, 582 insertions(+), 252 deletions(-)
drivers/serial/Kconfig +24 -0
index 03422ce..45f63a8 100644
@@ -1451,6 +1451,30 @@ config SPORT_BAUD_RATE
 	default 19200 if (SERIAL_SPORT_BAUD_RATE_19200)
 	default 9600 if (SERIAL_SPORT_BAUD_RATE_9600)
 
+config SERIAL_BFIN_SPORT0_UART
+	bool "Enable UART over SPORT0"
+	depends on SERIAL_BFIN_SPORT
+	help
+	  Enable UART over SPORT0
+
+config SERIAL_BFIN_SPORT1_UART
+	bool "Enable UART over SPORT1"
+	depends on SERIAL_BFIN_SPORT
+	help
+	  Enable UART over SPORT1
+
+config SERIAL_BFIN_SPORT2_UART
+	bool "Enable UART over SPORT2"
+	depends on SERIAL_BFIN_SPORT && (BF54x || BF538 || BF539)
+	help
+	  Enable UART over SPORT2
+
+config SERIAL_BFIN_SPORT3_UART
+	bool "Enable UART over SPORT3"
+	depends on SERIAL_BFIN_SPORT && (BF54x || BF538 || BF539)
+	help
+	  Enable UART over SPORT3
+
 config SERIAL_TIMBERDALE
 	tristate "Support for timberdale UART"
 	depends on MFD_TIMBERDALE
drivers/serial/bfin_sport_uart.c +526 -231

999 lines not on this page · raw message

drivers/serial/bfin_sport_uart.h +32 -21

71 lines not on this page · raw message

Signature · 1 line
1.6.0
#1 lore raw

On Fri, Sep 18, 2009 at 02:27, sonic zhang wrote:

btw, "v3" and such in the subject should be inside of the [PATCH ...] so that git will trim it automatically

Quoted 3 lines

1. Disable local interrupts in 32-bit reading from SPORT RX MMR to walk around the RX underflow hardware issue when this reading is interrupted by the other IRQ.

i dont think this change should be squashed. it's unrelated to the larger issue you're tackling.
http://git.kernel.org/?p=linux/kernel/git/vapier/blackfin.git;a=commitdiff;h=3393f5776d247fbd241c7fe52e2e420a64e36fa3
-mike

#2 lore raw

No problem. I can split it up. But, without it this driver won't work as expected.

Sonic Zhang

Quoted 5 lines · Mike Frysinger

On Fri, Sep 18, 2009 at 02:27, sonic zhang wrote:

btw, "v3" and such in the subject should be inside of the [PATCH ...] so that git will trim it automatically

Quoted 9 lines
Quoted 3 lines

1. Disable local interrupts in 32-bit reading from SPORT RX MMR to walk around the RX underflow hardware issue when this reading is interrupted by the other IRQ.

i dont think this change should be squashed.  it's unrelated to the larger issue you're tackling.
http://git.kernel.org/?p=linux/kernel/git/vapier/blackfin.git;a=commitdiff;h=3393f5776d247fbd241c7fe52e2e420a64e36fa3
-mike

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html