From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benoit Cousson Subject: Re: [PATCH 3/6] OMAP4: hwmod: Enable omap_device build for OMAP4 Date: Fri, 07 May 2010 18:10:40 +0200 Message-ID: <4BE43B80.6030309@ti.com> References: <1273248424-15943-1-git-send-email-b-cousson@ti.com> <1273248424-15943-4-git-send-email-b-cousson@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from comal.ext.ti.com ([198.47.26.152]:54171 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757044Ab0EGQKr (ORCPT ); Fri, 7 May 2010 12:10:47 -0400 In-Reply-To: <1273248424-15943-4-git-send-email-b-cousson@ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: "Cousson, Benoit" Cc: "linux-omap@vger.kernel.org" , "Nayak, Rajendra" , Paul Walmsley On 5/7/2010 6:07 PM, Cousson, Benoit wrote: > From: Rajendra Nayak > > Signed-off-by: Rajendra Nayak > Signed-off-by: Benoit Cousson > Cc: Paul Walmsley > --- > arch/arm/plat-omap/Makefile | 1 + > arch/arm/plat-omap/omap_device.c | 12 ++++++++++++ > 2 files changed, 13 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/plat-omap/Makefile b/arch/arm/plat-omap/Makefile > index 98f0191..9405831 100644 > --- a/arch/arm/plat-omap/Makefile > +++ b/arch/arm/plat-omap/Makefile > @@ -15,6 +15,7 @@ obj-$(CONFIG_ARCH_OMAP16XX) += ocpi.o > # omap_device support (OMAP2+ only at the moment) > obj-$(CONFIG_ARCH_OMAP2) += omap_device.o > obj-$(CONFIG_ARCH_OMAP3) += omap_device.o > +obj-$(CONFIG_ARCH_OMAP4) += omap_device.o > > obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o > obj-$(CONFIG_OMAP_IOMMU) += iommu.o iovmm.o > diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c > index 0f51974..b6144ff 100644 > --- a/arch/arm/plat-omap/omap_device.c > +++ b/arch/arm/plat-omap/omap_device.c > @@ -90,6 +90,18 @@ > #define USE_WAKEUP_LAT 0 > #define IGNORE_WAKEUP_LAT 1 > > +/* XXX this should be moved into a separate file */ > +#if defined(CONFIG_ARCH_OMAP2420) > +# define OMAP_32KSYNCT_BASE 0x48004000 > +#elif defined(CONFIG_ARCH_OMAP2430) > +# define OMAP_32KSYNCT_BASE 0x49020000 > +#elif defined(CONFIG_ARCH_OMAP3430) > +# define OMAP_32KSYNCT_BASE 0x48320000 > +#elif defined(CONFIG_ARCH_OMAP4) > +# define OMAP_32KSYNCT_BASE 0x4a304000 > +#else > +# error Unknown OMAP device > +#endif > > #define OMAP_DEVICE_MAGIC 0xf00dcafe > Oops, I forgot to remove that part. Will send an update in a couple of seconds... Benoit