blob: e22adc57c1fe980c4a55677f51430bd8abcbd019 [file] [log] [blame]
Yang Chen5e5fe362023-12-15 16:41:42 +08001#!/bin/bash -e
2# shellcheck source=meta-facebook/meta-minerva/recipes-minerva/plat-tool/files/minerva-common-functions
3source /usr/libexec/minerva-common-functions
4
Yang Chend586c4c2024-05-09 20:39:36 +08005power_on_led_init() {
6 systemctl start obmc-led-group-start@power_on.service
7}
8
Yang Chen5e5fe362023-12-15 16:41:42 +08009# set initial value for GPIO output pins
Yang Chen9c7a5872024-02-23 09:33:51 +080010set_gpio PWREN_MTIA_BLADE1_EN_N 0
11set_gpio PWREN_MTIA_BLADE2_EN_N 0
12set_gpio PWREN_MTIA_BLADE3_EN_N 0
13set_gpio PWREN_MTIA_BLADE4_EN_N 0
14set_gpio PWREN_MTIA_BLADE5_EN_N 0
15set_gpio PWREN_MTIA_BLADE6_EN_N 0
16set_gpio PWREN_MTIA_BLADE7_EN_N 0
17set_gpio PWREN_MTIA_BLADE8_EN_N 0
18set_gpio PWREN_MTIA_BLADE9_EN_N 0
19set_gpio PWREN_MTIA_BLADE10_EN_N 0
20set_gpio PWREN_MTIA_BLADE11_EN_N 0
21set_gpio PWREN_MTIA_BLADE12_EN_N 0
22set_gpio PWREN_MTIA_BLADE13_EN_N 0
23set_gpio PWREN_MTIA_BLADE14_EN_N 0
24set_gpio PWREN_MTIA_BLADE15_EN_N 0
Yang Chena0c7c9f2024-09-24 22:30:27 +080025set_gpio PWREN_MTIA_BLADE16_EN_N 0
Yang Chen5e5fe362023-12-15 16:41:42 +080026
Yang Chen9c7a5872024-02-23 09:33:51 +080027set_gpio PWREN_NW_BLADE1_EN_N 0
28set_gpio PWREN_NW_BLADE2_EN_N 0
29set_gpio PWREN_NW_BLADE3_EN_N 0
30set_gpio PWREN_NW_BLADE4_EN_N 0
31set_gpio PWREN_NW_BLADE5_EN_N 0
Yang Chena0c7c9f2024-09-24 22:30:27 +080032set_gpio PWREN_NW_BLADE6_EN_N 0
Yang Chen5e5fe362023-12-15 16:41:42 +080033
Yang Chen9c7a5872024-02-23 09:33:51 +080034set_gpio PWREN_MTIA_BLADE1_HSC_EN_N 0
35set_gpio PWREN_MTIA_BLADE2_HSC_EN_N 0
36set_gpio PWREN_MTIA_BLADE3_HSC_EN_N 0
37set_gpio PWREN_MTIA_BLADE4_HSC_EN_N 0
38set_gpio PWREN_MTIA_BLADE5_HSC_EN_N 0
39set_gpio PWREN_MTIA_BLADE6_HSC_EN_N 0
40set_gpio PWREN_MTIA_BLADE7_HSC_EN_N 0
41set_gpio PWREN_MTIA_BLADE8_HSC_EN_N 0
42set_gpio PWREN_MTIA_BLADE9_HSC_EN_N 0
43set_gpio PWREN_MTIA_BLADE10_HSC_EN_N 0
44set_gpio PWREN_MTIA_BLADE11_HSC_EN_N 0
45set_gpio PWREN_MTIA_BLADE12_HSC_EN_N 0
46set_gpio PWREN_MTIA_BLADE13_HSC_EN_N 0
47set_gpio PWREN_MTIA_BLADE14_HSC_EN_N 0
48set_gpio PWREN_MTIA_BLADE15_HSC_EN_N 0
Yang Chena0c7c9f2024-09-24 22:30:27 +080049set_gpio PWREN_MTIA_BLADE16_HSC_EN_N 0
Yang Chen5e5fe362023-12-15 16:41:42 +080050
Yang Chen9c7a5872024-02-23 09:33:51 +080051set_gpio PWREN_NW_BLADE1_HSC_EN_N 0
52set_gpio PWREN_NW_BLADE2_HSC_EN_N 0
53set_gpio PWREN_NW_BLADE3_HSC_EN_N 0
54set_gpio PWREN_NW_BLADE4_HSC_EN_N 0
55set_gpio PWREN_NW_BLADE5_HSC_EN_N 0
Yang Chena0c7c9f2024-09-24 22:30:27 +080056set_gpio PWREN_NW_BLADE6_HSC_EN_N 0
Yang Chen5e5fe362023-12-15 16:41:42 +080057
Yang Chena0c7c9f2024-09-24 22:30:27 +080058set_gpio PWREN_SGPIO_FCB_1_EN_N 0
59set_gpio PWREN_SGPIO_FCB_2_EN_N 0
60set_gpio PWREN_SGPIO_FCB_3_EN_N 0
61set_gpio PWREN_SGPIO_FCB_4_EN_N 0
62set_gpio PWREN_SGPIO_FCB_5_EN_N 0
63set_gpio PWREN_SGPIO_FCB_6_EN_N 0
Yang Chen5e5fe362023-12-15 16:41:42 +080064
Yang Chena0c7c9f2024-09-24 22:30:27 +080065set_gpio FM_BMC_RST_RTCRST_R 0
66set_gpio ERR_INJECT_CMM_PWR_FAIL_N 1
Yang Chen5e5fe362023-12-15 16:41:42 +080067
Yang Chena0c7c9f2024-09-24 22:30:27 +080068set_gpio RST_I2CRST_FCB_1_N 1
69set_gpio RST_I2CRST_FCB_2_N 1
70set_gpio RST_I2CRST_FCB_3_N 1
71set_gpio RST_I2CRST_FCB_4_N 1
72set_gpio RST_I2CRST_FCB_5_N 1
73set_gpio RST_I2CRST_FCB_6_N 1
Yang Chen5e5fe362023-12-15 16:41:42 +080074
Yang Chen80af24e2024-06-28 16:33:50 +080075set_gpio FM_MDIO_SW_SEL 0
76set_gpio FM_88E6393X_BIN_UPDATE_EN_N 1
77set_gpio WATER_VALVE_CLOSED_N 1
Yang Chen5e5fe362023-12-15 16:41:42 +080078set_gpio BMC_READY 1
Yang Chend586c4c2024-05-09 20:39:36 +080079
80power_on_led_init
81
Yang Chen5e5fe362023-12-15 16:41:42 +080082exit 0