|
17 | 17 |
|
18 | 18 | --- a/drivers/clk/bcm/clk-bcm2835.c
|
19 | 19 | +++ b/drivers/clk/bcm/clk-bcm2835.c
|
20 |
| -@@ -1306,6 +1306,8 @@ static const struct clk_ops bcm2835_vpu_ |
| 20 | +@@ -1336,6 +1336,8 @@ static const struct clk_ops bcm2835_vpu_ |
21 | 21 | .debug_init = bcm2835_clock_debug_init,
|
22 | 22 | };
|
23 | 23 |
|
|
26 | 26 | static struct clk_hw *bcm2835_register_pll(struct bcm2835_cprman *cprman,
|
27 | 27 | const void *data)
|
28 | 28 | {
|
29 |
| -@@ -1323,6 +1325,9 @@ static struct clk_hw *bcm2835_register_p |
| 29 | +@@ -1353,6 +1355,9 @@ static struct clk_hw *bcm2835_register_p |
30 | 30 | init.ops = &bcm2835_pll_clk_ops;
|
31 | 31 | init.flags = pll_data->flags | CLK_IGNORE_UNUSED;
|
32 | 32 |
|
|
36 | 36 | pll = kzalloc(sizeof(*pll), GFP_KERNEL);
|
37 | 37 | if (!pll)
|
38 | 38 | return NULL;
|
39 |
| -@@ -1378,9 +1383,11 @@ bcm2835_register_pll_divider(struct bcm2 |
| 39 | +@@ -1408,9 +1413,11 @@ bcm2835_register_pll_divider(struct bcm2 |
40 | 40 | divider->div.hw.init = &init;
|
41 | 41 | divider->div.table = NULL;
|
42 | 42 |
|
|
51 | 51 | }
|
52 | 52 |
|
53 | 53 | divider->cprman = cprman;
|
54 |
| -@@ -1437,6 +1444,15 @@ static struct clk_hw *bcm2835_register_c |
| 54 | +@@ -1467,6 +1474,15 @@ static struct clk_hw *bcm2835_register_c |
55 | 55 | init.flags = clock_data->flags | CLK_IGNORE_UNUSED;
|
56 | 56 |
|
57 | 57 | /*
|
|
67 | 67 | * Pass the CLK_SET_RATE_PARENT flag if we are allowed to propagate
|
68 | 68 | * rate changes on at least of the parents.
|
69 | 69 | */
|
70 |
| -@@ -2215,6 +2231,8 @@ static const struct bcm2835_clk_desc clk |
| 70 | +@@ -2246,6 +2262,8 @@ static const struct bcm2835_clk_desc clk |
71 | 71 | .ctl_reg = CM_PERIICTL),
|
72 | 72 | };
|
73 | 73 |
|
|
76 | 76 | /*
|
77 | 77 | * Permanently take a reference on the parent of the SDRAM clock.
|
78 | 78 | *
|
79 |
| -@@ -2234,6 +2252,19 @@ static int bcm2835_mark_sdc_parent_criti |
| 79 | +@@ -2265,6 +2283,19 @@ static int bcm2835_mark_sdc_parent_criti |
80 | 80 | return clk_prepare_enable(parent);
|
81 | 81 | }
|
82 | 82 |
|
|
96 | 96 | static int bcm2835_clk_probe(struct platform_device *pdev)
|
97 | 97 | {
|
98 | 98 | struct device *dev = &pdev->dev;
|
99 |
| -@@ -2243,6 +2274,7 @@ static int bcm2835_clk_probe(struct plat |
| 99 | +@@ -2274,6 +2305,7 @@ static int bcm2835_clk_probe(struct plat |
100 | 100 | const size_t asize = ARRAY_SIZE(clk_desc_array);
|
101 | 101 | const struct cprman_plat_data *pdata;
|
102 | 102 | size_t i;
|
103 | 103 | + u32 clk_id;
|
104 | 104 | int ret;
|
105 | 105 |
|
106 | 106 | pdata = of_device_get_match_data(&pdev->dev);
|
107 |
| -@@ -2261,6 +2293,13 @@ static int bcm2835_clk_probe(struct plat |
| 107 | +@@ -2292,6 +2324,13 @@ static int bcm2835_clk_probe(struct plat |
108 | 108 | if (IS_ERR(cprman->regs))
|
109 | 109 | return PTR_ERR(cprman->regs);
|
110 | 110 |
|
|
0 commit comments