提交 e7f9a6a4 编写于 作者: E Ezequiel Garcia 提交者: Brian Norris

mtd: nand: pxa3xx: Fix SEQIN column address set

This commit adds support page programming with a non-zero "column"
address setting. This is important to support OOB writing, through
command sequences such as:

  cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, ofs);
  write_buf(mtd, oob_buf, 6);
  cmdfunc(mtd, NAND_CMD_PAGEPROG, -1, -1);
Signed-off-by: NEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tested-by: NDaniel Mack <zonque@gmail.com>
Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
上级 39f83d15
...@@ -690,7 +690,8 @@ static int prepare_set_command(struct pxa3xx_nand_info *info, int command, ...@@ -690,7 +690,8 @@ static int prepare_set_command(struct pxa3xx_nand_info *info, int command,
case NAND_CMD_SEQIN: case NAND_CMD_SEQIN:
set_command_address(info, mtd->writesize, column, page_addr); info->buf_start = column;
set_command_address(info, mtd->writesize, 0, page_addr);
break; break;
case NAND_CMD_PAGEPROG: case NAND_CMD_PAGEPROG:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册