blob: 606790e0293d027a018c458cc1c308a1f8fdee2e [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_BLADE0_EN_N 0
11set_gpio PWREN_MTIA_BLADE1_EN_N 0
12set_gpio PWREN_MTIA_BLADE2_EN_N 0
13set_gpio PWREN_MTIA_BLADE3_EN_N 0
14set_gpio PWREN_MTIA_BLADE4_EN_N 0
15set_gpio PWREN_MTIA_BLADE5_EN_N 0
16set_gpio PWREN_MTIA_BLADE6_EN_N 0
17set_gpio PWREN_MTIA_BLADE7_EN_N 0
18set_gpio PWREN_MTIA_BLADE8_EN_N 0
19set_gpio PWREN_MTIA_BLADE9_EN_N 0
20set_gpio PWREN_MTIA_BLADE10_EN_N 0
21set_gpio PWREN_MTIA_BLADE11_EN_N 0
22set_gpio PWREN_MTIA_BLADE12_EN_N 0
23set_gpio PWREN_MTIA_BLADE13_EN_N 0
24set_gpio PWREN_MTIA_BLADE14_EN_N 0
25set_gpio PWREN_MTIA_BLADE15_EN_N 0
Yang Chen5e5fe362023-12-15 16:41:42 +080026
Yang Chen9c7a5872024-02-23 09:33:51 +080027set_gpio PWREN_NW_BLADE0_EN_N 0
28set_gpio PWREN_NW_BLADE1_EN_N 0
29set_gpio PWREN_NW_BLADE2_EN_N 0
30set_gpio PWREN_NW_BLADE3_EN_N 0
31set_gpio PWREN_NW_BLADE4_EN_N 0
32set_gpio PWREN_NW_BLADE5_EN_N 0
Yang Chen5e5fe362023-12-15 16:41:42 +080033
Yang Chen9c7a5872024-02-23 09:33:51 +080034set_gpio PWREN_MTIA_BLADE0_HSC_EN_N 0
35set_gpio PWREN_MTIA_BLADE1_HSC_EN_N 0
36set_gpio PWREN_MTIA_BLADE2_HSC_EN_N 0
37set_gpio PWREN_MTIA_BLADE3_HSC_EN_N 0
38set_gpio PWREN_MTIA_BLADE4_HSC_EN_N 0
39set_gpio PWREN_MTIA_BLADE5_HSC_EN_N 0
40set_gpio PWREN_MTIA_BLADE6_HSC_EN_N 0
41set_gpio PWREN_MTIA_BLADE7_HSC_EN_N 0
42set_gpio PWREN_MTIA_BLADE8_HSC_EN_N 0
43set_gpio PWREN_MTIA_BLADE9_HSC_EN_N 0
44set_gpio PWREN_MTIA_BLADE10_HSC_EN_N 0
45set_gpio PWREN_MTIA_BLADE11_HSC_EN_N 0
46set_gpio PWREN_MTIA_BLADE12_HSC_EN_N 0
47set_gpio PWREN_MTIA_BLADE13_HSC_EN_N 0
48set_gpio PWREN_MTIA_BLADE14_HSC_EN_N 0
49set_gpio PWREN_MTIA_BLADE15_HSC_EN_N 0
Yang Chen5e5fe362023-12-15 16:41:42 +080050
Yang Chen9c7a5872024-02-23 09:33:51 +080051set_gpio PWREN_NW_BLADE0_HSC_EN_N 0
52set_gpio PWREN_NW_BLADE1_HSC_EN_N 0
53set_gpio PWREN_NW_BLADE2_HSC_EN_N 0
54set_gpio PWREN_NW_BLADE3_HSC_EN_N 0
55set_gpio PWREN_NW_BLADE4_HSC_EN_N 0
56set_gpio PWREN_NW_BLADE5_HSC_EN_N 0
Yang Chen5e5fe362023-12-15 16:41:42 +080057
Yang Chen80af24e2024-06-28 16:33:50 +080058set_gpio PWREN_FCB_TOP_0_EN_N 0
59set_gpio PWREN_FCB_TOP_1_EN_N 0
60set_gpio PWREN_FCB_MIDDLE_0_EN_N 0
61set_gpio PWREN_FCB_MIDDLE_1_EN_N 0
62set_gpio PWREN_FCB_BOTTOM_1_EN_N 0
63set_gpio PWREN_FCB_BOTTOM_0_EN_N 0
Yang Chen5e5fe362023-12-15 16:41:42 +080064
65set_gpio FM_CMM_AC_CYCLE_N 1
66
Yang Chen80af24e2024-06-28 16:33:50 +080067set_gpio RST_I2CRST_FCB_BOTTOM_1_N 1
68set_gpio RST_I2CRST_FCB_BOTTOM_0_N 1
69set_gpio RST_I2CRST_FCB_MIDDLE_0_N 1
70set_gpio RST_I2CRST_FCB_MIDDLE_1_N 1
71set_gpio RST_I2CRST_FCB_TOP_0_N 1
72set_gpio RST_I2CRST_FCB_TOP_1_N 1
Yang Chen5e5fe362023-12-15 16:41:42 +080073
Yang Chen80af24e2024-06-28 16:33:50 +080074set_gpio FM_MDIO_SW_SEL 0
75set_gpio FM_88E6393X_BIN_UPDATE_EN_N 1
76set_gpio WATER_VALVE_CLOSED_N 1
Yang Chen5e5fe362023-12-15 16:41:42 +080077set_gpio BMC_READY 1
Yang Chend586c4c2024-05-09 20:39:36 +080078
79power_on_led_init
80
Yang Chen5e5fe362023-12-15 16:41:42 +080081exit 0