Thread (8 messages) 8 messages, 3 authors, 2015-11-07
STALE3894d

[PATCH] tty: amba-pl011: add options to earlycon for 32-bit reg access

From: Timur Tabi <hidden>
Date: 2015-11-06 18:59:59
Also in: linux-serial

On 11/05/2015 08:44 PM, Peter Hurley wrote:
Or better yet, for sbsa32 earlycon, just use the existing port type constructs.
So,

	earlycon=pl011,mmio32,0x3ced1000

which will set port->iotype to UPIO_MEM32, which in turn can be used to select
the correct i/o width in pl011_putc().
That's a great idea.  But why aren't we using it for pl011_write()?

static void pl011_write(unsigned int val, const struct uart_amba_port *uap,
	unsigned int reg)
{
	void __iomem *addr = uap->port.membase + pl011_reg_to_offset(uap, reg);

	if (uap->port.iotype == UPIO_MEM32)
		writel(val, addr);
	else
		writew(val, addr);
}


-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help