8 #ifndef OPENOCD_FLASH_NAND_S3C24XX_H
9 #define OPENOCD_FLASH_NAND_S3C24XX_H
31 #define S3C2410_NFREG(x) ((x) + 0x4e000000)
33 #define S3C24XX_DEVICE_COMMAND() \
34 COMMAND_HELPER(s3c24xx_nand_device_command, \
35 struct nand_device *nand, \
36 struct s3c24xx_nand_controller **info)
40 #define CALL_S3C24XX_DEVICE_COMMAND(d, i) \
42 int retval = CALL_COMMAND_HANDLER(s3c24xx_nand_device_command, d, i); \
43 if (retval != ERROR_OK) \
55 #define s3c24xx_write_page NULL
56 #define s3c24xx_read_page NULL
63 uint8_t *data,
int data_size);
65 uint8_t *data,
int data_size);
int s3c24xx_write_data(struct nand_device *nand, uint16_t data)
int s3c2440_read_block_data(struct nand_device *nand, uint8_t *data, int data_size)
int s3c2440_nand_ready(struct nand_device *nand, int timeout)
int s3c24xx_reset(struct nand_device *nand)
int s3c24xx_address(struct nand_device *nand, uint8_t address)
int s3c2440_write_block_data(struct nand_device *nand, uint8_t *data, int data_size)
int s3c24xx_command(struct nand_device *nand, uint8_t command)
int s3c24xx_read_data(struct nand_device *nand, void *data)
#define S3C24XX_DEVICE_COMMAND()