Re: [PATCH v2 2/3] ARM: tegra: Add SMMU enabler in AHB |
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH v2 2/3] ARM: tegra: Add SMMU enabler in AHB
- From: Hiroshi Doyu <hdoyu@xxxxxxxxxx>
- Date: Tue, 24 Apr 2012 14:39:30 +0200
- Accept-language: en-US
- Acceptlanguage: en-US
- Cc: "linux-tegra@xxxxxxxxxxxxxxx" <linux-tegra@xxxxxxxxxxxxxxx>, "ccross@xxxxxxxxxxx" <ccross@xxxxxxxxxxx>, "olof@xxxxxxxxx" <olof@xxxxxxxxx>, "swarren@xxxxxxxxxxxxx" <swarren@xxxxxxxxxxxxx>, "linux@xxxxxxxxxxxxxxxx" <linux@xxxxxxxxxxxxxxxx>, "tony@xxxxxxxxxxx" <tony@xxxxxxxxxxx>, "hsweeten@xxxxxxxxxxxxxxxxxxx" <hsweeten@xxxxxxxxxxxxxxxxxxx>, "jamie@xxxxxxxxxxxxx" <jamie@xxxxxxxxxxxxx>, "rob.herring@xxxxxxxxxxx" <rob.herring@xxxxxxxxxxx>, "linux-arm-kernel@xxxxxxxxxxxxxxxxxxx" <linux-arm-kernel@xxxxxxxxxxxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>
- In-reply-to: <20120424123248.GG8444@arwen.pp.htv.fi>
- Thread-index: Ac0iF0xL8M7hTabnRUK8HQDzXNNXbg==
- Thread-topic: [PATCH v2 2/3] ARM: tegra: Add SMMU enabler in AHB
From: Felipe Balbi <balbi@xxxxxx>
Subject: Re: [PATCH v2 2/3] ARM: tegra: Add SMMU enabler in AHB
Date: Tue, 24 Apr 2012 14:32:52 +0200
Message-ID: <20120424123248.GG8444@xxxxxxxxxxxxxxx>
> * PGP Signed by an unknown key
>
> Hi,
>
> On Tue, Apr 24, 2012 at 03:05:15PM +0300, Hiroshi DOYU wrote:
> > @@ -95,6 +98,21 @@ static inline void gizmo_writel(unsigned long value, unsigned long offset)
> > writel(value, tegra_ahb->regs + offset);
> > }
> >
> > +#ifdef CONFIG_ARCH_TEGRA_3x_SOC
> > +
> > +void tegra_ahb_enable_smmu(void)
> > +{
> > + unsigned long val;
> > +
> > + val = gizmo_readl(AHB_ARBITRATION_XBAR_CTRL);
> > + val |= AHB_ARBITRATION_XBAR_CTRL_SMMU_INIT_DONE_DONE <<
> > + AHB_ARBITRATION_XBAR_CTRL_SMMU_INIT_DONE_SHIFT;
> > + gizmo_writel(val, AHB_ARBITRATION_XBAR_CTRL);
> > +}
> > +EXPORT_SYMBOL(tegra_ahb_enable_smmu);
>
> ok, so this is the only place where you need that global pointer. Who
> would call this ? Can you do runtime detection of the SoC and enable
> SMMU based on that ?
>
> I mean, will this function always be called for TEGRA 3 SoCs or is there
> another condition to that ?
Only Tegra3 has SMMU.
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[ARM Kernel]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]