ti_bandgap_tshut_init(9)
π¦ ti_bandgap_tshut_init(9) β Kernel API Manual π
πΈ NAME πΈ
ti_bandgap_tshut_init β setup and initialize tshut handling. That's the whole vibe: it gets tshut handling set up and initialized, bestie. lowkey iconic. β¨
β¨ SYNOPSIS β¨
int ti_bandgap_tshut_init (struct ti_bandgap *bgp , struct
platform_device *pdev );
okay so that's the signature exactly as the Kernel API Manual gives it β no edits, no cute little "fixes", periodt. π«Ά
π ARGUMENTS π
bgpβ pointer tostruct ti_bandgap. This is the bandgap struct, the main character of this little function's world. πpdevβ pointer to devicestruct platform_device. Yep, it's the platform device pointer. π
π₯ DESCRIPTION π₯
Call this function only in case the bandgap features HAS(TSHUT). That's the gatekeeping condition, bestie β if the bandgap doesn't feature HAS(TSHUT), this is not the function for you. πͺβ¨
In this case, the driver needs to handle the TSHUT signal as an IRQ. The IRQ is wired as a GPIO, and for this purpose, it is required to specify which GPIO line is used. So yes, you gotta know the GPIO line. No guessing. π
TSHUT IRQ is fired anytime one of the bandgap sensors violates the TSHUT high/hot threshold. And in that case, the system must go off.
π bestie, this is the dramatic part: if that threshold gets violated, the system must go off. Not a vibe check, not a suggestion β the system must go off.
π RETURN π
Returns 0 if no error, else error status. So 0 is the slay outcome, and anything else is the error-status situation. no cap. π
π¦ SEE ALSO π¦
- Kernel file:
./drivers/thermal/ti-soc-thermal/ti-bandgap.cβ go read the source, bestie. π ti_bandgap_readl(9)ti_bandgap_writel(9)macro to update bits.(9)β yes, that's the reference exactly, iykyk. πti_bandgap_power(9)ti_errata814_bandgap_read_temp(9)ti_bandgap_read_temp(9)ti_bandgap_talert_irq_handler(9)ti_bandgap_tshut_irq_handler(9)ti_bandgap_adc_to_mcelsius(9)ti_bandgap_validate(9)ti_bandgap_read_counter(9)ti_bandgap_read_counter_delay(9)ti_bandgap_read_update_interval(9)ti_bandgap_write_counter_delay(9)ti_bandgap_write_counter(9)ti_bandgap_write_update_interval(9)ti_bandgap_read_temperature(9)ti_bandgap_set_sensor_data(9)ti_bandgap_get_sensor_data(9)ti_bandgap_force_single_read(9)ti_bandgap_set_continuous_mode(9)ti_bandgap_get_trend(9)ti_bandgap_talert_init(9)ti_bandgap_build(9)
Signed with sparkles by the ./drivers/thermal/ti-soc-thermal girlies β source/version: ./drivers/thermal/ti-soc-thermal; date: October 2026; manual page: ti_bandgap_tshut_init(9). πππ«Ά
π¦ 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