File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed 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
@@ -823,6 +825,16 @@ static int nwl_pcie_probe(struct platform_device *pdev)
823
825
return err ;
824
826
}
825
827
828
+ pcie -> clk = devm_clk_get (dev , NULL );
829
+ if (IS_ERR (pcie -> clk ))
830
+ return PTR_ERR (pcie -> clk );
831
+
832
+ err = clk_prepare_enable (pcie -> clk );
833
+ if (err ) {
834
+ dev_err (dev , "can't enable PCIe ref clock\n" );
835
+ return err ;
836
+ }
837
+
826
838
err = nwl_pcie_bridge_init (pcie );
827
839
if (err ) {
828
840
dev_err (dev , "HW Initialization failed\n" );
You can’t perform that action at this time.
0 commit comments