]> Gentwo Git Trees - linux/.git/commit
clk: divider: Introduce CLK_DIVIDER_EVEN_INTEGERS flag
authorThéo Lebrun <theo.lebrun@bootlin.com>
Mon, 7 Oct 2024 13:49:18 +0000 (15:49 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 17 Oct 2024 18:16:01 +0000 (11:16 -0700)
commit6a136805e3c1532d2414b298c024429943cfd482
tree90e8d861c4d573c7aa5a13efa0e4e672f69d322f
parentbae7aff5818b89d5d72f6ab0135c8faf3fa54318
clk: divider: Introduce CLK_DIVIDER_EVEN_INTEGERS flag

Add CLK_DIVIDER_EVEN_INTEGERS flag to support divisor of 2, 4, 6, etc.
The same divisor can be done using a table, which would be big and
wasteful for a clock dividor of width 8 (256 entries).

Require increasing flags size from u8 to u16 because
CLK_DIVIDER_EVEN_INTEGERS is the eighth flag. u16 is used inside struct
clk_divider; `unsigned long` is used for function arguments.

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Link: https://lore.kernel.org/r/20241007-mbly-clk-v5-3-e9d8994269cb@bootlin.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-divider.c
include/linux/clk-provider.h