OpenBIC
OpenSource Bridge-IC
shell_plat_power_sequence.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef PLAT_PWR_SEQUENCE_H
18#define PLAT_PWR_SEQUENCE_H
19
20#include <stdint.h>
21
22// Power sequence On (0x44~0x72)
23#define P12V_ON_REG 0x43
24#define P3V3_ON_REG 0x44
25#define P5V_ON_REG 0x45
26#define LDO_IN_1V2_ON_REG 0x46
27#define P1V8_ON_REG 0x47
28#define P0V75_AVDD_HCSL_ON_REG 0x48
29#define HAMSA_VDD_ON_REG 0x49
30#define MEDHA1_VDD_ON_REG 0x4A
31#define MEDHA0_VDD_ON_REG 0x4B
32#define OWL_E_VDD_ON_REG 0x4C
33#define OWL_W_VDD_ON_REG 0x4D
34#define MAX_M_VDD_ON_REG 0x4E
35#define MAX_N_VDD_ON_REG 0x4F
36#define MAX_S_VDD_ON_REG 0x50
37#define OWL_E_TRVDD0P75_ON_REG 0x51
38#define OWL_W_TRVDD0P75_ON_REG 0x52
39#define VDDPHY_HBM0_HBM2_HBM4_HBM6_ON_REG 0x53
40#define VDDPHY_HBM1_HBM3_HBM5_HBM7_ON_REG 0x54
41#define P1V5_PLL_VDDA_OWL_E_ON_REG 0x55
42#define P1V5_PLL_VDDA_SOC_ON_REG 0x56
43#define PLL_VDDA15_HBM0_HBM2_ON_REG 0x57
44#define PLL_VDDA15_HBM1_HBM3_ON_REG 0x58
45#define PLL_VDDA15_HBM4_HBM6_ON_REG 0x59
46#define PLL_VDDA15_HBM5_HBM7_ON_REG 0x5A
47#define IRIS_CLK_100MHZ_ON_REG 0x5B
48#define IRIS_CLK_48MHZ_ON_REG 0x5C
49#define IRIS_CLK_312_5_MHZ_ON_REG 0x5D
50#define VPP_HBM0_HBM2_HBM4_HBM6_ON_REG 0x5E
51#define VPP_HBM1_HBM3_HBM5_HBM7_ON_REG 0x5F
52#define VDDQC_HBM0_HBM2_HBM4_HBM6_ON_REG 0x60
53#define VDDQC_HBM1_HBM3_HBM5_HBM7_ON_REG 0x61
54#define VDDQL_HBM0_HBM2_HBM4_HBM6_ON_REG 0x62
55#define VDDQL_HBM1_HBM3_HBM5_HBM7_ON_REG 0x63
56#define HAMSA_AVDD_PCIE_ON_REG 0x64
57#define OWL_E_TRVDD0P9_ON_REG 0x65
58#define OWL_W_TRVDD0P9_ON_REG 0x66
59#define OWL_E_PVDD0P9_ON_REG 0x67
60#define OWL_W_PVDD0P9_ON_REG 0x68
61#define OWL_E_RVDD1P5_ON_REG 0x69
62#define OWL_W_RVDD1P5_ON_REG 0x6A
63#define HAMSA_VDDHRXTX_PCIE_ON_REG 0x6B
64#define PVDD1P5_ON_REG 0x6C
65#define HAMSA_POWER_ON_RESET_PLD_L_ON_REG 0x6D
66#define MEDHA0_POWER_ON_RESET_PLD_L_ON_REG 0x6E
67#define MEDHA1_POWER_ON_RESET_PLD_L_ON_REG 0x6F
68#define HAMSA_SYS_RST_PLD_L_ON_REG 0x70
69#define MEDHA0_SYS_RST_PLD_L_ON_REG 0x71
70#define MEDHA1_SYS_RST_PLD_L_ON_REG 0x72
71#define P4V2_ON_REG 0xAB
72#define P1V5_PLL_VDDA_OWL_W_ON_REG 0xAC
73#define FM_P3V3_CLK_ON_REG 0xAD
74
75// Power sequence Off (0x73~0x9D)
76#define PVDD1P5_DOWN_REG 0x73
77#define HAMSA_VDDHRXTX_PCIE_DOWN_REG 0x74
78#define P1V5_E_RVDD_DOWN_REG 0x75
79#define P1V5_W_RVDD_DOWN_REG 0x76
80#define P0V9_OWL_E_PVDD_DOWN_REG 0x77
81#define P0V9_OWL_W_PVDD_DOWN_REG 0x78
82#define OWL_E_TRVDD0P9_DOWN_REG 0x79
83#define OWL_W_TRVDD0P9_DOWN_REG 0x7A
84#define HAMSA_AVDD_PCIE_DOWN_REG 0x7B
85#define VDDQL_HBM0_HBM2_HBM4_HBM6_DOWN_REG 0x7C
86#define VDDQL_HBM1_HBM3_HBM5_HBM7_DOWN_REG 0x7D
87#define VDDQC_HBM0_HBM2_HBM4_HBM6_DOWN_REG 0x7E
88#define VDDQC_HBM1_HBM3_HBM5_HBM7_DOWN_REG 0x7F
89#define VPP_HBM0_HBM2_HBM4_HBM6_DOWN_REG 0x80
90#define VPP_HBM1_HBM3_HBM5_HBM7_DOWN_REG 0x81
91#define FM_IRIS_CLK_100MHZ_EN_N_DOWN_REG 0x82
92#define FM_CLK_48MHZ_EN_DOWN_REG 0x83
93#define FM_IRIS_CLK_312MHZ_EN_N_DOWN_REG 0x84
94#define PLL_VDDA15_HBM0_HBM2_DOWN_REG 0x85
95#define PLL_VDDA15_HBM1_HBM3_DOWN_REG 0x86
96#define PLL_VDDA15_HBM4_HBM6_DOWN_REG 0x87
97#define PLL_VDDA15_HBM5_HBM7_DOWN_REG 0x88
98#define P1V5_PLL_VDDA_SOC_DOWN_REG 0x89
99#define P1V5_PLL_VDDA_OWL_E_DOWN_REG 0x8A
100#define VDDPHY_HBM0_HBM2_HBM4_HBM6_DOWN_REG 0x8B
101#define VDDPHY_HBM1_HBM3_HBM5_HBM7_DOWN_REG 0x8C
102#define OWL_E_TRVDD0P75_DOWN_REG 0x8D
103#define OWL_W_TRVDD0P75_DOWN_REG 0x8E
104#define MAX_S_VDD_DOWN_REG 0x8F
105#define MAX_N_VDD_DOWN_REG 0x90
106#define MAX_M_VDD_DOWN_REG 0x91
107#define OWL_E_VDD_DOWN_REG 0x92
108#define OWL_W_VDD_DOWN_REG 0x93
109#define MEDHA0_VDD_DOWN_REG 0x94
110#define MEDHA1_VDD_DOWN_REG 0x95
111#define HAMSA_VDD_DOWN_REG 0x96
112#define P0V75_AVDD_HCSL_DOWN_REG 0x97
113#define P1V8_DOWN_REG 0x98
114#define LDO_IN_1V2_DOWN_REG 0x99
115#define P5V_DOWN_REG 0x9A
116#define P3V3_DOWN_REG 0x9B
117#define P12V_UBC_DOWN_REG 0x9C
118#define PERST_DELAY_DOWN_REG 0x9D
119#define P4V2_DOWN_REG 0xAE
120#define P1V5_PLL_VDDA_OWL_W_DOWN_REG 0xAF
121#define FM_P3V3_CLK_DOWN_REG 0xB0
122
123typedef struct power_sequence {
124 uint8_t index;
125 uint8_t cpld_offsets;
126 uint8_t *power_rail_name;
127 uint8_t value;
129
130#endif
struct power_sequence power_sequence
Definition: plat_hook.h:258
uint8_t cpld_offsets
Definition: plat_hook.h:260
uint8_t * power_rail_name
Definition: plat_hook.h:261
uint8_t index
Definition: plat_hook.h:259
uint8_t value
Definition: plat_hook.h:262