OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | nuc910_nand_controller |
Functions | |
NAND_DEVICE_COMMAND_HANDLER (nuc910_nand_device_command) | |
static int | nuc910_nand_address (struct nand_device *nand, uint8_t address) |
static int | nuc910_nand_command (struct nand_device *nand, uint8_t command) |
static int | nuc910_nand_init (struct nand_device *nand) |
static int | nuc910_nand_read (struct nand_device *nand, void *data) |
static int | nuc910_nand_read_block_data (struct nand_device *nand, uint8_t *data, int data_size) |
static int | nuc910_nand_ready (struct nand_device *nand, int timeout) |
static int | nuc910_nand_reset (struct nand_device *nand) |
static int | nuc910_nand_write (struct nand_device *nand, uint16_t data) |
static int | nuc910_nand_write_block_data (struct nand_device *nand, uint8_t *data, int data_size) |
static int | validate_target_state (struct nand_device *nand) |
Variables | |
struct nand_flash_controller | nuc910_nand_controller |
NAND_DEVICE_COMMAND_HANDLER | ( | nuc910_nand_device_command | ) |
Definition at line 157 of file nuc910.c.
References ERROR_NAND_DEVICE_INVALID, ERROR_OK, and LOG_ERROR.
|
static |
Definition at line 50 of file nuc910.c.
References ERROR_OK, NUC910_SMADDR, NUC910_SMADDR_EOA, nand_device::target, target_write_u32(), and validate_target_state().
|
static |
Definition at line 37 of file nuc910.c.
References ERROR_OK, NUC910_SMCMD, nand_device::target, target_write_u8(), and validate_target_state().
Referenced by nuc910_nand_reset().
|
static |
|
static |
Definition at line 63 of file nuc910.c.
References ERROR_OK, NUC910_SMDATA, nand_device::target, target_read_u8(), and validate_target_state().
Referenced by nuc910_nand_read_block_data().
|
static |
Definition at line 89 of file nuc910.c.
References arm_nandread(), arm_nand_data::chunk_size, nand_device::controller_priv, ERROR_NAND_NO_BUFFER, ERROR_OK, nuc910_nand_controller::io, nuc910_nand_read(), nand_device::page_size, and validate_target_state().
|
static |
Definition at line 142 of file nuc910.c.
References alive_sleep(), NUC910_SMISR, NUC910_SMISR_RB_, status, nand_device::target, and target_read_u32().
|
static |
Definition at line 137 of file nuc910.c.
References NAND_CMD_RESET, and nuc910_nand_command().
|
static |
Definition at line 76 of file nuc910.c.
References ERROR_OK, NUC910_SMDATA, nand_device::target, target_write_u8(), and validate_target_state().
Referenced by nuc910_nand_write_block_data().
|
static |
Definition at line 113 of file nuc910.c.
References arm_nandwrite(), arm_nand_data::chunk_size, nand_device::controller_priv, ERROR_NAND_NO_BUFFER, ERROR_OK, nuc910_nand_controller::io, nuc910_nand_write(), nand_device::page_size, and validate_target_state().
|
static |
Definition at line 25 of file nuc910.c.
References ERROR_NAND_OPERATION_FAILED, ERROR_OK, LOG_ERROR, target::state, nand_device::target, and TARGET_HALTED.
Referenced by nuc910_nand_address(), nuc910_nand_command(), nuc910_nand_read(), nuc910_nand_read_block_data(), nuc910_nand_write(), and nuc910_nand_write_block_data().