Skip to content

Commit 4d8fb49

Browse files
miquelraynalbebarino
authored andcommitted
clk: mvebu: armada-37xx-periph: add PCIe gated clock
The PCIe clock is a gated clock which has the same source as GbE0 (both IPs share a set of registers). This source clock is called 'gbe_core' in the driver. Signed-off-by: Miquel Raynal <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 54ecb8f commit 4d8fb49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/clk/mvebu/armada-37xx-periph.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ PERIPH_CLK_GATE_DIV(gbe_bm, 12, DIV_SEL1, 0, clk_table1);
303303
PERIPH_CLK_FULL_DD(sdio, 11, 14, DIV_SEL0, DIV_SEL0, 3, 6);
304304
PERIPH_CLK_FULL_DD(usb32_usb2_sys, 16, 16, DIV_SEL0, DIV_SEL0, 9, 12);
305305
PERIPH_CLK_FULL_DD(usb32_ss_sys, 17, 18, DIV_SEL0, DIV_SEL0, 15, 18);
306+
static PERIPH_GATE(pcie, 14);
306307

307308
static struct clk_periph_data data_sb[] = {
308309
REF_CLK_MUX_DD(gbe_50),
@@ -318,6 +319,7 @@ static struct clk_periph_data data_sb[] = {
318319
REF_CLK_FULL_DD(sdio),
319320
REF_CLK_FULL_DD(usb32_usb2_sys),
320321
REF_CLK_FULL_DD(usb32_ss_sys),
322+
REF_CLK_GATE(pcie, "gbe_core"),
321323
{ },
322324
};
323325

0 commit comments

Comments
 (0)