linux/drivers/clk/at91
Claudiu Beznea 64c9247b9e clk: at91: clk-generated: pass the id of changeable parent at registration
Pass the ID of changeable parent at registration. This will allow
the scalability of this clock driver with regards to the changeable
parent ID for versions of this IP where changeable parent is not the
last one in the parents list (e.g. SAMA7G5). With this the clock flags
are set to zero in case we have no changeable parent. Also in
clk_generated_best_diff() the *best_diff variable is check against
tmp_diff variable using ">=" operator instead of ">" so that in case
the requested frequency could be obtained using fix parents + gck
dividers but the clock also supports changeable parent to be able
to force the usage of the changeable parent.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/1595403506-8209-11-git-send-email-claudiu.beznea@microchip.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2020-07-24 02:19:08 -07:00
..
Makefile clk: at91: add at91rm9200 pmc driver 2020-03-20 18:18:58 -07:00
at91rm9200.c clk: at91: allow setting all PMC clock parents via DT 2020-05-26 20:22:50 -07:00
at91sam9g45.c clk: at91: fix possible dead lock in new drivers 2020-07-24 02:18:42 -07:00
at91sam9n12.c clk: at91: fix possible dead lock in new drivers 2020-07-24 02:18:42 -07:00
at91sam9rl.c clk: at91: allow setting all PMC clock parents via DT 2020-05-26 20:22:50 -07:00
at91sam9x5.c clk: at91: allow setting all PMC clock parents via DT 2020-05-26 20:22:50 -07:00
at91sam9260.c clk: at91: allow setting all PMC clock parents via DT 2020-05-26 20:22:50 -07:00
clk-audio-pll.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-generated.c clk: at91: clk-generated: pass the id of changeable parent at registration 2020-07-24 02:19:08 -07:00
clk-h32mx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-i2s-mux.c clk: at91: move DT compatibility code to its own file 2018-10-17 10:45:39 -07:00
clk-main.c clk: at91: replace conditional operator with double logical not 2020-07-24 02:19:08 -07:00
clk-master.c clk: at91: replace conditional operator with double logical not 2020-07-24 02:19:08 -07:00
clk-peripheral.c clk: at91: replace conditional operator with double logical not 2020-07-24 02:19:08 -07:00
clk-pll.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-plldiv.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-programmable.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-sam9x60-pll.c clk: at91: sam9x60-pll: use frac when setting frequency 2020-07-24 02:18:47 -07:00
clk-slow.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-smd.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-system.c clk: at91: replace conditional operator with double logical not 2020-07-24 02:19:08 -07:00
clk-usb.c clk: at91: usb: introduce num_parents in driver's structure 2020-02-12 15:31:47 -08:00
clk-utmi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
dt-compat.c clk: at91: clk-generated: pass the id of changeable parent at registration 2020-07-24 02:19:08 -07:00
pmc.c clk: at91: allow setting PCKx parent via DT 2020-05-26 20:22:43 -07:00
pmc.h clk: at91: clk-generated: pass the id of changeable parent at registration 2020-07-24 02:19:08 -07:00
sam9x60.c clk: at91: clk-generated: pass the id of changeable parent at registration 2020-07-24 02:19:08 -07:00
sama5d2.c clk: at91: clk-generated: pass the id of changeable parent at registration 2020-07-24 02:19:08 -07:00
sama5d3.c clk: at91: fix possible dead lock in new drivers 2020-07-24 02:18:42 -07:00
sama5d4.c clk: at91: allow setting all PMC clock parents via DT 2020-05-26 20:22:50 -07:00
sckc.c clk: at91: sckc: register slow_rc with accuracy option 2020-07-24 02:19:08 -07:00