Re: [PATCHv2 1/9] at91: provide macb clks with "pclk" and "hclk" name
From: Jamie Iles <hidden>
Date: 2011-03-15 12:44:16
Also in:
linux-arm-kernel
On Tue, Mar 15, 2011 at 01:35:39PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
On 10:14 Tue 15 Mar , Jamie Iles wrote:quoted
The macb driver expects clocks with the names "pclk" and "hclk". We currently provide "macb_clk" but to fit in line with other architectures (namely AVR32), provide "pclk" and a fake "hclk". Cc: Jean-Christophe PLAGNIOL-VILLARD <redacted> Signed-off-by: Jamie Iles <redacted> --- arch/arm/mach-at91/at572d940hf.c | 8 +++++++- arch/arm/mach-at91/at91cap9.c | 8 +++++++- arch/arm/mach-at91/at91sam9260.c | 8 +++++++- arch/arm/mach-at91/at91sam9263.c | 8 +++++++- arch/arm/mach-at91/at91sam9g45.c | 8 +++++++- 5 files changed, 35 insertions(+), 5 deletions(-)diff --git a/arch/arm/mach-at91/at572d940hf.c b/arch/arm/mach-at91/at572d940hf.c index a6b9c68..9b3a37e 100644 --- a/arch/arm/mach-at91/at572d940hf.c +++ b/arch/arm/mach-at91/at572d940hf.c@@ -71,10 +71,15 @@ static struct clk pioC_clk = { .type = CLK_TYPE_PERIPHERAL, }; static struct clk macb_clk = { - .name = "macb_clk", + .name = "pclk", .pmc_mask = 1 << AT572D940HF_ID_EMAC, .type = CLK_TYPE_PERIPHERAL, }; +static struct clk macb_hclk = { + .name = "hclk", + .pmc_mask = 0, + .type = CLK_TYPE_PERIPHERAL, +};for the fake clock you must specify the parent as macb_clk take a look on the tcb1_clk for the 9g45
Ok, will do. Thanks for the pointer! Jamie