Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4f57b81 authored by Tony Lindgren's avatar Tony Lindgren
Browse files

omap2/3: Fix DEBUG_LL for omap zoom2/3



Zoom2 and 3 have UARTs only on the external debug board.
GPMC needs to be mapped early to use it for DEBUG_LL.

Additionally, 0xfb000000 overlaps with other areas, so
use 0xfa400000 for the virtual address instead.

Note that with the pending serial.c patches you need to
set console=ttyS0,115200n8 as it will be the only UART
mapped. To use DEBUG_LL, you need to pass also earlyprintk
in cmdline.

Cc: Allen Pais <allen.pais@ti.com>
Acked-by: default avatarVikram Pandita <vikram.pandita@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 96554d70
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -82,7 +82,7 @@ static inline void __init zoom_init_smsc911x(void)


static struct plat_serial8250_port serial_platform_data[] = {
static struct plat_serial8250_port serial_platform_data[] = {
	{
	{
		.mapbase	= 0x10000000,
		.mapbase	= ZOOM_UART_BASE,
		.irq		= OMAP_GPIO_IRQ(102),
		.irq		= OMAP_GPIO_IRQ(102),
		.flags		= UPF_BOOT_AUTOCONF|UPF_IOREMAP|UPF_SHARE_IRQ,
		.flags		= UPF_BOOT_AUTOCONF|UPF_IOREMAP|UPF_SHARE_IRQ,
		.irqflags	= IRQF_SHARED | IRQF_TRIGGER_RISING,
		.irqflags	= IRQF_SHARED | IRQF_TRIGGER_RISING,
+2 −2
Original line number Original line Diff line number Diff line
@@ -91,8 +91,8 @@ static void __init omap_zoom2_map_io(void)
}
}


MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board")
MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board")
	.phys_io	= 0x48000000,
	.phys_io	= ZOOM_UART_BASE,
	.io_pg_offst	= ((0xfa000000) >> 18) & 0xfffc,
	.io_pg_offst	= (ZOOM_UART_VIRT >> 18) & 0xfffc,
	.boot_params	= 0x80000100,
	.boot_params	= 0x80000100,
	.map_io		= omap_zoom2_map_io,
	.map_io		= omap_zoom2_map_io,
	.init_irq	= omap_zoom2_init_irq,
	.init_irq	= omap_zoom2_init_irq,
+2 −2
Original line number Original line Diff line number Diff line
@@ -73,8 +73,8 @@ static void __init omap_zoom_init(void)
}
}


MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board")
MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board")
	.phys_io	= 0x48000000,
	.phys_io	= ZOOM_UART_BASE,
	.io_pg_offst	= ((0xfa000000) >> 18) & 0xfffc,
	.io_pg_offst	= (ZOOM_UART_VIRT >> 18) & 0xfffc,
	.boot_params	= 0x80000100,
	.boot_params	= 0x80000100,
	.map_io		= omap_zoom_map_io,
	.map_io		= omap_zoom_map_io,
	.init_irq	= omap_zoom_init_irq,
	.init_irq	= omap_zoom_init_irq,
+2 −2
Original line number Original line Diff line number Diff line
@@ -88,10 +88,10 @@ omap_uart_lsr: .word 0
		b	98f
		b	98f
44:		mov	\rx, #UART_OFFSET(OMAP4_UART4_BASE)
44:		mov	\rx, #UART_OFFSET(OMAP4_UART4_BASE)
		b	98f
		b	98f
95:		mov	\rx, #ZOOM_UART_BASE
95:		ldr	\rx, =ZOOM_UART_BASE
		ldr	\tmp, =omap_uart_phys
		ldr	\tmp, =omap_uart_phys
		str	\rx, [\tmp, #0]
		str	\rx, [\tmp, #0]
		mov	\rx, #ZOOM_UART_VIRT
		ldr	\rx, =ZOOM_UART_VIRT
		ldr	\tmp, =omap_uart_virt
		ldr	\tmp, =omap_uart_virt
		str	\rx, [\tmp, #0]
		str	\rx, [\tmp, #0]
		mov	\rx, #(UART_LSR << ZOOM_PORT_SHIFT)
		mov	\rx, #(UART_LSR << ZOOM_PORT_SHIFT)
+9 −0
Original line number Original line Diff line number Diff line
@@ -166,6 +166,15 @@ static struct map_desc omap34xx_io_desc[] __initdata = {
		.length		= L4_EMU_34XX_SIZE,
		.length		= L4_EMU_34XX_SIZE,
		.type		= MT_DEVICE
		.type		= MT_DEVICE
	},
	},
#if defined(CONFIG_DEBUG_LL) &&							\
	(defined(CONFIG_MACH_OMAP_ZOOM2) || defined(CONFIG_MACH_OMAP_ZOOM3))
	{
		.virtual	= ZOOM_UART_VIRT,
		.pfn		= __phys_to_pfn(ZOOM_UART_BASE),
		.length		= SZ_1M,
		.type		= MT_DEVICE
	},
#endif
};
};
#endif
#endif
#ifdef	CONFIG_ARCH_OMAP4
#ifdef	CONFIG_ARCH_OMAP4
Loading