[PATCH] mach-iop32x/ Add nec ns-50 / ApplianceWare sanmina support

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Sep 24 17:59:15 EDT 2009


On Wed, Sep 23, 2009 at 09:48:11PM +0200, Arnaud Patard wrote:
> +static struct plat_serial8250_port sanmina_serial_port[] = {
> +	{
> +		.mapbase	= IQ31244_UART,
> +		.membase	= (char *)IQ31244_UART,

This can't be right.

> +		.irq		= IRQ_IOP32X_XINT3,
> +		.flags		= UPF_SKIP_TEST | UPF_SHARE_IRQ,
> +		.iotype		= UPIO_MEM,
> +		.regshift	= 0,
> +		.uartclk	= 14745600,
> +	},
> +	{ },
> +};
> +
> +static struct resource sanmina_uart_resource = {
> +	.start		= IQ31244_UART,
> +	.end		= IQ31244_UART + 0x3f,

and neither can this.  Resources are bus addresses, not virtual addresses.



More information about the linux-arm-kernel mailing list