omap4_calc_volt_ramp(9)
β¨ omap4_calc_volt_ramp(9) β¨
okay bestie, welcome to the Kernel API Manual β today's main character is omap4_calc_volt_ramp, and she is literally the reason your omap4 doesn't faceplant when the voltage moves. π¦
π NAME π
omap4_calc_volt_ramp β calculates voltage ramping delays on omap4
like, that's her whole job. voltage ramping delays. on omap4. slay. π
πΈ SYNOPSIS πΈ
u32 omap4_calc_volt_ramp (struct voltagedomain *voltdm , u32
voltage_diff );
that's the whole signature, no cap. π«Ά
π ARGUMENTS π
voltdmβ the channel you're calculating values for. like, which voltage domain are we doing math for, bestie? πvoltage_diffβ the voltage difference, measured in microvolts. tiny units, big consequences. β‘
π§ DESCRIPTION π§
okay so here's the vibe: this function calculates the voltage ramp prescaler + counter values for a voltage difference on omap4. that's it, that's the whole task, and she ate. π₯
what you get back is a field value that's suitable for writing to the VOLTSETUP register for a channel, and it comes in this exact format:
- bits[8:9] prescaler
- bits[0:5] counter
the original even says "..." between them, so yes, there's a gap in the middle, that's just how it is. π
for the full lore, see the OMAP4 TRM for reference. iykyk. π
π SEE ALSO π
- Kernel file
./arch/arm/mach-omap2/vc.c struct omap_vc_channel_cfg(9)omap_vc_config_channel(9)omap3_set_i2c_timings(9)omap3_set_off_timings(9)omap4_usec_to_val_scrm(9)omap4_set_timings(9)omap4_vc_i2c_timing_init(9)omap_vc_i2c_init(9)omap_vc_calc_vsel(9)
all of these are her mutuals, fr fr. go read them next. π
and that's the whole page, bestie! π this lil gift came to you from ./arch/arm/mach-omap2, dated October 2026 β iconic source, iconic date, periodt. πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms