STRUCT ROCKCHIP_CPUCLK_REG_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this is struct rockchip_cpuclk_reg_data β€” literally the register offsets and masks of the cpuclock, and yes she's got range πŸ’…

Real talk, here's what's inside:

  • @core_reg[] β€” the register offset of the cores setting register, no cap
  • @div_core_shift[] β€” the cores divider offset used to divide the pll value ✨
  • @div_core_mask[] β€” the cores divider mask πŸŽ€

that's it that's the vibe. bestie this is your struct 🌸

just so we're clear, this page lives in the Kernel API Manual, section 9 β€” ikyk πŸ’œ

✨ SYNOPSIS ✨

struct rockchip_cpuclk_reg_data {
    int core_reg[ROCKCHIP_CPUCLK_MAX_CORES];
    u8 div_core_shift[ROCKCHIP_CPUCLK_MAX_CORES];
    u32 div_core_mask[ROCKCHIP_CPUCLK_MAX_CORES];
    int num_cores;
    int mux_core_reg;
    u8 mux_core_alt;
    u8 mux_core_main;
    u8 mux_core_shift;
    u32 mux_core_mask;
 };

not me just pasting the whole struct, she's iconic and every single field stays πŸ”₯


πŸ¦‹ Members πŸ¦‹

  • num_cores β€” the number of cpu cores. that's the whole job and she ate 🫢
  • mux_core_reg β€” the register offset of the cores select parent
  • mux_core_alt β€” the mux value to select the alternate parent πŸ‘€
  • mux_core_main β€” the mux value to select the main parent of core πŸ‘‘
  • mux_core_shift β€” the offset of the core multiplexer
  • mux_core_mask β€” the core multiplexer mask πŸŽ€

all six, all present, we don't leave members behind in this house πŸ πŸ’…


🌈 SEE ALSO 🌈

  • Kernel file ./drivers/clk/rockchip/clk.h
  • struct rockchip_aux_grf(9)
  • struct rockchip_clk_provider(9)
  • struct rockchip_pll_clock(9)

go read those next bestie, they're lowkey obsessed with each other 🧚


and that's the whole page!! it's giving ./drivers/clk/rockchip, dated October 2026, still cute, still canon ✨ mwah πŸ’‹πŸŒΈ

πŸ“¦ where this page comes from