From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Dietrich Subject: Re: Tegra board file deprecation schedule Date: Sun, 29 Apr 2012 20:11:56 +0200 Message-ID: <1388911.4olGsS8Z0g@ax5200p> References: <4F9B0E7C.1060408@wwwdotorg.org> <6014194.Op4vnW6Cge@ax5200p> <20120428213456.GD27792@n2100.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <20120428213456.GD27792-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Russell King - ARM Linux Cc: Olof Johansson , "linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Colin Cross , Thierry Reding , ARM kernel mailing list , Stephen Warren List-Id: linux-tegra@vger.kernel.org On Saturday 28 April 2012 22:34:56 Russell King - ARM Linux wrote: > On Sat, Apr 28, 2012 at 06:09:32PM +0200, Marc Dietrich wrote: > > Another (maybe a bit off-topic) thing that puzzels me is the how to assign > > the clock to the nvec. > > What's the nvec? it is the embedded controller used on many first gen tegra2 boards (drivers/staging/nvec). Do you remember commit 55dc6ee7 ? > > The device needs the clock (tegra-i2c.2) but there is no sane way to get > > it. I was thinking to add an device name alias (nvec = tegra-i2c.2) to > > the board file so I can use clk_get(&pdev->dev, NULL) instead of > > clk_get_sys which seems to be unwanted. > > clk_get() is preferred in drivers which have struct device's to get them. > And if you know the device name, then I see no problem with the aliasing > approach. I'm just looking for a way to use clk_get if two devices, tegra-i2c and nvec (or tegra-i2c-slave in the future) share the same clock. Marc