]> git.ipfire.org Git - thirdparty/u-boot.git/commit
clk: mediatek: mt8188: refactor driver to improve readability
authorJulien Stephan <jstephan@baylibre.com>
Mon, 2 Feb 2026 12:41:53 +0000 (13:41 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 18 Feb 2026 17:59:32 +0000 (11:59 -0600)
commit0cdd01dbde2a686ae3891c8bd79dd75d686fcbab
tree637ce63e2e8a597bde81949f2d22bd61752e05a8
parent2797fa3efd88fb8e4661093aab1958799a4696f0
clk: mediatek: mt8188: refactor driver to improve readability

Refactor some part of the driver to improve readability and future
additions:

- use CLK_TOP_NR_CLK for added clocks
- rename the id map to make it more clear that the map applies to top
  clocks only
- refactor the id map to improve readability
- xtal2_rate is only used for PLL clocks, so only the apmixedsys clock
  tree needs it. Remove it elsewhere.

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
drivers/clk/mediatek/clk-mt8188.c