OpenBIC
OpenSource Bridge-IC
plat_soc_pwron_reset_shell.c File Reference
#include <shell/shell.h>
#include <stdlib.h>
#include <logging/log.h>
#include "plat_isr.h"
#include "plat_i2c.h"
Include dependency graph for plat_soc_pwron_reset_shell.c:

Macros

#define AEGIS_CPLD_ADDR   (0x4C >> 1)
 
#define AEGIS_BOARD_POWER_ENABLE   0xFF
 
#define AEGIS_BOARD_POWER_DISABLE   0xFE
 

Functions

 LOG_MODULE_REGISTER (plat_soc_pwron_reset_shell, LOG_LEVEL_DBG)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_soc_pwron_reset_cmds, SHELL_CMD_ARG(override, NULL, "soc_pwron_reset override <drive-level>", cmd_soc_pwron_reset_set, 2, 1), SHELL_CMD(passthru, NULL, "soc_pwron_reset passthru", cmd_soc_pwron_reset_set), SHELL_SUBCMD_SET_END)
 
 SHELL_CMD_REGISTER (soc_pwron_reset, &sub_soc_pwron_reset_cmds, "soc_pwron_reset commands", NULL)
 

Macro Definition Documentation

◆ AEGIS_BOARD_POWER_DISABLE

#define AEGIS_BOARD_POWER_DISABLE   0xFE

◆ AEGIS_BOARD_POWER_ENABLE

#define AEGIS_BOARD_POWER_ENABLE   0xFF

◆ AEGIS_CPLD_ADDR

#define AEGIS_CPLD_ADDR   (0x4C >> 1)

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_soc_pwron_reset_shell  ,
LOG_LEVEL_DBG   
)

◆ SHELL_CMD_REGISTER()

SHELL_CMD_REGISTER ( soc_pwron_reset  ,
sub_soc_pwron_reset_cmds,
"soc_pwron_reset commands"  ,
NULL   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE()

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_soc_pwron_reset_cmds  ,
SHELL_CMD_ARG(override, NULL, "soc_pwron_reset override <drive-level>", cmd_soc_pwron_reset_set, 2, 1)  ,
SHELL_CMD(passthru, NULL, "soc_pwron_reset passthru", cmd_soc_pwron_reset_set)  ,
SHELL_SUBCMD_SET_END   
)