[PATCH 1/7 v2] Introduce plat-tcc

Hans J. Koch hjk at linutronix.de
Sat Mar 27 12:02:47 EDT 2010


On Thu, Mar 25, 2010 at 08:31:07PM +0000, Russell King - ARM Linux wrote:
> On Thu, Mar 25, 2010 at 09:07:48PM +0100, Hans J. Koch wrote:
> > +#define __virt_to_bus(x)	__virt_to_phys(x)
> > +#define __bus_to_virt(x)	__phys_to_virt(x)
> > +#define __pfn_to_bus(x)		__pfn_to_phys(x)
> > +#define __bus_to_pfn(x)		__phys_to_pfn(x)
> 
> You don't need to define any of these.

Right. Removed.

> 
> > diff --git a/arch/arm/plat-tcc/include/mach/vmalloc.h b/arch/arm/plat-tcc/include/mach/vmalloc.h
> > new file mode 100644
> > index 0000000..9635303
> > --- /dev/null
> > +++ b/arch/arm/plat-tcc/include/mach/vmalloc.h
> > @@ -0,0 +1,11 @@
> > +/*
> > + * Author: <linux at telechips.com>
> > + * Created: June 10, 2008
> > + *
> > + * Copyright (C) 2000 Russell King.
> > + * Copyright (C) 2008-2009 Telechips
> > + *
> > + * Licensed under the terms of the GPL v2.
> > + */
> > +#define VMALLOC_END	  (PAGE_OFFSET + 0x10000000)
> 
> Base address of IO rather than something dependent on PAGE_OFFSET?

Fixed.

> 
> > +
> > diff --git a/arch/arm/plat-tcc/system.c b/arch/arm/plat-tcc/system.c
> > new file mode 100644
> > index 0000000..1a33ced
> > --- /dev/null
> > +++ b/arch/arm/plat-tcc/system.c
> > @@ -0,0 +1,24 @@
> > +/*
> > + * System functions for Telechips TCCxxxx SoCs
> > + *
> > + * Copyright (C) Hans J. Koch <hjk at linutronix.de>
> > + *
> > + * Licensed under the terms of the GPL v2.
> > + *
> > + */
> > +
> > +#include <asm/io.h>
> 
> linux/io.h ?

OK.

Thanks,
Hans




More information about the linux-arm-kernel mailing list