Thang Q. Nguyen | dde1fed | 2021-11-04 08:30:27 +0000 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | |
| 3 | # shellcheck disable=SC2034 |
ThuBaNguyen | fb21478 | 2021-07-08 14:20:43 +0700 | [diff] [blame] | 4 | # Index of GPIO device in gpioget/gpioset |
| 5 | GPIO_CHIP0_IDX=0 |
| 6 | GPIO_CHIP1_IDX=1 |
| 7 | |
| 8 | # Base of GPIO chip in /sys/class/gpio |
| 9 | GPIO_CHIP0_BASE=792 |
| 10 | GPIO_CHIP1_BASE=780 |
| 11 | |
| 12 | ### Power control configuration |
| 13 | # Power control gpios |
| 14 | S0_SHD_REQ_L=49 |
| 15 | S0_SHD_ACK_L=50 |
| 16 | S0_REBOOT_ACK_L=75 |
| 17 | S0_SYSRESET_L=91 |
| 18 | |
| 19 | |
| 20 | ### Table 1: GPIO Assignments |
| 21 | S0_CPU_FW_BOOT_OK=48 |
| 22 | CPU_BMC_OVERTEMP_L=51 |
| 23 | CPU_BMC_HIGHTEMP_L=72 |
| 24 | CPU_FAULT_ALERT=73 |
| 25 | S1_CPU_FW_BOOT_OK=202 |
| 26 | |
| 27 | ### Table 2: Alert and Additional Miscellaneous Signals |
| 28 | S0_SCP_AUTH_FAILURE=74 |
| 29 | S1_SCP_AUTH_FAILURE=205 |
| 30 | BMC_OK=228 |
| 31 | SLAVE_PRESENT_L=230 |
| 32 | |
| 33 | ### Common GPIOs |
| 34 | SYS_PSON_L=42 |
| 35 | BMC_READY=229 |
ThuBaNguyen | 3310917 | 2021-07-02 15:39:57 +0700 | [diff] [blame] | 36 | |
| 37 | ### OCP power selection |
| 38 | OCP_AUX_PWREN=139 |
| 39 | OCP_MAIN_PWREN=140 |
| 40 | |
| 41 | ### SPI0 Mode selection |
| 42 | SPI0_PROGRAM_SEL=226 |
| 43 | SPI0_BACKUP_SEL=227 |