STRUCT TI_OPP_SUPPLY_OF_DATA(9)
π struct ti_opp_supply_of_data(9) β the vibes
okay so this is a page from the Kernel API Manual, and bestie, we're diving into struct ti_opp_supply_of_data β the device tree match data. yes, the whole struct is literally just here to hold the info that says "hey, which kind of opp supply are we dealing with." it's giving backstage pass energy π
β¨ NAME β¨
struct ti_opp_supply_of_data β device tree match data. that's it, that's the whole job. iconic, honestly π
πΈ SYNOPSIS πΈ
struct ti_opp_supply_of_data {
#define OPPDM_EFUSE_CLASS0_OPTIMIZED_VOLTAGE BIT(1);
#define OPPDM_HAS_NO_ABB BIT(2);
const u8 flags;
const u32 efuse_voltage_mask;
const bool efuse_voltage_uv;
};
look at her. three little members and two #defines living rent-free inside the struct body. she's compact, she's const-heavy, she knows what she wants π
π¦ Members π¦
flagsβ the specific type of opp supply. that's the whole description, no elaboration, we love a mysterious queen β¨ (peep those two defines up in the synopsis:OPPDM_EFUSE_CLASS0_OPTIMIZED_VOLTAGEisBIT(1);andOPPDM_HAS_NO_ABBisBIT(2);β those are the flag bits at play, fr fr.)efuse_voltage_maskβ the mask required for the efuse register that represents voltage. think of it as the little filter that says which bits are the voltage bits π₯efuse_voltage_uvβ the question of the century: are the efuse entries in micro-volts? π if not, then assume milli-volts. and yes, it's abool, so it's a straight yes/no vibe check on the units. don't mix them up, bestie, the math will Not be mathing π
π«Ά SEE ALSO π«Ά
- Kernel file
./drivers/opp/ti-opp-supply.cβ structti_opp_supply_optimum_voltage_table(9), structti_opp_supply_data(9),_store_optimized_voltages(9),_free_optimized_voltages(9),_get_optimal_vdd_voltage(9)
go read those next, i'm obsessed with the whole little friend group over in ./drivers/opp πβ
lowkey reminder: everything lives under ./drivers/opp β that's the neighborhood, that's the block, that's where you'll find all of these π
and that's the page!! mwah π this one was documented with <rainbow>October 2026</rainbow> energy straight from ./drivers/opp, so go forth and match your device tree data correctly, you absolute main character π§π
π¦ 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