Skip to contentSkip to conversation

ARM: Tegra: Force PORT_TEGRA as the UART type

PATCH Applied Stephen Warren 3 participants 3 messages Aug 8, 2011 – Aug 9, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: Tegra: Force PORT_TEGRA as the UART type

8250.c recently gained an explicit PORT_TEGRA port type. Specifically request this in all Tegra boards' UART platform data.

---
NOTE: This depends on "[PATCH 1/5] ARM: tegra: paz00: add support serial port on JP1", which was recently posted by Marc Dietrich, since that added one of the platform data array entries being modified by this patch.

 arch/arm/mach-tegra/board-harmony.c   |    3 ++-
 arch/arm/mach-tegra/board-paz00.c     |    6 ++++--
 arch/arm/mach-tegra/board-seaboard.c  |    3 ++-
 arch/arm/mach-tegra/board-trimslice.c |    3 ++-
 4 files changed, 10 insertions(+), 5 deletions(-)
arch/arm/mach-tegra/board-harmony.c +2 -1
index f528a5a..987dab5 100644
@@ -49,7 +49,8 @@ static struct plat_serial8250_port debug_uart_platform_data[] = {
 		.membase	= IO_ADDRESS(TEGRA_UARTD_BASE),
 		.mapbase	= TEGRA_UARTD_BASE,
 		.irq		= INT_UARTD,
-		.flags		= UPF_BOOT_AUTOCONF,
+		.flags		= UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE,
+		.type		= PORT_TEGRA,
 		.iotype		= UPIO_MEM,
 		.regshift	= 2,
 		.uartclk	= 216000000,
arch/arm/mach-tegra/board-paz00.c +4 -2
index b7494c2..c6a6d82 100644
@@ -49,7 +49,8 @@ static struct plat_serial8250_port debug_uart_platform_data[] = {
 		.membase	= IO_ADDRESS(TEGRA_UARTA_BASE),
 		.mapbase	= TEGRA_UARTA_BASE,
 		.irq		= INT_UARTA,
-		.flags		= UPF_BOOT_AUTOCONF,
+		.flags		= UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE,
+		.type		= PORT_TEGRA,
 		.iotype		= UPIO_MEM,
 		.regshift	= 2,
 		.uartclk	= 216000000,
@@ -58,7 +59,8 @@ static struct plat_serial8250_port debug_uart_platform_data[] = {
 		.membase	= IO_ADDRESS(TEGRA_UARTD_BASE),
 		.mapbase	= TEGRA_UARTD_BASE,
 		.irq		= INT_UARTD,
-		.flags		= UPF_BOOT_AUTOCONF,
+		.flags		= UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE,
+		.type		= PORT_TEGRA,
 		.iotype		= UPIO_MEM,
 		.regshift	= 2,
 		.uartclk	= 216000000,
arch/arm/mach-tegra/board-seaboard.c +2 -1
index 237a94a..25446df 100644
@@ -44,7 +44,8 @@
 static struct plat_serial8250_port debug_uart_platform_data[] = {
 	{
 		/* Memory and IRQ filled in before registration */
-		.flags		= UPF_BOOT_AUTOCONF,
+		.flags		= UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE,
+		.type		= PORT_TEGRA,
 		.iotype		= UPIO_MEM,
 		.regshift	= 2,
 		.uartclk	= 216000000,
arch/arm/mach-tegra/board-trimslice.c +2 -1
index 89a6d2a..91875b9 100644
@@ -46,7 +46,8 @@ static struct plat_serial8250_port debug_uart_platform_data[] = {
 		.membase	= IO_ADDRESS(TEGRA_UARTA_BASE),
 		.mapbase	= TEGRA_UARTA_BASE,
 		.irq		= INT_UARTA,
-		.flags		= UPF_BOOT_AUTOCONF,
+		.flags		= UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE,
+		.type		= PORT_TEGRA,
 		.iotype		= UPIO_MEM,
 		.regshift	= 2,
 		.uartclk	= 216000000,
Signature · 1 line
1.7.0.4
Acked-by on v1 1/1
#1 lore raw

Hi Stephen,

Am Montag 08 August 2011, 23:01:05 schrieb Stephen Warren:

Quoted 4 lines

8250.c recently gained an explicit PORT_TEGRA port type. Specifically request this in all Tegra boards' UART platform data.

Tested the paz00 part and found no issues. So for board-paz00:

Quoted 78 lines

---
NOTE: This depends on "[PATCH 1/5] ARM: tegra: paz00: add support serial port on JP1", which was recently posted by Marc Dietrich, since that added one of the platform data array entries being modified by this patch.

 arch/arm/mach-tegra/board-harmony.c   |    3 ++-
 arch/arm/mach-tegra/board-paz00.c     |    6 ++++--
 arch/arm/mach-tegra/board-seaboard.c  |    3 ++-
 arch/arm/mach-tegra/board-trimslice.c |    3 ++-
 4 files changed, 10 insertions(+), 5 deletions(-)
arch/arm/mach-tegra/board-harmony.c +2 -1
index f528a5a..987dab5 100644
@@ -49,7 +49,8 @@ static struct plat_serial8250_port debug_uart_platform_data[] = {
 		.membase	= IO_ADDRESS(TEGRA_UARTD_BASE),
 		.mapbase	= TEGRA_UARTD_BASE,
 		.irq		= INT_UARTD,
-		.flags		= UPF_BOOT_AUTOCONF,
+		.flags		= UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE,
+		.type		= PORT_TEGRA,
 		.iotype		= UPIO_MEM,
 		.regshift	= 2,
 		.uartclk	= 216000000,
arch/arm/mach-tegra/board-paz00.c +4 -2
index b7494c2..c6a6d82 100644
@@ -49,7 +49,8 @@ static struct plat_serial8250_port debug_uart_platform_data[] = {
 		.membase	= IO_ADDRESS(TEGRA_UARTA_BASE),
 		.mapbase	= TEGRA_UARTA_BASE,
 		.irq		= INT_UARTA,
-		.flags		= UPF_BOOT_AUTOCONF,
+		.flags		= UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE,
+		.type		= PORT_TEGRA,
 		.iotype		= UPIO_MEM,
 		.regshift	= 2,
 		.uartclk	= 216000000,
@@ -58,7 +59,8 @@ static struct plat_serial8250_port debug_uart_platform_data[] = {
 		.membase	= IO_ADDRESS(TEGRA_UARTD_BASE),
 		.mapbase	= TEGRA_UARTD_BASE,
 		.irq		= INT_UARTD,
-		.flags		= UPF_BOOT_AUTOCONF,
+		.flags		= UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE,
+		.type		= PORT_TEGRA,
 		.iotype		= UPIO_MEM,
 		.regshift	= 2,
 		.uartclk	= 216000000,
arch/arm/mach-tegra/board-seaboard.c +2 -1
index 237a94a..25446df 100644
@@ -44,7 +44,8 @@
 static struct plat_serial8250_port debug_uart_platform_data[] = {
 	{
 		/* Memory and IRQ filled in before registration */
-		.flags		= UPF_BOOT_AUTOCONF,
+		.flags		= UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE,
+		.type		= PORT_TEGRA,
 		.iotype		= UPIO_MEM,
 		.regshift	= 2,
 		.uartclk	= 216000000,
arch/arm/mach-tegra/board-trimslice.c +2 -1
index 89a6d2a..91875b9 100644
@@ -46,7 +46,8 @@ static struct plat_serial8250_port debug_uart_platform_data[] = {
 		.membase	= IO_ADDRESS(TEGRA_UARTA_BASE),
 		.mapbase	= TEGRA_UARTA_BASE,
 		.irq		= INT_UARTA,
-		.flags		= UPF_BOOT_AUTOCONF,
+		.flags		= UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE,
+		.type		= PORT_TEGRA,
 		.iotype		= UPIO_MEM,
 		.regshift	= 2,
 		.uartclk	= 216000000,