diff options
Diffstat (limited to 'src/flash/s3c2410_nand.c')
-rw-r--r-- | src/flash/s3c2410_nand.c | 40 |
1 files changed, 16 insertions, 24 deletions
diff --git a/src/flash/s3c2410_nand.c b/src/flash/s3c2410_nand.c index 26306976..4ec4f23a 100644 --- a/src/flash/s3c2410_nand.c +++ b/src/flash/s3c2410_nand.c @@ -30,30 +30,6 @@ #include "s3c24xx_nand.h" - -static int s3c2410_nand_device_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, struct nand_device_s *device); -static int s3c2410_init(struct nand_device_s *device); -static int s3c2410_read_data(struct nand_device_s *device, void *data); -static int s3c2410_write_data(struct nand_device_s *device, uint16_t data); -static int s3c2410_nand_ready(struct nand_device_s *device, int timeout); - -nand_flash_controller_t s3c2410_nand_controller = -{ - .name = "s3c2410", - .nand_device_command = s3c2410_nand_device_command, - .register_commands = s3c24xx_register_commands, - .init = s3c2410_init, - .reset = s3c24xx_reset, - .command = s3c24xx_command, - .address = s3c24xx_address, - .write_data = s3c2410_write_data, - .read_data = s3c2410_read_data, - .write_page = s3c24xx_write_page, - .read_page = s3c24xx_read_page, - .controller_ready = s3c24xx_controller_ready, - .nand_ready = s3c2410_nand_ready, -}; - static int s3c2410_nand_device_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, struct nand_device_s *device) @@ -136,3 +112,19 @@ static int s3c2410_nand_ready(struct nand_device_s *device, int timeout) return 0; } + +nand_flash_controller_t s3c2410_nand_controller = { + .name = "s3c2410", + .nand_device_command = &s3c2410_nand_device_command, + .register_commands = &s3c24xx_register_commands, + .init = &s3c2410_init, + .reset = &s3c24xx_reset, + .command = &s3c24xx_command, + .address = &s3c24xx_address, + .write_data = &s3c2410_write_data, + .read_data = &s3c2410_read_data, + .write_page = s3c24xx_write_page, + .read_page = s3c24xx_read_page, + .controller_ready = &s3c24xx_controller_ready, + .nand_ready = &s3c2410_nand_ready, + }; |