|
OpenBIC
OpenSource Bridge-IC
|
#include <stdlib.h>#include <logging/log.h>#include "plat_hook.h"#include "plat_class.h"#include "hal_i2c.h"#include "plat_i2c.h"
Macros | |
| #define | AEGIS_CPLD_ADDR (0x4C >> 1) |
| #define | I2C_BUS_CPLD I2C_BUS5 |
| #define | CPLD_ATH_GPIO_SWITCH_ADDR 0x3D |
Functions | |
| LOG_MODULE_REGISTER (plat_ath_gpio_switch_shell, LOG_LEVEL_DBG) | |
| void | cmd_ath_gpio_status_get (const struct shell *shell, size_t argc, char **argv) |
| SHELL_DYNAMIC_CMD_CREATE (ath_gpio_name, ath_gpio_name_get) | |
| SHELL_STATIC_SUBCMD_SET_CREATE (sub_ath_gpio_switch_cmds, SHELL_CMD(get, NULL, "ath_gpio_switch get status", cmd_ath_gpio_status_get), SHELL_CMD_ARG(set, &ath_gpio_name, "ath_gpio_switch set <ATH_GPIO_3|ATH_GPIO_4|all> <enable|disable> [perm]", cmd_ath_gpio_status_set, 3, 1), SHELL_SUBCMD_SET_END) | |
| SHELL_CMD_REGISTER (ath_gpio_switch, &sub_ath_gpio_switch_cmds, "ath_gpio switch command", NULL) | |
| #define AEGIS_CPLD_ADDR (0x4C >> 1) |
| #define CPLD_ATH_GPIO_SWITCH_ADDR 0x3D |
| #define I2C_BUS_CPLD I2C_BUS5 |
| void cmd_ath_gpio_status_get | ( | const struct shell * | shell, |
| size_t | argc, | ||
| char ** | argv | ||
| ) |
| LOG_MODULE_REGISTER | ( | plat_ath_gpio_switch_shell | , |
| LOG_LEVEL_DBG | |||
| ) |
| SHELL_CMD_REGISTER | ( | ath_gpio_switch | , |
| & | sub_ath_gpio_switch_cmds, | ||
| "ath_gpio switch command" | , | ||
| NULL | |||
| ) |
| SHELL_DYNAMIC_CMD_CREATE | ( | ath_gpio_name | , |
| ath_gpio_name_get | |||
| ) |
| SHELL_STATIC_SUBCMD_SET_CREATE | ( | sub_ath_gpio_switch_cmds | , |
| SHELL_CMD(get, NULL, "ath_gpio_switch get status", cmd_ath_gpio_status_get) | , | ||
| SHELL_CMD_ARG(set, &ath_gpio_name, "ath_gpio_switch set <ATH_GPIO_3|ATH_GPIO_4|all> <enable|disable> [perm]", cmd_ath_gpio_status_set, 3, 1) | , | ||
| SHELL_SUBCMD_SET_END | |||
| ) |