OpenOCD
|
Go to the source code of this file.
Macros | |
#define | DATA_OFFS 0x200 |
#define | ECC_OFFS 0x120 |
#define | SPARE_OFFS 0x140 |
Functions | |
COMMAND_HANDLER (handle_lpc3180_select_command) | |
static int | lpc3180_address (struct nand_device *nand, uint8_t address) |
static int | lpc3180_command (struct nand_device *nand, uint8_t command) |
static int | lpc3180_controller_ready (struct nand_device *nand, int timeout) |
static float | lpc3180_cycle_time (struct nand_device *nand) |
static int | lpc3180_init (struct nand_device *nand) |
static int | lpc3180_nand_ready (struct nand_device *nand, int timeout) |
static int | lpc3180_pll (int fclkin, uint32_t pll_ctrl) |
static int | lpc3180_read_data (struct nand_device *nand, void *data) |
static int | lpc3180_read_page (struct nand_device *nand, uint32_t page, uint8_t *data, uint32_t data_size, uint8_t *oob, uint32_t oob_size) |
static int | lpc3180_reset (struct nand_device *nand) |
static int | lpc3180_tc_ready (struct nand_device *nand, int timeout) |
static int | lpc3180_write_data (struct nand_device *nand, uint16_t data) |
static int | lpc3180_write_page (struct nand_device *nand, uint32_t page, uint8_t *data, uint32_t data_size, uint8_t *oob, uint32_t oob_size) |
NAND_DEVICE_COMMAND_HANDLER (lpc3180_nand_device_command) | |
Variables | |
static const struct command_registration | lpc3180_command_handler [] |
static const struct command_registration | lpc3180_exec_command_handlers [] |
struct nand_flash_controller | lpc3180_nand_controller |
COMMAND_HANDLER | ( | handle_lpc3180_select_command | ) |
Definition at line 1267 of file lpc3180.c.
References CMD, CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, command_print(), nand_device::controller_priv, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, get_nand_device_by_num(), lpc3180_nand_controller::is_bulk, LPC3180_MLC_CONTROLLER, LPC3180_SLC_CONTROLLER, NULL, and lpc3180_nand_controller::selected_controller.
|
static |
Definition at line 318 of file lpc3180.c.
References nand_device::controller_priv, ERROR_NAND_OPERATION_FAILED, ERROR_OK, LOG_ERROR, LPC3180_MLC_CONTROLLER, LPC3180_NO_CONTROLLER, LPC3180_SLC_CONTROLLER, lpc3180_nand_controller::selected_controller, target::state, nand_device::target, TARGET_HALTED, and target_write_u32().
|
static |
Definition at line 294 of file lpc3180.c.
References nand_device::controller_priv, ERROR_NAND_OPERATION_FAILED, ERROR_OK, LOG_ERROR, LPC3180_MLC_CONTROLLER, LPC3180_NO_CONTROLLER, LPC3180_SLC_CONTROLLER, lpc3180_nand_controller::selected_controller, target::state, nand_device::target, TARGET_HALTED, and target_write_u32().
|
static |
Definition at line 1149 of file lpc3180.c.
References alive_sleep(), nand_device::controller_priv, ERROR_NAND_OPERATION_FAILED, LOG_DEBUG, LOG_ERROR, LPC3180_MLC_CONTROLLER, LPC3180_SLC_CONTROLLER, lpc3180_nand_controller::selected_controller, target::state, status, nand_device::target, TARGET_HALTED, target_read_u32(), and target_read_u8().
Referenced by lpc3180_read_page(), lpc3180_reset(), and lpc3180_write_page().
|
static |
Definition at line 83 of file lpc3180.c.
References nand_device::controller_priv, LOG_DEBUG, lpc3180_pll(), lpc3180_nand_controller::osc_freq, nand_device::target, and target_read_u32().
Referenced by lpc3180_init().
|
static |
Definition at line 127 of file lpc3180.c.
References nand_device::address_cycles, nand_device::bus_width, nand_device::controller_priv, ERROR_NAND_OPERATION_FAILED, ERROR_NAND_OPERATION_NOT_SUPPORTED, ERROR_OK, LOG_DEBUG, LOG_ERROR, LOG_WARNING, lpc3180_cycle_time(), LPC3180_MLC_CONTROLLER, LPC3180_NO_CONTROLLER, lpc3180_reset(), LPC3180_SLC_CONTROLLER, nand_device::page_size, lpc3180_nand_controller::selected_controller, target::state, lpc3180_nand_controller::sw_write_protection, nand_device::target, TARGET_HALTED, and target_write_u32().
|
static |
Definition at line 1192 of file lpc3180.c.
References alive_sleep(), nand_device::controller_priv, ERROR_NAND_OPERATION_FAILED, LOG_DEBUG, LOG_ERROR, LPC3180_MLC_CONTROLLER, LPC3180_SLC_CONTROLLER, lpc3180_nand_controller::selected_controller, target::state, status, nand_device::target, TARGET_HALTED, target_read_u32(), and target_read_u8().
|
static |
Definition at line 55 of file lpc3180.c.
References LOG_WARNING.
Referenced by lpc3180_cycle_time().
|
static |
Definition at line 366 of file lpc3180.c.
References nand_device::bus_width, nand_device::controller_priv, ERROR_NAND_OPERATION_FAILED, ERROR_OK, LOG_ERROR, LPC3180_MLC_CONTROLLER, LPC3180_NO_CONTROLLER, LPC3180_SLC_CONTROLLER, lpc3180_nand_controller::selected_controller, target::state, nand_device::target, TARGET_HALTED, target_read_u16(), target_read_u32(), and target_read_u8().
|
static |
Definition at line 796 of file lpc3180.c.
References nand_device::address_cycles, nand_device::controller_priv, DATA_OFFS, ECC_OFFS, ERROR_FLASH_OPERATION_FAILED, ERROR_NAND_OPERATION_FAILED, ERROR_NAND_OPERATION_NOT_SUPPORTED, ERROR_OK, working_area::free, lpc3180_nand_controller::is_bulk, LOG_ERROR, LOG_INFO, LOG_WARNING, lpc3180_controller_ready(), LPC3180_MLC_CONTROLLER, LPC3180_NO_CONTROLLER, LPC3180_SLC_CONTROLLER, lpc3180_tc_ready(), NAND_CMD_READ0, NAND_CMD_READOOB, NAND_CMD_READSTART, nand_page_command(), nand_read_page_raw(), nand_device::page_size, lpc3180_nand_controller::selected_controller, SPARE_OFFS, target::state, nand_device::target, target_alloc_working_area(), target_free_working_area(), TARGET_HALTED, target_read_memory(), target_read_u32(), target_write_u32(), target::working_area_phys, and target::working_area_size.
|
static |
Definition at line 260 of file lpc3180.c.
References nand_device::controller_priv, ERROR_NAND_OPERATION_FAILED, ERROR_NAND_OPERATION_TIMEOUT, ERROR_OK, LOG_ERROR, lpc3180_controller_ready(), LPC3180_MLC_CONTROLLER, LPC3180_NO_CONTROLLER, LPC3180_SLC_CONTROLLER, lpc3180_nand_controller::selected_controller, target::state, nand_device::target, TARGET_HALTED, and target_write_u32().
Referenced by lpc3180_init().
|
static |
Definition at line 1235 of file lpc3180.c.
References alive_sleep(), nand_device::controller_priv, ERROR_NAND_OPERATION_FAILED, LOG_DEBUG, LOG_ERROR, LPC3180_SLC_CONTROLLER, lpc3180_nand_controller::selected_controller, target::state, status, nand_device::target, TARGET_HALTED, and target_read_u32().
Referenced by lpc3180_read_page(), and lpc3180_write_page().
|
static |
Definition at line 342 of file lpc3180.c.
References nand_device::controller_priv, ERROR_NAND_OPERATION_FAILED, ERROR_OK, LOG_ERROR, LPC3180_MLC_CONTROLLER, LPC3180_NO_CONTROLLER, LPC3180_SLC_CONTROLLER, lpc3180_nand_controller::selected_controller, target::state, nand_device::target, TARGET_HALTED, and target_write_u32().
|
static |
Definition at line 412 of file lpc3180.c.
References nand_device::address_cycles, nand_device::controller_priv, DATA_OFFS, ERROR_FLASH_OPERATION_FAILED, ERROR_NAND_OPERATION_FAILED, ERROR_NAND_OPERATION_NOT_SUPPORTED, ERROR_OK, working_area::free, lpc3180_nand_controller::is_bulk, LOG_ERROR, LOG_INFO, lpc3180_controller_ready(), LPC3180_MLC_CONTROLLER, LPC3180_NO_CONTROLLER, LPC3180_SLC_CONTROLLER, lpc3180_tc_ready(), NAND_CMD_PAGEPROG, NAND_CMD_SEQIN, nand_page_command(), nand_read_status(), NAND_STATUS_FAIL, nand_write_finish(), nand_write_page_raw(), nand_device::page_size, lpc3180_nand_controller::selected_controller, SPARE_OFFS, target::state, status, nand_device::target, target_alloc_working_area(), target_free_working_area(), TARGET_HALTED, target_write_memory(), target_write_u32(), target::working_area_phys, and target::working_area_size.
NAND_DEVICE_COMMAND_HANDLER | ( | lpc3180_nand_device_command | ) |
Definition at line 29 of file lpc3180.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_WARNING, LPC3180_NO_CONTROLLER, lpc3180_nand_controller::osc_freq, lpc3180_nand_controller::selected_controller, lpc3180_nand_controller::sw_wp_lower_bound, lpc3180_nand_controller::sw_wp_upper_bound, and lpc3180_nand_controller::sw_write_protection.
|
static |
|
static |