#include <stdlib.h>
#include <shell/shell.h>
#include "plat_cpld.h"
#include "plat_gpio.h"
|
| void | cmd_spi_disable (const struct shell *shell, size_t argc, char **argv) |
| |
| void | cmd_spi_enable_hamsa (const struct shell *shell, size_t argc, char **argv) |
| |
| void | cmd_spi_enable_nuwa0 (const struct shell *shell, size_t argc, char **argv) |
| |
| void | cmd_spi_enable_nuwa1 (const struct shell *shell, size_t argc, char **argv) |
| |
| | SHELL_STATIC_SUBCMD_SET_CREATE (sub_spu_enable_cmds, SHELL_CMD(hamsa, NULL, "spi enable hamsa test command", cmd_spi_enable_hamsa), SHELL_CMD(nuwa0, NULL, "spi enable nuwa0 test command", cmd_spi_enable_nuwa0), SHELL_CMD(nuwa1, NULL, "spi enable nuwa1 test command", cmd_spi_enable_nuwa1), SHELL_SUBCMD_SET_END) |
| |
| | SHELL_STATIC_SUBCMD_SET_CREATE (sub_set_spimux_oob_cmds, SHELL_CMD(enable, &sub_spu_enable_cmds, "spi enable test command", NULL), SHELL_CMD(disable, NULL, "spi disable test command", cmd_spi_disable), SHELL_SUBCMD_SET_END) |
| |
| | SHELL_CMD_REGISTER (set_spimux_oob, &sub_set_spimux_oob_cmds, "spi test commands", NULL) |
| |
◆ ARKE_BOARD_POWER_ENABLE
| #define ARKE_BOARD_POWER_ENABLE 0xFF |
◆ HAMSA_POWER_ON_RESET_PLD_L_BIT
| #define HAMSA_POWER_ON_RESET_PLD_L_BIT 5 |
◆ HAMSA_SYS_RST_PLD_L_BIT
| #define HAMSA_SYS_RST_PLD_L_BIT 2 |
◆ NUWA0_POWER_ON_RESET_PLD_L_BIT
| #define NUWA0_POWER_ON_RESET_PLD_L_BIT 4 |
◆ NUWA0_SYS_RST_PLD_L_BIT
| #define NUWA0_SYS_RST_PLD_L_BIT 1 |
◆ NUWA1_POWER_ON_RESET_PLD_L_BIT
| #define NUWA1_POWER_ON_RESET_PLD_L_BIT 3 |
◆ NUWA1_SYS_RST_PLD_L_BIT
| #define NUWA1_SYS_RST_PLD_L_BIT 0 |
◆ cmd_spi_disable()
| void cmd_spi_disable |
( |
const struct shell * |
shell, |
|
|
size_t |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ cmd_spi_enable_hamsa()
| void cmd_spi_enable_hamsa |
( |
const struct shell * |
shell, |
|
|
size_t |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ cmd_spi_enable_nuwa0()
| void cmd_spi_enable_nuwa0 |
( |
const struct shell * |
shell, |
|
|
size_t |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ cmd_spi_enable_nuwa1()
| void cmd_spi_enable_nuwa1 |
( |
const struct shell * |
shell, |
|
|
size_t |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ SHELL_CMD_REGISTER()
| SHELL_CMD_REGISTER |
( |
set_spimux_oob |
, |
|
|
& |
sub_set_spimux_oob_cmds, |
|
|
"spi test commands" |
, |
|
|
NULL |
|
|
) |
| |
◆ SHELL_STATIC_SUBCMD_SET_CREATE() [1/2]
| SHELL_STATIC_SUBCMD_SET_CREATE |
( |
sub_set_spimux_oob_cmds |
, |
|
|
SHELL_CMD(enable, &sub_spu_enable_cmds, "spi enable test command", NULL) |
, |
|
|
SHELL_CMD(disable, NULL, "spi disable test command", cmd_spi_disable) |
, |
|
|
SHELL_SUBCMD_SET_END |
|
|
) |
| |
◆ SHELL_STATIC_SUBCMD_SET_CREATE() [2/2]
| SHELL_STATIC_SUBCMD_SET_CREATE |
( |
sub_spu_enable_cmds |
, |
|
|
SHELL_CMD(hamsa, NULL, "spi enable hamsa test command", cmd_spi_enable_hamsa) |
, |
|
|
SHELL_CMD(nuwa0, NULL, "spi enable nuwa0 test command", cmd_spi_enable_nuwa0) |
, |
|
|
SHELL_CMD(nuwa1, NULL, "spi enable nuwa1 test command", cmd_spi_enable_nuwa1) |
, |
|
|
SHELL_SUBCMD_SET_END |
|
|
) |
| |