Messages in this thread | | | Date | Mon, 23 Apr 2012 15:06:46 +0300 | From | Felipe Balbi <> | Subject | Re: [PATCH 1/3] ARM: tegra: Add AHB driver |
| |
Hi,
On Mon, Apr 23, 2012 at 02:37:21PM +0300, Hiroshi DOYU wrote: > +static inline unsigned long gizmo_readl(unsigned long offset) > +{ > + return readl(IO_TO_VIRT(TEGRA_AHB_GIZMO_BASE + offset)); > +} > + > +static inline void gizmo_writel(unsigned long value, unsigned long offset) > +{ > + writel(value, IO_TO_VIRT(TEGRA_AHB_GIZMO_BASE + offset)); > +}
why don't you ioremap() your address and use it as a void __iomem * ?
-- balbi [unhandled content-type:application/pgp-signature] | |