[PATCH 05/07] Basic IO mappings for mach-tcc8k

Hans J. Koch hjk at linutronix.de
Mon Mar 22 18:28:38 EDT 2010


On Mon, Mar 22, 2010 at 08:27:49PM +0100, Hans J. Koch wrote:
> Map the IO ranges of TCC8xxx peripherals.
> 
> Signed-off-by: "Hans J. Koch" <hjk at linutronix.de>
> ---
>  arch/arm/mach-tcc8k/Makefile        |    2 +-
>  arch/arm/mach-tcc8k/io.c            |   82 +++++++++++++++++++++++++++++++++++
>  arch/arm/plat-tcc/include/mach/io.h |   53 ++++++++++++++++++++++
>  3 files changed, 136 insertions(+), 1 deletions(-)
>  create mode 100644 arch/arm/mach-tcc8k/io.c
>  create mode 100644 arch/arm/plat-tcc/include/mach/io.h
> 
> diff --git a/arch/arm/mach-tcc8k/Makefile b/arch/arm/mach-tcc8k/Makefile
> index 5673868..09552e2 100644
> --- a/arch/arm/mach-tcc8k/Makefile
> +++ b/arch/arm/mach-tcc8k/Makefile
> @@ -3,5 +3,5 @@
>  #
>  
>  # Common support
> -obj-y += clock.o irq.o time.o
> +obj-y += clock.o irq.o time.o io.o
>  
> diff --git a/arch/arm/mach-tcc8k/io.c b/arch/arm/mach-tcc8k/io.c
> new file mode 100644
> index 0000000..1187fca
> --- /dev/null
> +++ b/arch/arm/mach-tcc8k/io.c
[...]
> +
> +/*
> + * Maps common IO regions for tcc8k.
> + *
> + */
> +void __init tcc8k_map_common_io(void)
> +{
> +	iotable_init(tcc8k_io_desc, ARRAY_SIZE(tcc8k_io_desc));
> +	local_flush_tlb_all();
> +	flush_cache_all();

Reviewing my own patch...
These last to "flush" lines are probably crap, at least unneeded.
I thought I threw them out, but somehow they crept in again.
Will test and fix.

Hans

> +}




More information about the linux-arm-kernel mailing list