diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-04-23 23:05:55 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-07-26 16:28:21 +0200 |
commit | 2744a4e688851fc3b5e2937bf047100c85daeb43 (patch) | |
tree | 23b2d7598a0601ed7097883cc71a14b58d9bb1ae /drivers/mtd/spi/stmicro.c | |
parent | d8e392d95f20cb21767b99d92a9a7f852b0fec63 (diff) | |
download | u-boot-imx-2744a4e688851fc3b5e2937bf047100c85daeb43.zip u-boot-imx-2744a4e688851fc3b5e2937bf047100c85daeb43.tar.gz u-boot-imx-2744a4e688851fc3b5e2937bf047100c85daeb43.tar.bz2 |
sf: unify write enable commands
Every spi flash uses the same write enable command, so unify this in
the common code.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/mtd/spi/stmicro.c')
-rw-r--r-- | drivers/mtd/spi/stmicro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c index a1959ca..80d97b4 100644 --- a/drivers/mtd/spi/stmicro.c +++ b/drivers/mtd/spi/stmicro.c @@ -169,7 +169,7 @@ static int stmicro_write(struct spi_flash *flash, ("PP: 0x%p => cmd = { 0x%02x 0x%02x%02x%02x } chunk_len = %d\n", buf + actual, cmd[0], cmd[1], cmd[2], cmd[3], chunk_len); - ret = spi_flash_cmd(flash->spi, CMD_M25PXX_WREN, NULL, 0); + ret = spi_flash_cmd_write_enable(flash); if (ret < 0) { debug("SF: Enabling Write failed\n"); break; |