File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Documentation/devicetree/bindings/pci Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ Required properties:
35
35
36
36
Optional properties:
37
37
- dma-coherent: present if DMA operations are coherent
38
+ - clocks: Input clock specifier. Refer to common clock bindings
38
39
39
40
Example:
40
41
++++++++
Original file line number Diff line number Diff line change 6
6
* (C) Copyright 2014 - 2015, Xilinx, Inc.
7
7
*/
8
8
9
+ #include <linux/clk.h>
9
10
#include <linux/delay.h>
10
11
#include <linux/interrupt.h>
11
12
#include <linux/irq.h>
@@ -169,6 +170,7 @@ struct nwl_pcie {
169
170
u8 last_busno ;
170
171
struct nwl_msi msi ;
171
172
struct irq_domain * legacy_irq_domain ;
173
+ struct clk * clk ;
172
174
raw_spinlock_t leg_mask_lock ;
173
175
};
174
176
@@ -816,6 +818,16 @@ static int nwl_pcie_probe(struct platform_device *pdev)
816
818
return err ;
817
819
}
818
820
821
+ pcie -> clk = devm_clk_get (dev , NULL );
822
+ if (IS_ERR (pcie -> clk ))
823
+ return PTR_ERR (pcie -> clk );
824
+
825
+ err = clk_prepare_enable (pcie -> clk );
826
+ if (err ) {
827
+ dev_err (dev , "can't enable PCIe ref clock\n" );
828
+ return err ;
829
+ }
830
+
819
831
err = nwl_pcie_bridge_init (pcie );
820
832
if (err ) {
821
833
dev_err (dev , "HW Initialization failed\n" );
You can’t perform that action at this time.
0 commit comments