On Thu, 1 Jul 2010, Archit Taneja wrote: > From: Semwal, Sumit <sumit.semwal@xxxxxx> > > Introduce OMAP4 DISPC base address and Secondary LCD Channel registers, use them > in register dumps. > > Signed-off-by: Sumit Semwal <sumit.semwal@xxxxxx> > Signed-off-by: Senthilvadivu Guruswamy <svadivu@xxxxxx> > Signed-off-by: Mukund Mittal <mmittal@xxxxxx> > Signed-off-by: Archit Taneja <archit@xxxxxx> > Signed-off-by: Samreen <samreen@xxxxxx> > --- > drivers/video/omap2/dss/dispc.c | 42 ++++++++++++++++++++++++++++++++++++++- > 1 files changed, 41 insertions(+), 1 deletions(-) > > diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c > index 5ecdc00..08b36d6 > --- a/drivers/video/omap2/dss/dispc.c > +++ b/drivers/video/omap2/dss/dispc.c > @@ -41,9 +41,13 @@ > #include "dss.h" > > /* DISPC */ > +#ifdef CONFIG_ARCH_OMAP4 > +#define DISPC_BASE 0x58001000 > +#define DISPC_SZ_REGS SZ_16K > +#else > #define DISPC_BASE 0x48050400 > - > #define DISPC_SZ_REGS SZ_1K > +#endif This will break multi-OMAP builds. Instead, get the DISPC_BASE at runtime through platform_get_resource*(). - Paul -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html