|
OpenBIC
OpenSource Bridge-IC
|
#include <shell/shell.h>#include <stdlib.h>#include <logging/log.h>#include "plat_isr.h"#include "plat_i2c.h"#include "plat_hook.h"#include "plat_cpld.h"#include "plat_ioexp.h"
Macros | |
| #define | AEGIS_CPLD_ADDR (0x4C >> 1) |
Functions | |
| LOG_MODULE_REGISTER (plat_bootstrap_shell, LOG_LEVEL_DBG) | |
| uint8_t | read_bits (uint8_t data, uint8_t start_bit, uint8_t end_bit, bool reverse) |
| SHELL_DYNAMIC_CMD_CREATE (strap_name, strap_rname_get_) | |
| SHELL_STATIC_SUBCMD_SET_CREATE (sub_bootstrap_get_cmds, SHELL_CMD(all, NULL, "bootstrap get all", cmd_bootstrap_get_all), SHELL_SUBCMD_SET_END) | |
| SHELL_STATIC_SUBCMD_SET_CREATE (sub_bootstrap_cmds, SHELL_CMD(get, &sub_bootstrap_get_cmds, "get all", NULL), SHELL_CMD_ARG(set, &strap_name, "set <strap-name>|all <hex-value>|default [perm]", cmd_bootstrap_set, 3, 1), SHELL_SUBCMD_SET_END) | |
| SHELL_CMD_REGISTER (bootstrap, &sub_bootstrap_cmds, "bootstrap set/get commands", NULL) | |
| #define AEGIS_CPLD_ADDR (0x4C >> 1) |
| LOG_MODULE_REGISTER | ( | plat_bootstrap_shell | , |
| LOG_LEVEL_DBG | |||
| ) |
| uint8_t read_bits | ( | uint8_t | data, |
| uint8_t | start_bit, | ||
| uint8_t | end_bit, | ||
| bool | reverse | ||
| ) |
| SHELL_CMD_REGISTER | ( | bootstrap | , |
| & | sub_bootstrap_cmds, | ||
| "bootstrap set/get commands" | , | ||
| NULL | |||
| ) |
| SHELL_DYNAMIC_CMD_CREATE | ( | strap_name | , |
| strap_rname_get_ | |||
| ) |
| SHELL_STATIC_SUBCMD_SET_CREATE | ( | sub_bootstrap_cmds | , |
| SHELL_CMD(get, &sub_bootstrap_get_cmds, "get all", NULL) | , | ||
| SHELL_CMD_ARG(set, &strap_name, "set <strap-name>|all <hex-value>|default [perm]", cmd_bootstrap_set, 3, 1) | , | ||
| SHELL_SUBCMD_SET_END | |||
| ) |
| SHELL_STATIC_SUBCMD_SET_CREATE | ( | sub_bootstrap_get_cmds | , |
| SHELL_CMD(all, NULL, "bootstrap get all", cmd_bootstrap_get_all) | , | ||
| SHELL_SUBCMD_SET_END | |||
| ) |