device_tree binding for amba bus

2011-05-17 Thread Stephen Neuendorffer
Grant, I've taken a quick look at the arm trace buffer driver (arch/arm/kernel/etm.c). This driver uses the amba bus driver (drivers/amba/bus.c). It appears that this driver does three things: 1) ensures that the clock named apb_pclk is running. 2) ensures that the regulator named vcore is on.

RE: device_tree binding for amba bus

2011-05-17 Thread Stephen Neuendorffer
-Original Message- From: Russell King - ARM Linux [mailto:li...@arm.linux.org.uk] Sent: Tuesday, May 17, 2011 3:42 PM To: Stephen Neuendorffer Cc: grant.lik...@secretlab.ca; devicetree-discuss@lists.ozlabs.org; linux-arm- ker...@lists.infradead.org Subject: Re: device_tree binding

Re: device_tree binding for amba bus

2011-05-17 Thread Russell King - ARM Linux
On Tue, May 17, 2011 at 05:05:12PM -0700, Stephen Neuendorffer wrote: In drivers/amba/bus.c: static int amba_get_enable_pclk(struct amba_device *pcdev) { struct clk *pclk = clk_get(pcdev-dev, apb_pclk); static int amba_get_enable_vcore(struct amba_device *pcdev) { struct

Re: device_tree binding for amba bus

2011-05-17 Thread Grant Likely
On Tue, May 17, 2011 at 6:23 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Tue, May 17, 2011 at 05:05:12PM -0700, Stephen Neuendorffer wrote: In drivers/amba/bus.c: static int amba_get_enable_pclk(struct amba_device *pcdev) {       struct clk *pclk = clk_get(pcdev-dev,