STRUCT MMCI_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct mmci_platform_data(9)

okay bestie, welcome to the Kernel API Manual ✨ β€” yes this is the actual manual name, and yes we're gonna get through it together, i promise it's short and honestly kind of iconic.

This one's all about platform configuration for the MMCI block β€” also known as PL180, so if you see that name floating around, same thing, no cap 🫢


✨ NAME ✨

struct mmci_platform_data β€” the platform configuration for the MMCI (also known as PL180) block. that's it, that's the whole vibe πŸŽ€


🌸 SYNOPSIS 🌸

struct mmci_platform_data {
    unsigned int ocr_mask;
    unsigned int (*status)(struct device *);
 };

look at her. two members. main character energy, no notes πŸ’…


πŸ‘‘ Members πŸ‘‘

  • ocr_mask β€” this is the available voltages on the 4 pins from the block. heads up tho 🫢 it gets ignored if a regulator is used β€” so like, if you've got a regulator handling it, this lil field is just sitting there, unbothered. for the real deal, peep the MMC_VDD_* masks in mmc/host.h.
  • status β€” a function pointer, and here's the teΠ°: if no GPIO line was given to the block, this function gets called to determine whether a card is present in the MMC slot or not. so it's the "is there a card in there bestie??" check πŸ˜­πŸ¦‹ called as unsigned int (*status)(struct device *); β€” device pointer in, answer out.
honestly the whole struct is giving "minimal effort, maximum correctness" and i respect it πŸ’–

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/amba/mmci.h β€” go read it, it's literally right there, iykyk πŸ“–βœ¨

and that's the page!! πŸŽ€ source lives in ./include/linux/amba, dated October 2026, and that's your lil sign-off bestie β€” go configure some MMC platforms, you absolute legend πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from