lkml.org 
[lkml]   [2012]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/6] ARM: dove: Add pcie clock support
    Date
    As dove now has clock gating control ensure pcie ports grab their
    clocks.

    Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
    ---
    Cc: Russell King <linux@arm.linux.org.uk>
    Cc: Jason Cooper <jason@lakedaemon.net>
    Cc: Andrew Lunn <andrew@lunn.ch>
    Cc: Olof Johansson <olof@lixom.net>
    Cc: Arnd Bergmann <arnd@arndb.de>
    Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux-kernel@vger.kernel.org
    ---
    arch/arm/mach-dove/pcie.c | 5 +++++
    1 file changed, 5 insertions(+)

    diff --git a/arch/arm/mach-dove/pcie.c b/arch/arm/mach-dove/pcie.c
    index bb15b26..0ef4435 100644
    --- a/arch/arm/mach-dove/pcie.c
    +++ b/arch/arm/mach-dove/pcie.c
    @@ -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>
    @@ -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");

    --
    1.7.10.4


    \
     
     \ /
      Last update: 2012-09-25 02:41    [W:0.025 / U:30.904 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site