Skip to content

Commit

Permalink
ARM: at91: sama5d3: provide the correct pclk for each macb/gmac
Browse files Browse the repository at this point in the history
today as we have possibily 2 clock named pclk we can knwown whick one is going
to be requested by the macb. As the macb need 2 clock pclk and hclk.
On at91 we just need one clock.
So always provide the correct one.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
  • Loading branch information
plagnioj authored and ldesroches committed Jan 30, 2013
1 parent 6fe0792 commit 820f0fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/arm/mach-at91/sama5d3.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,13 @@ static struct clk udphs_clk = {
};
/* gmac only for sama5d33, sama5d34, sama5d35 */
static struct clk macb0_clk = {
.name = "pclk",
.name = "macb0_clk",
.pid = SAMA5D3_ID_GMAC,
.type = CLK_TYPE_PERIPHERAL,
};
/* emac only for sama5d31, sama5d35 */
static struct clk macb1_clk = {
.name = "pclk",
.name = "macb1_clk",
.pid = SAMA5D3_ID_EMAC,
.type = CLK_TYPE_PERIPHERAL,
};
Expand Down Expand Up @@ -317,7 +317,9 @@ static struct clk_lookup periph_clocks_lookups[] = {
CLKDEV_CON_DEV_ID("pclk", "500000.gadget", &udphs_clk),
CLKDEV_CON_DEV_ID("hclk", "500000.gadget", &utmi_clk),
CLKDEV_CON_DEV_ID("hclk", "f0028000.ethernet", &macb0_clk),
CLKDEV_CON_DEV_ID("pclk", "f0028000.ethernet", &macb0_clk),
CLKDEV_CON_DEV_ID("hclk", "f802c000.ethernet", &macb1_clk),
CLKDEV_CON_DEV_ID("pclk", "f802c000.ethernet", &macb1_clk),
CLKDEV_CON_DEV_ID("pclk", "f0008000.ssc", &ssc0_clk),
CLKDEV_CON_DEV_ID("pclk", "f000c000.ssc", &ssc1_clk),
CLKDEV_CON_DEV_ID("can_clk", "f000c000.can", &can0_clk),
Expand Down

0 comments on commit 820f0fe

Please sign in to comment.