omap_hwmod_fix_mpu_rt_idx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… omap_hwmod_fix_mpu_rt_idx β€” Kernel API Manual, bestie edition ✨

okay so real talk, this one lives in the Kernel API Manual (section 9, the big-brained kernel-dev section), and it's one of those tiny little fixer-upper functions that exists purely because hardware is messy. let's get into it 🫢


🌸 NAME 🌸

omap_hwmod_fix_mpu_rt_idx β€” the little glow-up function that fixes up mpu_rt_idx register offsets ✨


πŸŽ€ SYNOPSIS πŸŽ€

void omap_hwmod_fix_mpu_rt_idx (struct omap_hwmod *oh , struct
device_node *np , struct resource *res );

it returns void, so like… no return value, no drama, she just goes in and does the thing πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • oh β€” a struct omap_hwmod *. that's the hwmod in question, the main character of this whole situation πŸ‘‘
  • np β€” a struct device_node *. the device tree node, iykyk 🌳
  • res β€” struct resource *, and ngl the original docs literally say -- undescribed -- 😭 so like… we don't have a description for this one, and I'm not about to invent one, that's not the vibe. we move πŸ’€

πŸ’– DESCRIPTION πŸ’–

okay so what she does: she fixes up module register offsets for modules that have an mpu_rt_idx. that's literally the whole job. lowkey iconic for how specific it is πŸ”₯

and it's only needed for cpsw when the interconnect target module is defined in device tree while still using legacy hwmod platform data for the rev, sysc and syss registers. yes, that's a very specific crossover situation β€” device tree and legacy platform data coexisting, it's giving "two eras of kernel code holding hands" 🌈

🚨 important note, fr fr: this can be removed when all cpsw hwmod platform data has been dropped. so she's on borrowed time, besties. she's a transitional icon, a bridge function, and one day she will be deleted πŸ’€πŸ•ŠοΈ

⭐ SEE ALSO ⭐

there's a whole group chat of related stuff, and yes, I'm listing every single one because we don't skip people here πŸ’œ

kernel file: ./arch/arm/mach-omap2/omap_hwmod.c


and that's the whole page, bestie πŸŽ€ she's short, she's sweet, she's a temporary shim and she knows it. this cutie came from ./arch/arm/mach-omap2, dated October 2026 β€” mwah, love that for her πŸ’‹βœ¨πŸŒΈ

πŸ“¦ where this page comes from