Skip to content

Commit

Permalink
ARM: dove: Add pcie clock support
Browse files Browse the repository at this point in the history
As dove now has clock gating control ensure pcie ports grab their
clocks.

Signed-off-by: Sebastian Hesselbarth <[email protected]>
Signed-off-by: Jason Cooper <[email protected]>
  • Loading branch information
shesselba authored and Jason Cooper committed Oct 17, 2012
1 parent ddffeb8 commit 529b89e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/arm/mach-dove/pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/clk.h>
#include <video/vga.h>
#include <asm/mach/pci.h>
#include <asm/mach/arch.h>
Expand Down Expand Up @@ -188,6 +189,10 @@ static void __init add_pcie_port(int index, void __iomem *base)

if (orion_pcie_link_up(base)) {
struct pcie_port *pp = &pcie_port[num_pcie_ports++];
struct clk *clk = clk_get_sys("pcie", (index ? "1" : "0"));

if (!IS_ERR(clk))
clk_prepare_enable(clk);

printk(KERN_INFO "link up\n");

Expand Down

0 comments on commit 529b89e

Please sign in to comment.