ENUM ROMCODE_READ(9)
π enum romcode_read(9) β the Kernel API Manual glow-up π
okay so bestie, welcome to the Kernel API Manual entry for enum romcode_read, which is genuinely one of those little handshake enums that makes the whole power-management friendship work. Sit down, hydrate, let's go π«Ά
β¨ NAME β¨
enum romcode_read β the Romcode message that gets written by XP70 and read by A9 π
iykyk
πΈ SYNOPSIS πΈ
enum romcode_read {
INIT ,
FS_2_DS ,
END_DS ,
DS_TO_FS ,
END_FS ,
SWR ,
END_SWR
};
literally the whole enum, no cap, not one member left out π
π Constants π
these are the members, bestie, and every single one is doing main character energy in the romcode field:
INITβ the init value, used when the romcode field is not used at all. it's the "no thoughts, head empty" starting state πFS_2_DSβ set when the power state is going fromApExecutetoApDeepSleep. the little "see you in a bit" transition πEND_DSβ set when theApDeepSleeppower state has been reached, coming from theApExecutestate. like, we're here, we made it β¨DS_TO_FSβ set when the power state is going fromApDeepSleeptoApExecute. bestie is waking up βοΈEND_FSβ set when theApExecutepower state has been reached, coming from theApDeepSleepstate. awake era confirmed πSWRβ set when the power state is going toApReset. buckle up, reset moment π₯END_SWRβ set when the xp70 has finished executing theApResetactions and is waiting for the romcode acknowledgment to go to self-reset. the "okay I'm done, can I go now" energy π
π¦ SEE ALSO π¦
the whole friend group lives in the kernel file ./include/linux/mfd/db8500-prcmu.h, and honestly the roster is iconic:
enum state(9)enum ret_state(9)enum clk_arm(9)enum clk_gen(9)enum romcode_write(9)enum ap_pwrst(9)enum ap_pwrst_trans(9)enum hw_acc_state(9)enum dvfs_stat(9)enum sva_mmdsp_stat(9)enum sia_mmdsp_stat(9)enum mbox_to_arm_err(9)enum sia_sva_pwr_policy(9)enum auto_enable(9)enum prcmu_power_status(9)enum prcmu_wdog_id(9)enum ape_opp(9)enum arm_opp(9)enum ddr_opp(9)enum ddr_pwrst(9)struct prcmu_auto_pm_config(9)
π that's the whole page, bestie β go read the rest of the header file and slay π
β source path ./include/linux/mfd, version/date October 2026, manual enum romcode_read(9) β mwah, kissing this sign-off goodbye, see u in the group chat ππ§π
π¦ 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