OpenBIC
OpenSource Bridge-IC
shell_arke_power.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#include <shell/shell.h>
17#ifndef PLAT_ARKE_POWER_H
18#define PLAT_ARKE_POWER_H
21 uint8_t addr;
22 uint8_t bus;
23 uint8_t *clock_name;
25
32};
33
34#define CLK_BUF_U85_ADDR (0xCE >> 1)
35#define CLK_BUF_U690_ADDR (0xD8 >> 1)
36#define CLK_BUF_U88_ADDR (0xDE >> 1)
37#define CLK_GEN_100M_U86_ADDR 0x9
38#define CLK_BUF_100M_WRITE_LOCK_CLEAR_LOS_EVENT_OFFSET 0x27
39#define CLK_GEN_LOSMON_EVENT_OFFSET 0x5a
40#define CLK_BUF_100M_BYTE_COUNT 0x7
41
42bool check_p3v3_p5v_pwrgd(void);
44void pwer_gd_get_status(const struct shell *shell);
45void clear_clock_status(const struct shell *shell, uint8_t clock_index);
46#endif
void pwer_gd_get_status(const struct shell *shell)
Definition: shell_arke_power.c:415
bool check_p3v3_p5v_pwrgd(void)
Definition: shell_arke_power.c:362
void power_on_p3v3_osfp()
Definition: shell_arke_power.c:380
struct pwr_clock_compnt_mapping pwr_clock_compnt_mapping
void clear_clock_status(const struct shell *shell, uint8_t clock_index)
Definition: shell_arke_power.c:237
PWR_CLOCK_COMPONENT
Definition: shell_arke_power.h:26
@ CLK_BUF_100M_U88
Definition: shell_arke_power.h:29
@ CLK_BUF_100M_U85
Definition: shell_arke_power.h:27
@ CLK_COMPONENT_MAX
Definition: shell_arke_power.h:31
@ CLK_BUF_100M_U690
Definition: shell_arke_power.h:28
@ CLK_GEN_100M_U86
Definition: shell_arke_power.h:30
Definition: shell_arke_power.h:19
uint8_t clock_name_index
Definition: shell_arke_power.h:20
uint8_t * clock_name
Definition: shell_arke_power.h:23
uint8_t bus
Definition: shell_arke_power.h:22
uint8_t addr
Definition: shell_arke_power.h:21