Go to the source code of this file.
◆ CHECK_HALTED
Value: do { \
LOG_ERROR("NAND flash access requires halted target"); \
} \
} while (0)
#define ERROR_NAND_OPERATION_FAILED
Definition at line 28 of file orion.c.
◆ NAND_DEVICE_COMMAND_HANDLER()
NAND_DEVICE_COMMAND_HANDLER |
( |
orion_nand_device_command |
| ) |
|
Definition at line 102 of file orion.c.
References orion_nand_controller::addr, ARM_NAND_NONE, orion_nand_controller::cmd, CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, arm_nand_data::data, orion_nand_controller::data, ERROR_COMMAND_SYNTAX_ERROR, ERROR_NAND_DEVICE_INVALID, ERROR_OK, orion_nand_controller::io, LOG_ERROR, arm_nand_data::op, and arm_nand_data::target.
◆ orion_nand_address()
static int orion_nand_address |
( |
struct nand_device * |
nand, |
|
|
uint8_t |
address |
|
) |
| |
|
static |
◆ orion_nand_command()
static int orion_nand_command |
( |
struct nand_device * |
nand, |
|
|
uint8_t |
command |
|
) |
| |
|
static |
◆ orion_nand_fast_block_write()
static int orion_nand_fast_block_write |
( |
struct nand_device * |
nand, |
|
|
uint8_t * |
data, |
|
|
int |
size |
|
) |
| |
|
static |
◆ orion_nand_init()
static int orion_nand_init |
( |
struct nand_device * |
nand | ) |
|
|
static |
◆ orion_nand_read()
static int orion_nand_read |
( |
struct nand_device * |
nand, |
|
|
void * |
data |
|
) |
| |
|
static |
◆ orion_nand_reset()
static int orion_nand_reset |
( |
struct nand_device * |
nand | ) |
|
|
static |
◆ orion_nand_slow_block_write()
static int orion_nand_slow_block_write |
( |
struct nand_device * |
nand, |
|
|
uint8_t * |
data, |
|
|
int |
size |
|
) |
| |
|
static |
◆ orion_nand_write()
static int orion_nand_write |
( |
struct nand_device * |
nand, |
|
|
uint16_t |
data |
|
) |
| |
|
static |
◆ orion_nand_controller
Initial value:= {
.name = "orion",
.usage = "<target_id> <NAND_address>",
.nand_device_command = orion_nand_device_command,
}
static int orion_nand_read(struct nand_device *nand, void *data)
static int orion_nand_write(struct nand_device *nand, uint16_t data)
static int orion_nand_command(struct nand_device *nand, uint8_t command)
static int orion_nand_fast_block_write(struct nand_device *nand, uint8_t *data, int size)
static int orion_nand_address(struct nand_device *nand, uint8_t address)
static int orion_nand_reset(struct nand_device *nand)
static int orion_nand_init(struct nand_device *nand)
Definition at line 134 of file orion.c.