Repository navigation
Commit 89a5ddc
committed
clk: Add of_clk_hw_register() API for early clk drivers
In some circumstances drivers register clks early and don't have access
to a struct device because the device model isn't initialized yet. Add
an API to let drivers register clks associated with a struct device_node
so that these drivers can participate in getting parent clks through DT.
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Jeffrey Hugo <jhugo@codeaurora.org>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Rob Herring <robh@kernel.org>
Tested-by: Jeffrey Hugo <jhugo@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>1 parent 1b83392 commit 89a5ddc
2 files changed
Lines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
3313 | 3314 | | |
3314 | 3315 | | |
3315 | 3316 | | |
3316 | | - | |
| 3317 | + | |
| 3318 | + | |
3317 | 3319 | | |
3318 | 3320 | | |
3319 | 3321 | | |
| |||
3339 | 3341 | | |
3340 | 3342 | | |
3341 | 3343 | | |
| 3344 | + | |
3342 | 3345 | | |
3343 | 3346 | | |
3344 | 3347 | | |
| |||
3429 | 3432 | | |
3430 | 3433 | | |
3431 | 3434 | | |
3432 | | - | |
| 3435 | + | |
3433 | 3436 | | |
3434 | 3437 | | |
3435 | 3438 | | |
| |||
3445 | 3448 | | |
3446 | 3449 | | |
3447 | 3450 | | |
3448 | | - | |
| 3451 | + | |
3449 | 3452 | | |
3450 | 3453 | | |
3451 | 3454 | | |
| 3455 | + | |
| 3456 | + | |
| 3457 | + | |
| 3458 | + | |
| 3459 | + | |
| 3460 | + | |
| 3461 | + | |
| 3462 | + | |
| 3463 | + | |
| 3464 | + | |
| 3465 | + | |
| 3466 | + | |
| 3467 | + | |
| 3468 | + | |
| 3469 | + | |
| 3470 | + | |
| 3471 | + | |
3452 | 3472 | | |
3453 | 3473 | | |
3454 | 3474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
| 776 | + | |
776 | 777 | | |
777 | 778 | | |
778 | 779 | | |
| |||
0 commit comments