Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: # Description 1. Add aspeed patch to enable de-glitch feature for ADC monitor. 2. Initial ADC upper bound value after BMC boot up. 3. Fix some lint error. # Motivation To fix glitch signal of ADC. X-link: facebookexternal/openbmc.wiwynn#2821 Test Plan: 1. Build and test pass on GTA system. pass 2. Get sensor reading and check the upper bound setting root@bmc-oob:~# sensor-util mb 0x5e mb: MB_P3V_BAT_VOLT_V (0x5E) : 3.186 Volts | (ok) root@bmc-oob:~# sensor-util scm scm: SCM_P12V_VOLT_V (0xF0) : 12.077 Volts | (ok) SCM_P5V_VOLT_V (0xF1) : 4.983 Volts | (ok) SCM_P3V3_VOLT_V (0xF2) : 3.297 Volts | (ok) SCM_P2V5_VOLT_V (0xF3) : 2.491 Volts | (ok) SCM_P1V8_VOLT_V (0xF4) : 1.792 Volts | (ok) SCM_PGPPA_VOLT_V (0xF5) : 1.799 Volts | (ok) SCM_P1V2_VOLT_V (0xF6) : 1.191 Volts | (ok) SCM_P1V0_VOLT_V (0xF7) : 1.000 Volts | (ok) SCM_INLET_TEMP_C (0xFB) : 29.225 C | (ok) root@bmc-oob:/sys/bus/iio/devices/iio:device0/events# cat in_voltage0_thresh_rising_en 1 root@bmc-oob:/sys/bus/iio/devices/iio:device0/events# cat in_voltage0_thresh_rising_value 607 root@bmc-oob:/sys/bus/iio/devices/iio:device0/events# cat in_voltage1_thresh_rising_en 1 root@bmc-oob:/sys/bus/iio/devices/iio:device0/events# cat in_voltage1_thresh_rising_value 612 root@bmc-oob:/sys/bus/iio/devices/iio:device0/events# cat in_voltage2_thresh_rising_en 1 root@bmc-oob:/sys/bus/iio/devices/iio:device0/events# cat in_voltage2_thresh_rising_value 593 root@bmc-oob:/sys/bus/iio/devices/iio:device0/events# cat in_voltage3_thresh_rising_en 1 root@bmc-oob:/sys/bus/iio/devices/iio:device0/events# cat in_voltage3_thresh_rising_value 581 root@bmc-oob:/sys/bus/iio/devices/iio:device0/events# cat in_voltage4_thresh_rising_en 1 root@bmc-oob:/sys/bus/iio/devices/iio:device0/events# cat in_voltage4_thresh_rising_value 580 root@bmc-oob:/sys/bus/iio/devices/iio:device0/events# cat in_voltage5_thresh_rising_en 1 root@bmc-oob:/sys/bus/iio/devices/iio:device0/events# cat in_voltage5_thresh_rising_value 317 root@bmc-oob:/sys/bus/iio/devices/iio:device0/events# cat in_voltage6_thresh_rising_en 1 root@bmc-oob:/sys/bus/iio/devices/iio:device0/events# cat in_voltage6_thresh_rising_value 516 root@bmc-oob:/sys/bus/iio/devices/iio:device0/events# cat in_voltage7_thresh_rising_en 1 root@bmc-oob:/sys/bus/iio/devices/iio:device0/events# cat in_voltage7_thresh_rising_value 464 root@bmc-oob:/sys/bus/iio/devices/iio:device1/events# cat in_voltage0_thresh_rising_en 1 root@bmc-oob:/sys/bus/iio/devices/iio:device1/events# cat in_voltage0_thresh_rising_value 442 Reviewed By: williamspatrick Differential Revision: D49941021 fbshipit-source-id: 6aa139dac7e116e1a3f848054bcf60512a5a75d3
- Loading branch information