]> www.infradead.org Git - users/hch/block.git/commit
clk: clk-loongson2: Refactor driver for adding new platforms
authorBinbin Zhou <zhoubinbin@loongson.cn>
Thu, 11 Apr 2024 02:58:07 +0000 (10:58 +0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 11 Apr 2024 07:30:00 +0000 (00:30 -0700)
commit9796ec0bd04bb0e70487127d44949ca0554df5d3
tree5d0799d1a4dc8f4e57d87bdb5ef58832cdbc12cb
parent0b1bfd15f3f9ffb1e36c88861e9ada3f58ccb234
clk: clk-loongson2: Refactor driver for adding new platforms

The driver only supported loongson-2K1000 at first, but the clock
structure of loongson-2K0500 and loongson-2K2000 are actually similar,
and I tried to refactor the whole driver to adjust to the addition of
the new platform.

Briefly, I have divided all clocks into three categories according to
their properties and their parent clocks: Independent PLLs, clocks based
on frequency scales, and clock dividers.

Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Link: https://lore.kernel.org/r/fb020d1ca19e6f4cdcc95c87b2748869ca76b8ec.1712731524.git.zhoubinbin@loongson.cn
Acked-by: Huacai Chen <chenhuacai@loongson.cn>
[sboyd@kernel.org: Drop clk.h include]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-loongson2.c