Thu Nguyen | e50b26f | 2023-07-12 11:59:14 +0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # shellcheck source=meta-ampere/meta-jade/recipes-ampere/platform/ampere-platform-init/ampere_uart_console_setup.sh |
| 4 | source /usr/sbin/ampere_uart_console_setup.sh |
| 5 | |
| 6 | function pre-platform-init() { |
| 7 | echo "Do pre platform init" |
| 8 | } |
| 9 | |
| 10 | |
| 11 | function post-platform-init() { |
| 12 | echo "Do post platform init" |
| 13 | } |
| 14 | |
| 15 | export output_high_gpios_in_ac=( |
| 16 | # add device enable, mux setting, device select gpios |
| 17 | "ext-hightemp-n" |
| 18 | "vr-pmbus-sel-n" |
| 19 | "i2c6-reset-n" |
| 20 | "i2c-backup-sel" |
| 21 | "power-chassis-control" |
| 22 | "host0-shd-req-n" |
| 23 | "host0-sysreset-n" |
| 24 | "s0-spi-auth-fail-n" |
| 25 | ) |
| 26 | |
| 27 | export output_low_gpios_in_ac=( |
| 28 | # add device enable, mux setting, device select gpios |
| 29 | "ocp-main-pwren" |
| 30 | "spi0-program-sel" |
| 31 | "spi0-backup-sel" |
| 32 | "s0-rtc-lock" |
| 33 | "host0-special-boot" |
| 34 | "s1-special-boot" |
| 35 | ) |
| 36 | |
| 37 | export input_gpios_in_ac=( |
| 38 | # add device enable, mux setting, device select gpios |
| 39 | ) |
| 40 | |
| 41 | export output_high_gpios_in_bmc_reboot=( |
| 42 | "bmc-vga-en-n" |
| 43 | ) |
| 44 | |
| 45 | export output_low_gpios_in_bmc_reboot=( |
| 46 | "spi0-backup-sel" |
| 47 | ) |
| 48 | |
| 49 | export input_gpios_in_bmc_reboot=( |
| 50 | "s0-i2c9-alert-n" |
| 51 | "s1-i2c9-alert-n" |
| 52 | "s1-i2c9-alert-n" |
| 53 | "s0-vr-hot-n" |
| 54 | "s1-vr-hot-n" |
| 55 | ) |