ENUM ROMCODE_READ(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 from ApExecute to ApDeepSleep. the little "see you in a bit" transition πŸŒ™
  • END_DS β€” set when the ApDeepSleep power state has been reached, coming from the ApExecute state. like, we're here, we made it ✨
  • DS_TO_FS β€” set when the power state is going from ApDeepSleep to ApExecute. bestie is waking up β˜€οΈ
  • END_FS β€” set when the ApExecute power state has been reached, coming from the ApDeepSleep state. awake era confirmed πŸ’…
  • SWR β€” set when the power state is going to ApReset. buckle up, reset moment πŸ”₯
  • END_SWR β€” set when the xp70 has finished executing the ApReset actions 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