rk_tsadcv2_initialize(9)
π rk_tsadcv2_initialize(9) π
okay bestie, welcome to the Kernel API Manual entry for rk_tsadcv2_initialize β yes it's a section 9 page, yes it's a kernel-internals moment, and yes we're gonna get through it together π
β¨ NAME β¨
rk_tsadcv2_initialize β literally here to initialize the TASDC Controller. that's the whole job. icon behavior, no notes π
πΈ SYNOPSIS πΈ
void rk_tsadcv2_initialize (struct regmap *grf , void __iomem *regs ,
enum tshut_polarity tshut_polarity );
like, look at her. void, she returns nothing, she just does the thing. main character energy fr fr π«Ά
π¦ ARGUMENTS π¦
grfβ the general register file πΎ this one gets used to do static set by software. so it's the "write your settings down permanently-ish" friend of the group.regsβ the base address of the tsadc controller. this is where the party's happening, address-wise. πtshut_polarityβ the hardware-controlled active polarity, and the vibes are literally(0:LOW 1:HIGH). so:0means LOW,1means HIGH. that's it, that's the choice π
π₯ DESCRIPTION π₯
so here's the little three-step glow-up this function performs, in order, no skipping:
- Set
TSADC_V2_AUTO_PERIODβ configure the interleave between every two accessing of TSADC in normal operation. like the normal-speed rhythm of the thing, iykyk β - Set
TSADCV2_AUTO_PERIOD_HTβ configure the interleave between every two accessing of TSADC after the temperature is higher thanCOM_SHUTorCOM_INT. yeah, the spicy mode has its own timing, obsessed π³π₯ - Set
TSADCV2_HIGH_INT_DEBOUNCEandTSADC_HIGHT_TSHUT_DEBOUNCEβ if the temperature is higher thanCOMP_INTorCOMP_SHUTfor "debounce" times, the TSADC controller will generate interrupt or TSHUT. so it's like "u sure? u sure? okay, interrupt." π
notice the second macro in step (3) is spelledTSADC_HIGHT_TSHUT_DEBOUNCEand the first isTSADCV2_HIGH_INT_DEBOUNCEβ yep, one saysHIGHT, one saysHIGH. that's genuinely how they're written, don't come for me, I'm just the messenger π
π SEE ALSO π
go read the kernel file ./drivers/thermal/rockchip_thermal.c and then hang out with the rest of the crew:
struct chip_tsadc_table(9)struct rockchip_tsadc_chip(9)struct rockchip_thermal_sensor(9)struct rockchip_thermal_data(9)struct tsadc_table(9)rk_tsadcv3_initialize(9)rk_tsadcv3_control(9)rockchip_get_efuse_value(9)rockchip_thermal_reset_controller(9)
that's the whole group chat, all nine of them, present and accounted for π§π
and that's the page!! sign-off time: this lil beauty lives under ./drivers/thermal and it's dated October 2026 β periodt, slay, go initialize something responsibly β¨ππ
π¦ 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