[PATCH 5/7 v3] Basic IO mappings for mach-tcc8k

Hans J. Koch hjk at linutronix.de
Sat Mar 27 14:42:13 EDT 2010


On Sat, Mar 27, 2010 at 07:06:43PM +0100, Hans J. Koch wrote:
> Map the IO ranges of TCC8xxx peripherals.
> 
> Signed-off-by: "Hans J. Koch" <hjk at linutronix.de>
> ---
> +
> +#if 0
> +/*
> + * ----------------------------------------------------------------------------
> + * I/O mapping
> + * ----------------------------------------------------------------------------
> + */
> +
> +#define PCIO_BASE	0
> +
> +/* Address Map of Internal Peripherials (Base 0x80000000) */
> +#define IO_PHYS_A			0x80000000
> +#define IO_OFFSET_A			0x70000000 /* Virtual IO = 0xF0000000 */
> +#define IO_SIZE_A			0x100000
> +#define IO_VIRT_A			(IO_PHYS + IO_OFFSET)
> +#define IO_ADDRESS_A(pa)	((pa) + IO_OFFSET)
> +#define IO_P2V_A(pa)		((pa) + IO_OFFSET)
> +#define IO_V2P_A(va)		((va) - IO_OFFSET)
> +
> +/* Address Map of Internal Peripherials (Base 0x90000000) */
> +#define IO_PHYS_B			0x90000000
> +#define IO_OFFSET_B			0x61000000 /* Virtual IO = 0xF1000000 */
> +#define IO_SIZE_B			0x100000
> +#define IO_VIRT_B			(IO_PHYS + IO_OFFSET)
> +#define IO_ADDRESS_B(pa)	((pa) + IO_OFFSET)
> +#define IO_P2V_B(pa)		((pa) + IO_OFFSET)
> +#define IO_V2P_B(va)		((va) - IO_OFFSET)
> +#endif
> +
> +#endif

Dammit. I #if 0'ed these for a compile test and forgot to remove these lines
later. Will fix in the next version.

Thanks,
Hans



More information about the linux-arm-kernel mailing list