OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | s3c24xx_nand_controller |
Macros | |
#define | CALL_S3C24XX_DEVICE_COMMAND(d, i) |
#define | S3C2410_NFREG(x) ((x) + 0x4e000000) |
#define | S3C24XX_DEVICE_COMMAND() |
#define | s3c24xx_read_page NULL |
#define | s3c24xx_write_page NULL |
Functions | |
int | s3c2440_nand_ready (struct nand_device *nand, int timeout) |
int | s3c2440_read_block_data (struct nand_device *nand, uint8_t *data, int data_size) |
int | s3c2440_write_block_data (struct nand_device *nand, uint8_t *data, int data_size) |
int | s3c24xx_address (struct nand_device *nand, uint8_t address) |
int | s3c24xx_command (struct nand_device *nand, uint8_t command) |
int | s3c24xx_read_data (struct nand_device *nand, void *data) |
int | s3c24xx_reset (struct nand_device *nand) |
int | s3c24xx_write_data (struct nand_device *nand, uint16_t data) |
#define CALL_S3C24XX_DEVICE_COMMAND | ( | d, | |
i | |||
) |
S3C24XX_DEVICE_COMMAND | ( | ) |
int s3c2440_nand_ready | ( | struct nand_device * | nand, |
int | timeout | ||
) |
Definition at line 49 of file s3c2440.c.
References alive_sleep(), nand_device::controller_priv, ERROR_NAND_OPERATION_FAILED, LOG_ERROR, s3c24xx_nand_controller::nfstat, S3C2440_NFSTAT_READY, target::state, status, nand_device::target, TARGET_HALTED, and target_read_u8().
int s3c2440_read_block_data | ( | struct nand_device * | nand, |
uint8_t * | data, | ||
int | data_size | ||
) |
Definition at line 75 of file s3c2440.c.
References nand_device::controller_priv, s3c24xx_nand_controller::data, ERROR_NAND_OPERATION_FAILED, ERROR_OK, LOG_ERROR, LOG_INFO, target::state, nand_device::target, TARGET_HALTED, target_read_u32(), and target_read_u8().
int s3c2440_write_block_data | ( | struct nand_device * | nand, |
uint8_t * | data, | ||
int | data_size | ||
) |
int s3c24xx_address | ( | struct nand_device * | nand, |
uint8_t | address | ||
) |
Definition at line 66 of file s3c24xx.c.
References s3c24xx_nand_controller::addr, nand_device::controller_priv, ERROR_NAND_OPERATION_FAILED, ERROR_OK, LOG_ERROR, target::state, nand_device::target, TARGET_HALTED, and target_write_u16().
int s3c24xx_command | ( | struct nand_device * | nand, |
uint8_t | command | ||
) |
Definition at line 52 of file s3c24xx.c.
References s3c24xx_nand_controller::cmd, nand_device::controller_priv, ERROR_NAND_OPERATION_FAILED, ERROR_OK, LOG_ERROR, target::state, nand_device::target, TARGET_HALTED, and target_write_u16().
int s3c24xx_read_data | ( | struct nand_device * | nand, |
void * | data | ||
) |
Definition at line 94 of file s3c24xx.c.
References nand_device::controller_priv, s3c24xx_nand_controller::data, ERROR_NAND_OPERATION_FAILED, ERROR_OK, LOG_ERROR, target::state, nand_device::target, TARGET_HALTED, and target_read_u8().
int s3c24xx_reset | ( | struct nand_device * | nand | ) |
Definition at line 37 of file s3c24xx.c.
References s3c24xx_nand_controller::cmd, nand_device::controller_priv, ERROR_NAND_OPERATION_FAILED, ERROR_OK, LOG_ERROR, target::state, nand_device::target, TARGET_HALTED, and target_write_u32().
int s3c24xx_write_data | ( | struct nand_device * | nand, |
uint16_t | data | ||
) |
Definition at line 80 of file s3c24xx.c.
References nand_device::controller_priv, s3c24xx_nand_controller::data, ERROR_NAND_OPERATION_FAILED, ERROR_OK, LOG_ERROR, target::state, nand_device::target, TARGET_HALTED, and target_write_u8().