[RFC] Get early_printk() to work on socfpga board
jamie at jamieiles.com
Mon Oct 15 09:30:00 EDT 2012
On Mon, Oct 15, 2012 at 02:48:52PM +0200, Pavel Machek wrote:
> Add ioremap, so that early_printk() works. Add common 8250.S so that
> code is not duplicated with picoxcell.
> Signed-off-by: Pavel Machek <pavel at denx.de>
> diff --git a/arch/arm/include/debug/8250.S b/arch/arm/include/debug/8250.S
> new file mode 100644
> index 0000000..8db01ee
> --- /dev/null
> +++ b/arch/arm/include/debug/8250.S
> @@ -0,0 +1,27 @@
> + * Copyright (c) 2011 Picochip Ltd., Jamie Iles
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + *
> + * Derived from arch/arm/mach-davinci/include/mach/debug-macro.S to use 32-bit
> + * accesses to the 8250.
> + */
The APB on picoxcell only supports 32-bit accesses so we have to use
32-bit accesses for that platform, but others may need 8-bit accesses,
so naming this 8250_32.S may be more appropriate?
I did try making 8/32 bit accesses acompile-time configuration and
sharing with other platforms before but it looked a bit messy.
Acked-by: Jamie Iles <jamie at jamieiles.com>
More information about the linux-arm-kernel