tici: turn off fan after boot (#27680)

* tici: turn off fan after boot

* tmp if

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c25ce02639
beeps
Adeeb Shihadeh 2 years ago committed by GitHub
parent a64ec373f0
commit aa5aeb3ba3
  1. 6
      system/hardware/tici/hardware.py
  2. 2
      system/hardware/tici/pins.py

@ -452,6 +452,12 @@ class Tici(HardwareBase):
# Allow thermald to write engagement status to kmsg # Allow thermald to write engagement status to kmsg
os.system("sudo chmod a+w /dev/kmsg") os.system("sudo chmod a+w /dev/kmsg")
# TODO: remove the if once agnos 7 ships
# Turn off fan, turned on 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)
# *** IRQ config *** # *** IRQ config ***
# move these off the default core # move these off the default core

@ -10,6 +10,8 @@ class GPIO:
STM_RST_N = 124 STM_RST_N = 124
STM_BOOT0 = 134 STM_BOOT0 = 134
SOM_ST_IO = 49
LTE_RST_N = 50 LTE_RST_N = 50
LTE_PWRKEY = 116 LTE_PWRKEY = 116
LTE_BOOT = 52 LTE_BOOT = 52

Loading…
Cancel
Save