prcmu_abb_write_masked(9)
π prcmu_abb_write_masked π
okay so this is a page from the Kernel API Manual, and it's about prcmu_abb_write_masked β literally the function that writes masked register value(s) to the ABB. stay with me bestie, it's actually not that deep π«Ά
β¨ SYNOPSIS β¨
int prcmu_abb_write_masked (u8 slave , u8 reg , u8 *value , u8 *mask ,
u8 size );
like, yes, that's a lot of u8s, but we'll get through it together π
π ARGUMENTS π
slaveβ the I2C slave address. it's giving "who am I talking to" energy.regβ the (start) register address. the starting point, the main character of the address space.valueβ the value(s) you wanna write. your actual payload, slay.maskβ the mask(s) to use. this is the vibe check for your bits.sizeβ the number of registers to write. count 'em.
π¦ DESCRIPTION π¦
So what it does: writes masked register value(s) to the ABB. periodt. π₯
For each value, only the bits set to 1 in the corresponding mask will be written. the other bits are not changed β they stay exactly as they were, no touchy π. so like, the mask is literally choosing which bits get to come to the party π
ngl,sizehas to be1for the current firmware version. that's not a suggestion, bestie, that's the rule π
π SEE ALSO π
the kernel file ./drivers/mfd/db8500-prcmu.c and, honestly, a whole friend group of functions:
prcmu_set_rc_a2p(9)prcmu_get_rc_p2a(9)prcmu_get_xp70_current_state(9)prcmu_config_clkout(9)db8500_prcmu_set_arm_opp(9)db8500_prcmu_get_arm_opp(9)db8500_prcmu_get_ddr_opp(9)db8500_prcmu_set_ape_opp(9)db8500_prcmu_get_ape_opp(9)db8500_prcmu_request_ape_opp_100_voltage(9)prcmu_release_usb_wakeup_state(9)db8500_prcmu_set_epod(9)prcmu_configure_auto_pm(9)db8500_prcmu_request_clock(9)prcmu_abb_read(9)prcmu_abb_write(9)prcmu_ac_wake_req(9)prcmu_ac_sleep_req(9)db8500_prcmu_system_reset(9)db8500_prcmu_get_reset_code(9)db8500_prcmu_modem_reset(9)
and that's the whole page, bestie π this masterpiece lives in ./drivers/mfd and it's dated October 2026 β future icon behavior, fr fr. see u in the next prcmu_abb_write_masked(9) π§β
π¦ 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