OpenBIC
OpenSource Bridge-IC
plat_pmic.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_PMIC_H
18#define PLAT_PMIC_H
19
20#include <stdint.h>
21
22#define MONITOR_PMIC_ERROR_STACK_SIZE 1024
23#define MONITOR_PMIC_ERROR_TIME_MS (3 * 1000) // 30s
24
25#define MAX_LEN_GET_PMIC_ERROR_INFO 7
26
27#define MAX_COUNT_DIMM 8
28#define MAX_COUNT_PMIC_ERROR_TYPE 17
29#define SYS_CPLD_BMC_CHANNEL_ADDR 0x1E // 8 bits
30#define PMIC_FAULT_STATUS_OFFSET 0x0B
31
32#define MAX_LEN_PMIC_CRITICAL_ERROR_INDEX 11
33
34#define CLEAR_MTP_RETRY_MAX 5
35
37void pmic_error_check();
39
40#endif
void start_monitor_pmic_error_thread()
Definition: plat_pmic.c:77
void read_pmic_error_when_dc_off()
Definition: plat_pmic.c:434
void pmic_error_check()
Definition: plat_pmic.c:209