omap2_prm_i...set_asserted(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… omap2_prm_is_hardreset_asserted(9) β€” like, the Kernel API Manual era πŸŽ€

okay bestie, so this one is a little function from the Kernel API Manual and it's literally just here to check a vibe β€” specifically, is that hardware reset line asserted or not? no cap, that's the whole gig. let's get into it ✨


✨ NAME ✨

omap2_prm_is_hardreset_asserted β€” reads the HW reset line state of the submodules that live inside the hwmod module 🫢


🌸 SYNOPSIS 🌸

int omap2_prm_is_hardreset_asserted (u8 shift , u8 part , s16 prm_mod ,
       u16 offset );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • shift β€” the register bit shift that points at the reset line you wanna check πŸ‘€ like, this is the one that actually matters for finding your line.
  • part β€” the PRM partition. but bestie, it's ignored for OMAP2 πŸ’€ don't stress about it there.
  • prm_mod β€” the PRM submodule base, e.g. CORE_MOD πŸ’–
  • offset β€” the register offset. also ignored for OMAP2 πŸ™ˆ so yeah, two of these four are just along for the ride on OMAP2.

πŸ’œ DESCRIPTION πŸ’œ

okay so real talk, this returns 1 if the (sub)module hardreset line is currently asserted, and 0 if the (sub)module hardreset line is not currently asserted. slay, simple.

but watch out β€” it returns -EINVAL if you call it while running on a non-OMAP2/3 chip 😭 so like, do a vibe check on your chip first, fr fr.


🌈 SEE ALSO 🌈


and that's the whole page, bestie!! πŸ“ this lil icon came out of ./arch/arm/mach-omap2 and it's dated October 2026 β€” mwah, go check your reset lines, ily πŸ’…πŸ’–πŸ§š

πŸ“¦ where this page comes from