diff options
author | wdenk <wdenk> | 2004-06-09 14:58:14 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-06-09 14:58:14 +0000 |
commit | 13a5695b7c454d5a2a5a885002cfe0e18536dad9 (patch) | |
tree | 5241d79f04e978a427ad34f49b367984cdc88001 /common/cmd_nand.c | |
parent | c3c7f861aef5abb5173f16af66c3941149954553 (diff) | |
download | u-boot-13a5695b7c454d5a2a5a885002cfe0e18536dad9.tar.gz u-boot-13a5695b7c454d5a2a5a885002cfe0e18536dad9.tar.xz u-boot-13a5695b7c454d5a2a5a885002cfe0e18536dad9.zip |
Patch by Jian Zhang, 20 May 2004:
add support for environment in NAND flash
Diffstat (limited to 'common/cmd_nand.c')
-rw-r--r-- | common/cmd_nand.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c index 4b693a999a..8d115eb267 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -70,10 +70,10 @@ struct nand_oob_config { * Function Prototypes */ static void nand_print(struct nand_chip *nand); -static int nand_rw (struct nand_chip* nand, int cmd, +int nand_rw (struct nand_chip* nand, int cmd, size_t start, size_t len, size_t * retlen, u_char * buf); -static int nand_erase(struct nand_chip* nand, size_t ofs, size_t len, int clean); +int nand_erase(struct nand_chip* nand, size_t ofs, size_t len, int clean); static int nand_read_ecc(struct nand_chip *nand, size_t start, size_t len, size_t * retlen, u_char *buf, u_char *ecc_code); static int nand_write_ecc (struct nand_chip* nand, size_t to, size_t len, @@ -429,7 +429,7 @@ static void nand_print_bad(struct nand_chip* nand) * 3: NANDRW_READ | NANDRW_JFFS2 read, data all 0xff for bad blocks * 7: NANDRW_READ | NANDRW_JFFS2 | NANDRW_JFFS2_SKIP read, skip bad blocks */ -static int nand_rw (struct nand_chip* nand, int cmd, +int nand_rw (struct nand_chip* nand, int cmd, size_t start, size_t len, size_t * retlen, u_char * buf) { @@ -1304,7 +1304,7 @@ static int nand_write_oob(struct nand_chip* nand, size_t ofs, size_t len, } -static int nand_erase(struct nand_chip* nand, size_t ofs, size_t len, int clean) +int nand_erase(struct nand_chip* nand, size_t ofs, size_t len, int clean) { /* This is defined as a structure so it will work on any system * using native endian jffs2 (the default). |