From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felipe Balbi Subject: Re: [RFC][PATCH 2/3] ARM:OMAP4 iommu:add omap4 support in iommu Date: Fri, 24 Jul 2009 21:27:02 +0300 Message-ID: <20090724182702.GA10206@nokia.com> References: <8F7AF80515AF0D4D93307E594F3CB40E3A8CAD44@dlee03.ent.ti.com> Reply-To: felipe.balbi@nokia.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from smtp.nokia.com ([192.100.122.233]:43022 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753614AbZGXS1H (ORCPT ); Fri, 24 Jul 2009 14:27:07 -0400 Content-Disposition: inline In-Reply-To: <8F7AF80515AF0D4D93307E594F3CB40E3A8CAD44@dlee03.ent.ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: "ext Kanigeri, Hari" Cc: "tony@atomide.com" , "Doyu Hiroshi (Nokia-D/Helsinki)" , "linux-omap@vger.kernel.org" , "Gupta, Ramesh" , "rmk@arm.linux.org.uk" , "Pasam, Vijay" On Fri, Jul 24, 2009 at 07:22:32PM +0200, ext Kanigeri, Hari wrote: > This patch adds omap4 support in iommu > module. This creates OMAP4 platform specific file > for iommu and defines the Ducati MMU fault interrupt. > > Signed-off-by: Hari Kanigeri > --- > arch/arm/mach-omap2/omap4-iommu.c | 112 ++++++++++++++++++++++++++++++++ > arch/arm/plat-omap/include/mach/irqs.h | 2 +- > 2 files changed, 113 insertions(+), 1 deletions(-) > create mode 100644 arch/arm/mach-omap2/omap4-iommu.c > > diff --git a/arch/arm/mach-omap2/omap4-iommu.c b/arch/arm/mach-omap2/omap4-iommu.c > new file mode 100644 > index 0000000..5a782df > --- /dev/null > +++ b/arch/arm/mach-omap2/omap4-iommu.c > @@ -0,0 +1,112 @@ > +/* > + * omap iommu: omap4 device registration > + * > + * Copyright (C) 2009-2010 Nokia Corporation > + * > + * Written by Hari Kanigeri > + * > + * Added support for OMAP4. This is based on original file > + * omap3-iommu.c > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. > + */ > + > +#include > + > +#include > +#include > + > +#define OMAP4_MMU1_BASE 0x55082000 > +#define OMAP4_MMU2_BASE 0x4A066000 > + > +#define OMAP4_MMU1_IRQ INT_44XX_DUCATI_MMU_IRQ > +#define OMAP4_MMU2_IRQ INT_44XX_DSP_MMU > + > + > + > +static unsigned long iommu_base[] __initdata = { > + OMAP4_MMU1_BASE, > + OMAP4_MMU2_BASE, > +}; > + > +static int iommu_irq[] __initdata = { > + OMAP4_MMU1_IRQ, > + OMAP4_MMU2_IRQ, > +}; these two looks really odd :-s > + > +static const struct iommu_platform_data omap4_iommu_pdata[] __initconst = { > + { > + .name = "ducati", > + .nr_tlb_entries = 32, > + .clk_name = "ducati_ick", passing clk names should be avoided. use clkdev. > + }, > +#if defined(CONFIG_MPU_TESLA_IOMMU) this ifdef looks odd. -- balbi