Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | echo |
| 3 | echo "-----FPGA Daytona<x> CRB Register Dump Utility" |
| 4 | echo |
| 5 | |
| 6 | I2CBUS=2 |
| 7 | FPGAADDR=0x41 |
| 8 | |
| 9 | FPGA_REG=1 |
| 10 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 11 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 12 | echo M_ABCD_EVENT_R_BUF_N----- : $(((DATA & 0x80) >> 7)) |
| 13 | echo M_EFGH_EVENT_R_BUF_N----- : $(((DATA & 0x40) >> 6)) |
| 14 | echo M_IJKL_EVENT_R_BUF_N----- : $(((DATA & 0x20) >> 5)) |
| 15 | echo M_MNOP_EVENT_R_BUF_N----- : $(((DATA & 0x10) >> 4)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 16 | |
| 17 | FPGA_REG=2 |
| 18 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 19 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 20 | echo BMC_NVDIMM_PRSNT_R_N----- : $(((DATA & 0x80) >> 7)) |
| 21 | echo FM_ADR_TRIGGER_CPU_BUFF_N : $(((DATA & 0x40) >> 6)) |
| 22 | echo FM_BMC_ONCTL_N----------- : $(((DATA & 0x20) >> 5)) |
| 23 | echo FM_NVDIMM_EVENT_N-------- : $(((DATA & 0x10) >> 4)) |
| 24 | echo P0_FORCE_SELFREFRESH----- : $(((DATA & 0x08) >> 3)) |
| 25 | echo P0_NV_SAVE--------------- : $(((DATA & 0x04) >> 2)) |
| 26 | echo P1_FORCE_SELFREFRESH----- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 27 | echo P1_NV_SAVE--------------- : $((DATA & 0x01)) |
| 28 | |
| 29 | FPGA_REG=3 |
| 30 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 31 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 32 | echo CPLD_PWR_BTN_N----------- : $(((DATA & 0x80) >> 7)) |
| 33 | echo FM_DEBUG_RST_BTN_N------- : $(((DATA & 0x40) >> 6)) |
| 34 | echo P0_PWR_BTN_N------------- : $(((DATA & 0x20) >> 5)) |
| 35 | echo PWRBTN_CPLD_IN_N--------- : $(((DATA & 0x10) >> 4)) |
| 36 | echo FM_PLD_DEBUG_MODE_N------ : $(((DATA & 0x08) >> 3)) |
| 37 | echo FM_PLD_DEBUG0------------ : $(((DATA & 0x04) >> 2)) |
| 38 | echo FM_PLD_DEBUG1------------ : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 39 | echo FM_PLD_DEBUG0------------ : $((DATA & 0x01)) |
| 40 | |
| 41 | FPGA_REG=4 |
| 42 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 43 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 44 | echo FM_PLD_DEBUG3------------ : $(((DATA & 0x80) >> 7)) |
| 45 | echo FM_PLD_DEBUG4------------ : $(((DATA & 0x40) >> 6)) |
| 46 | echo FM_PLD_DEBUG5------------ : $(((DATA & 0x20) >> 5)) |
| 47 | echo FM_PLD_DEBUG6------------ : $(((DATA & 0x10) >> 4)) |
| 48 | echo FM_PLD_DEBUG7------------ : $(((DATA & 0x08) >> 3)) |
| 49 | echo BP_SIG_CABLE_PRES_R_N---- : $(((DATA & 0x04) >> 2)) |
| 50 | echo CPLD_P0_THERMTRIP_N------ : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 51 | echo CPLD_P1_THERMTRIP_N------ : $((DATA & 0x01)) |
| 52 | |
| 53 | FPGA_REG=5 |
| 54 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 55 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 56 | echo FM_BMC_CPLD_GPO---------- : $(((DATA & 0x80) >> 7)) |
| 57 | echo FM_BMC_READY_N----------- : $(((DATA & 0x40) >> 6)) |
| 58 | echo FM_CPLD_BMC_PWRDN_N------ : $(((DATA & 0x20) >> 5)) |
| 59 | echo LED_PWR_AMBER_R---------- : $(((DATA & 0x10) >> 4)) |
| 60 | echo LED_PWR_GRN_R------------ : $(((DATA & 0x08) >> 3)) |
| 61 | echo P0_CORETYPE-------------- : $(((DATA & 0x04) >> 2)) |
| 62 | echo P0_CPU_PRESENT_HDT------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 63 | echo P0_CPU_PRESENT_N--------- : $((DATA & 0x01)) |
| 64 | |
| 65 | FPGA_REG=6 |
| 66 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 67 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 68 | echo P0_NMI_SYNC_FLOOD_N------ : $(((DATA & 0x80) >> 7)) |
| 69 | echo P0_PWROK_RST_BUF_EN_N---- : $(((DATA & 0x40) >> 6)) |
| 70 | echo P0_SP3R1----------------- : $(((DATA & 0x20) >> 5)) |
| 71 | echo P0_SP3R2_R--------------- : $(((DATA & 0x10) >> 4)) |
| 72 | echo P1_CORETYPE-------------- : $(((DATA & 0x08) >> 3)) |
| 73 | echo P1_CPU_PRESENT_HDT------- : $(((DATA & 0x04) >> 2)) |
| 74 | echo P1_CPU_PRESENT_N--------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 75 | echo P1_PWROK_RST_BUF_EN_N---- : $((DATA & 0x01)) |
| 76 | |
| 77 | FPGA_REG=7 |
| 78 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 79 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 80 | echo P1_SP3R1----------------- : $(((DATA & 0x80) >> 7)) |
| 81 | echo P1_SP3R2_R--------------- : $(((DATA & 0x40) >> 6)) |
| 82 | echo PSU1_BLADE_EN_R_N-------- : $(((DATA & 0x20) >> 5)) |
| 83 | echo SLOT1_CLKREQ_N----------- : $(((DATA & 0x10) >> 4)) |
| 84 | echo SLOT1_PRSNT_N------------ : $(((DATA & 0x08) >> 3)) |
| 85 | echo SLOT2_CLKREQ_N----------- : $(((DATA & 0x04) >> 2)) |
| 86 | echo SLOT2_PRSNT_N------------ : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 87 | echo SMB_M2_S0_ALERT_N-------- : $((DATA & 0x01)) |
| 88 | |
| 89 | FPGA_REG=8 |
| 90 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 91 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 92 | echo SMB_M2_S1_ALERT_N-------- : $(((DATA & 0x80) >> 7)) |
| 93 | echo FM_BMC_READ_SPD_TEMP----- : $(((DATA & 0x40) >> 6)) |
| 94 | echo PWR_ALL_ON_N------------- : $(((DATA & 0x20) >> 5)) |
| 95 | echo I2C_SELECT_CPLD---------- : $(((DATA & 0x10) >> 4)) |
| 96 | echo CPLD_PWRBRK_N------------ : $(((DATA & 0x08) >> 3)) |
| 97 | echo FM_PWRBRK_N-------------- : $(((DATA & 0x04) >> 2)) |
| 98 | echo PSU1_THROTTLE_N---------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 99 | echo PSU2_ALERT_EN_N---------- : $((DATA & 0x01)) |
| 100 | |
| 101 | FPGA_REG=9 |
| 102 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 103 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 104 | echo PSU2_ALERT_N------------- : $(((DATA & 0x80) >> 7)) |
| 105 | echo RM_THROTTLE_EN_N----- ----: $(((DATA & 0x40) >> 6)) |
| 106 | echo FM_P1V8_AUX_P0_EN-------- : $(((DATA & 0x20) >> 5)) |
| 107 | echo FM_P1V8_AUX_P1_EN-------- : $(((DATA & 0x10) >> 4)) |
| 108 | echo FM_P1V8_P0_EN------------ : $(((DATA & 0x08) >> 3)) |
| 109 | echo FM_P1V8_P1_EN------------ : $(((DATA & 0x04) >> 2)) |
| 110 | echo FM_P5V_EN---------------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 111 | echo FM_PS_P12V_EN------------ : $((DATA & 0x01)) |
| 112 | |
| 113 | FPGA_REG=10 |
| 114 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 115 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 116 | echo FM_PS_P12V_FAN_EN-------- : $(((DATA & 0x80) >> 7)) |
| 117 | echo FM_PVDDIO_ABCD_EN-------- : $(((DATA & 0x40) >> 6)) |
| 118 | echo FM_PVDDIO_EFGH_EN-------- : $(((DATA & 0x20) >> 5)) |
| 119 | echo FM_PVDDIO_IJKL_EN-------- : $(((DATA & 0x10) >> 4)) |
| 120 | echo FM_PVDDIO_MNOP_EN-------- : $(((DATA & 0x08) >> 3)) |
| 121 | echo FM_PVPP_ABCD_EN---------- : $(((DATA & 0x04) >> 2)) |
| 122 | echo FM_PVPP_EFGH_EN---------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 123 | echo FM_PVPP_IJKL_EN---------- : $((DATA & 0x01)) |
| 124 | |
| 125 | FPGA_REG=11 |
| 126 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 127 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 128 | echo FM_PVPP_MNOP_EN---------- : $(((DATA & 0x80) >> 7)) |
| 129 | echo P0_VDDCR_CPU_EN1--------- : $(((DATA & 0x40) >> 6)) |
| 130 | echo P0_VDDCR_CPU_PWROK_R----- : $(((DATA & 0x20) >> 5)) |
| 131 | echo P0_VDDCR_SOC_AUX_EN------ : $(((DATA & 0x10) >> 4)) |
| 132 | echo P0_VDDCR_SOC_EN1--------- : $(((DATA & 0x08) >> 3)) |
| 133 | echo P0_VDDCR_SOC_PWROK_R----- : $(((DATA & 0x04) >> 2)) |
| 134 | echo P1_VDDCR_CPU_EN1--------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 135 | echo P1_VDDCR_CPU_PWROK_R----- : $((DATA & 0x01)) |
| 136 | |
| 137 | FPGA_REG=12 |
| 138 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 139 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 140 | echo P1_VDDCR_SOC_AUX_EN------ : $(((DATA & 0x80) >> 7)) |
| 141 | echo P1_VDDCR_SOC_EN1--------- : $(((DATA & 0x40) >> 6)) |
| 142 | echo P1_VDDCR_SOC_PWROK_R----- : $(((DATA & 0x20) >> 5)) |
| 143 | echo PVTT_ABCD_EN------------- : $(((DATA & 0x10) >> 4)) |
| 144 | echo PVTT_EFGH_EN------------- : $(((DATA & 0x08) >> 3)) |
| 145 | echo PVTT_IJKL_EN------------- : $(((DATA & 0x04) >> 2)) |
| 146 | echo PVTT_MNOP_EN------------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 147 | echo VR_P3V3_EN_N------------- : $((DATA & 0x01)) |
| 148 | |
| 149 | FPGA_REG=13 |
| 150 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 151 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 152 | echo ASSERT_P0_PWROK_L------- : $(((DATA & 0x80) >> 7)) |
| 153 | echo ASSERT_P1_PWROK_L------- : $(((DATA & 0x40) >> 6)) |
| 154 | echo HDT_HDR_PWROK----------- : $(((DATA & 0x20) >> 5)) |
| 155 | echo P0_33_PWROK------------- : $(((DATA & 0x10) >> 4)) |
| 156 | echo P0_PWR_GOOD------------- : $(((DATA & 0x08) >> 3)) |
| 157 | echo P0_PWRGD_OUT------------ : $(((DATA & 0x04) >> 2)) |
| 158 | echo P0_VDDCR_CPU_PG1-------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 159 | echo P0_VDDCR_SOC_PG1-------- : $((DATA & 0x01)) |
| 160 | |
| 161 | FPGA_REG=14 |
| 162 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 163 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 164 | echo P1_33_PWROK------------- : $(((DATA & 0x80) >> 7)) |
| 165 | echo P1_PWR_GOOD------------- : $(((DATA & 0x40) >> 6)) |
| 166 | echo P1_PWRGD_OUT------------ : $(((DATA & 0x20) >> 5)) |
| 167 | echo P1_VDDCR_CPU_PG1-------- : $(((DATA & 0x10) >> 4)) |
| 168 | echo P1_VDDCR_SOC_PG1-------- : $(((DATA & 0x08) >> 3)) |
| 169 | echo P3V3_AUX_PWRGD---------- : $(((DATA & 0x04) >> 2)) |
| 170 | echo PWRGD_BMC_ALL----------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 171 | echo PWRGD_P0_VDDCR_SOC_AUX-- : $((DATA & 0x01)) |
| 172 | |
| 173 | FPGA_REG=15 |
| 174 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 175 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 176 | echo PWRGD_P1_VDDCR_SOC_AUX-- : $(((DATA & 0x80) >> 7)) |
| 177 | echo PWRGD_P12V-------------- : $(((DATA & 0x40) >> 6)) |
| 178 | echo PWRGD_P12V_FAN_R-------- : $(((DATA & 0x20) >> 5)) |
| 179 | echo PWRGD_P1V8_AUX_P0------- : $(((DATA & 0x10) >> 4)) |
| 180 | echo PWRGD_P1V8_AUX_P1------- : $(((DATA & 0x08) >> 3)) |
| 181 | echo PWRGD_P1V8_P0----------- : $(((DATA & 0x04) >> 2)) |
| 182 | echo PWRGD_P1V8_P1----------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 183 | echo PWRGD_P3V3_R3----------- : $((DATA & 0x01)) |
| 184 | |
| 185 | FPGA_REG=16 |
| 186 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 187 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 188 | echo PWRGD_P5V_CPLD_R-------- : $(((DATA & 0x80) >> 7)) |
| 189 | echo PWRGD_PVDDIO_ABCD------- : $(((DATA & 0x40) >> 6)) |
| 190 | echo PWRGD_PVDDIO_EFGH------- : $(((DATA & 0x20) >> 5)) |
| 191 | echo PWRGD_PVDDIO_IJKL------- : $(((DATA & 0x10) >> 4)) |
| 192 | echo PWRGD_PVDDIO_MNOP------- : $(((DATA & 0x08) >> 3)) |
| 193 | echo PWRGD_PVPP_ABCD--------- : $(((DATA & 0x04) >> 2)) |
| 194 | echo PWRGD_PVPP_EFGH--------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 195 | echo PWRGD_PVPP_IJKL--------- : $((DATA & 0x01)) |
| 196 | |
| 197 | FPGA_REG=17 |
| 198 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 199 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 200 | echo PWRGD_PVPP_MNOP--------- : $(((DATA & 0x80) >> 7)) |
| 201 | echo PWRGD_PVTT_ABCD--------- : $(((DATA & 0x40) >> 6)) |
| 202 | echo PWRGD_PVTT_EFGH--------- : $(((DATA & 0x20) >> 5)) |
| 203 | echo PWRGD_PVTT_IJKL--------- : $(((DATA & 0x10) >> 4)) |
| 204 | echo PWRGD_PVTT_MNOP--------- : $(((DATA & 0x08) >> 3)) |
| 205 | echo PWRGD_SYS_BMC_PWROK----- : $(((DATA & 0x04) >> 2)) |
| 206 | echo P0_SLP_S3_N------------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 207 | echo P0_SLP_S5_N------------- : $((DATA & 0x01)) |
| 208 | |
| 209 | FPGA_REG=18 |
| 210 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 211 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 212 | echo PSU2_PS_ON_N----------- : $(((DATA & 0x80) >> 7)) |
| 213 | echo BMC_PWRCAP_N----------- : $(((DATA & 0x40) >> 6)) |
| 214 | echo CPLD_FPH_ALERT_R_N----- : $(((DATA & 0x20) >> 5)) |
| 215 | echo FAST_PROCHOT_R_N------- : $(((DATA & 0x10) >> 4)) |
| 216 | echo FM_THROTTLE_IN_N------- : $(((DATA & 0x08) >> 3)) |
| 217 | echo HSC_GPIO0_PLD_N-------- : $(((DATA & 0x04) >> 2)) |
| 218 | echo HSC_GPIO1_PLD_N-------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 219 | echo P0_BMC_PROCHOT_N------- : $((DATA & 0x01)) |
| 220 | |
| 221 | FPGA_REG=19 |
| 222 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 223 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 224 | echo P1_BMC_PROCHOT_N------- : $(((DATA & 0x80) >> 7)) |
| 225 | echo PMB_ALERT_SW_N--------- : $(((DATA & 0x40) >> 6)) |
| 226 | echo RM_THROTTLE_SW_N------- : $(((DATA & 0x20) >> 5)) |
| 227 | echo RST_PLTRST_DLY--------- : $(((DATA & 0x10) >> 4)) |
| 228 | echo UV_ALERT_R_N----------- : $(((DATA & 0x08) >> 3)) |
| 229 | echo ASSERT_P0_RESET-------- : $(((DATA & 0x04) >> 2)) |
| 230 | echo ASSERT_P1_RESET-------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 231 | echo HDT_HDR_RESET_L-------- : $((DATA & 0x01)) |
| 232 | |
| 233 | FPGA_REG=20 |
| 234 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 235 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 236 | echo RST_CPLD_BMC_R_N------- : $(((DATA & 0x80) >> 7)) |
| 237 | echo RST_CPU_1V8_N---------- : $(((DATA & 0x40) >> 6)) |
| 238 | echo RST_KBRST_P0_N--------- : $(((DATA & 0x20) >> 5)) |
| 239 | echo RST_P0_3V3_N----------- : $(((DATA & 0x10) >> 4)) |
| 240 | echo RST_P0_PE0_N----------- : $(((DATA & 0x08) >> 3)) |
| 241 | echo RST_P0_PE1_N----------- : $(((DATA & 0x04) >> 2)) |
| 242 | echo RST_P0_PE2_N----------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 243 | echo RST_P0_PE3_N,---------- : $((DATA & 0x01)) |
| 244 | |
| 245 | FPGA_REG=21 |
| 246 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 247 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 248 | echo RST_P0_SASHD_0_R_N----- : $(((DATA & 0x80) >> 7)) |
| 249 | echo RST_P0_SASHD_1_R_N----- : $(((DATA & 0x40) >> 6)) |
| 250 | echo RST_P1_3V3_N----------- : $(((DATA & 0x20) >> 5)) |
| 251 | echo RST_P1_OCU1_R_N-------- : $(((DATA & 0x10) >> 4)) |
| 252 | echo RST_P1_PE0_N----------- : $(((DATA & 0x08) >> 3)) |
| 253 | echo RST_P1_PE1_N----------- : $(((DATA & 0x04) >> 2)) |
| 254 | echo RST_P1_PE2_N----------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 255 | echo RST_P1_PE3_N,---------- : $((DATA & 0x01)) |
| 256 | |
| 257 | FPGA_REG=22 |
| 258 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 259 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 260 | echo RST_BMC_RSTBTN_OUT_N_CPLD : $(((DATA & 0x80) >> 7)) |
| 261 | echo RST_PE_NVME0_N----------- : $(((DATA & 0x40) >> 6)) |
| 262 | echo RST_PE_NVME1_N----------- : $(((DATA & 0x20) >> 5)) |
| 263 | echo RST_PE_NVME2_N----------- : $(((DATA & 0x10) >> 4)) |
| 264 | echo RST_PE_NVME3_N----------- : $(((DATA & 0x08) >> 3)) |
| 265 | echo RST_PE_SLOT1_N----------- : $(((DATA & 0x04) >> 2)) |
| 266 | echo RST_PE_SLOT2_N----------- : $(((DATA & 0x02) >> 1)) |
Konstantin Aladyshev | 16a8c79 | 2023-01-17 14:30:48 +0300 | [diff] [blame] | 267 | echo RST_PE_SLOT3_N----------- : $((DATA & 0x01)) |
| 268 | |
| 269 | FPGA_REG=23 |
| 270 | DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)") |
| 271 | echo ----------FPGAreg$FPGA_REG------------------------- |
Andrew Geissler | bda29da | 2023-04-13 13:56:43 -0600 | [diff] [blame^] | 272 | echo RST_PE_SLOT4_N----------- : $(((DATA & 0x80) >> 7)) |
| 273 | echo RST_PE_SLOT5_N----------- : $(((DATA & 0x40) >> 6)) |
| 274 | echo RST_RSMRST_P0_N---------- : $(((DATA & 0x20) >> 5)) |
| 275 | echo RST_RSMRST_P1_N---------- : $(((DATA & 0x10) >> 4)) |
| 276 | echo RST_SYSTEM_BTN_CPLD_N---- : $(((DATA & 0x08) >> 3)) |
| 277 | echo RST_VSBPWR_BMC_BUF_N----- : $(((DATA & 0x04) >> 2)) |