Message ID | 1352446165-19298-1-git-send-email-horms@verge.net.au |
---|---|
State | New |
Headers | show |
On Friday 09 November 2012, Simon Horman wrote: > Hi Olof, Hi Arnd, > > please consider the following SoC enhancements for 3.8. > > * This series is based on the renesas/soc branch of the arm-soc tree. > There will be a subquent 'SoC2' pull request which is based on this > pull-request and a pull-request for boards. Pulled into next/soc branch on top of the earlier shmobile soc changes. Thanks, Arnd
On Friday 09 November 2012, Simon Horman wrote: > + > +static int fsidiv_set_rate(struct clk *clk, unsigned long rate) > +{ > + u32 val; > + int idx; > + > + idx = (clk->parent->rate / rate) & 0xffff; > + if (idx < 2) > + __raw_writel(0, clk->mapping->base); > + else > + __raw_writel(idx << 16, clk->mapping->base); > + > + return 0; > +} This gives me a new warning about an unused variable "val" now. Arnd
Hello. On 11/09/2012 10:29 AM, Simon Horman wrote: > From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > > ehci-platform driver require these clocks > > Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > Signed-off-by: Simon Horman <horms@verge.net.au> > --- > arch/arm/mach-shmobile/clock-r8a7779.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm/mach-shmobile/clock-r8a7779.c b/arch/arm/mach-shmobile/clock-r8a7779.c > index 24f5a84..4ba4e3c 100644 > --- a/arch/arm/mach-shmobile/clock-r8a7779.c > +++ b/arch/arm/mach-shmobile/clock-r8a7779.c [...] > @@ -153,6 +156,8 @@ static struct clk_lookup lookups[] = { > CLKDEV_CON_ID("peripheral_clk", &div4_clks[DIV4_P]), > > /* MSTP32 clocks */ > + CLKDEV_DEV_ID("ehci-platform.1", &mstp_clks[MSTP101]), /* USB EHCI port2 */ > + CLKDEV_DEV_ID("ehci-platform.0", &mstp_clks[MSTP100]), /* USB EHCI port0/1 */ But how are those used? I don't see clk API support in ehci-platform.c. Are they used via runtime PM? I'm just not familiar enough with it... WBR, Sergei
Hi Sergei > > /* MSTP32 clocks */ > > + CLKDEV_DEV_ID("ehci-platform.1", &mstp_clks[MSTP101]), /* USB EHCI port2 */ > > + CLKDEV_DEV_ID("ehci-platform.0", &mstp_clks[MSTP100]), /* USB EHCI port0/1 */ > > But how are those used? I don't see clk API support in ehci-platform.c. > Are they used via runtime PM? I'm just not familiar enough with it... Yes exactry - board-marzen.c :: usb_power_on() - clock-r8a7779.c :: mstp_clks[] Best regards --- Kuninori Morimoto