tizi: enable fan for shutdown (#27890)

* tizi: enable fan for shutdown

* Update system/hardware/tici/hardware.py

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8f1753aaab
beeps
Adeeb Shihadeh 2 years ago committed by GitHub
parent 51eeb48863
commit 9ab3f160fb
  1. 4
      system/hardware/tici/hardware.py

@ -467,10 +467,10 @@ class Tici(HardwareBase):
os.system("sudo chmod a+w /dev/kmsg")
# TODO: remove the if once agnos 7 ships
# Turn off fan, turned on by the ABL
# Ensure fan gpio is enabled so fan runs until shutdown, also turned on at boot by the ABL
if os.path.exists('/sys/class/gpio/gpio49/'):
gpio_init(GPIO.SOM_ST_IO, True)
gpio_set(GPIO.SOM_ST_IO, 0)
gpio_set(GPIO.SOM_ST_IO, 1)
# *** IRQ config ***

Loading…
Cancel
Save