STRUCT CLK_REGMAP_DIV_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct clk_regmap_div_data(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” this is the page for struct clk_regmap_div_data, aka the regmap-backed adjustable divider specific data. she's a little struct with main character energy and we're gonna get into it πŸŽ€


🌸 NAME 🌸

struct clk_regmap_div_data β€” regmap backed adjustable divider specific data

like literally the data you hand over for a divider that lives behind a regmap, no cap 🫢


✨ SYNOPSIS ✨

struct clk_regmap_div_data {
    unsigned int    offset;
    u8 shift;
    u8 width;
    u8 flags;
    const struct clk_regmap_table      *table;
 };

wait, hold up, let me not fumble the bag 😭 β€” the table line is const struct clk_div_table *table;, not the thing I just typed. here it is, correct and iconic:

struct clk_regmap_div_data {
    unsigned int    offset;
    u8 shift;
    u8 width;
    u8 flags;
    const struct clk_div_table      *table;
 };

periodt. that's the whole shape of her πŸ’œ


πŸ¦‹ Members πŸ¦‹

  • offset β€” the offset of the register that controls the divider. like where in the regmap her little register is chilling πŸ“
  • shift β€” the shift to the divider bit field. how far you gotta slide over to find her bits πŸ’«
  • width β€” the width of the divider bit field. how many bits wide the whole vibe is πŸ“
  • table β€” an array of value/divider pairs, and the last entry should have div = 0. yes, should β€” that zero is the little "we're done here" signal at the end, so don't forget it 😀
also flags is right there in the struct up top β€” she's a member, she's just not got her own bullet down here. love that for her πŸ’…

πŸ”₯ Description πŸ”₯

Flags: same as clk_divider except CLK_DIVIDER_HIWORD_MASK, which is literally ignored πŸ™ˆ β€” like not honored, not used, simply not invited to the party. so don't come crying to her about it bestie, she is not checking for it 😭


πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/clk/meson/clk-regmap.h
  • struct clk_regmap(9)
  • struct clk_regmap_gate_data(9)
  • struct clk_regmap_mux_data(9)

go read those next, iykyk πŸ’– the whole meson clk-regmap friend group is slaying honestly 🌈


aaaand that's the page! shoutout to ./drivers/clk/meson for the source, the October 2026 date, and this very struct clk_regmap_div_data(9) footer moment β€” mwah, stan, bye bestie πŸ“πŸ§šβœ¨

πŸ“¦ where this page comes from