]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: nand: raw: denali: Wait for reset completion status
authorLey Foon Tan <ley.foon.tan@intel.com>
Fri, 10 Jul 2020 06:58:15 +0000 (14:58 +0800)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 11 Jul 2020 12:30:21 +0000 (21:30 +0900)
commit94e8b328a75cb940efca80e76a31cfffe8e3799e
tree7c46e00971274820b27d55556a83fd9a445f7654
parent3e57f879eee61df88c17ca447f1a9f6d7e598cde
mtd: nand: raw: denali: Wait for reset completion status

Fixed delay 200us is not working in certain platforms. Change to
poll for reset completion status to have more reliable reset process.

Controller will set the rst_comp bit in intr_status register after
controller has completed its reset and initialization process.

Tested-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Radu Bacrau <radu.bacrau@intel.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mtd/nand/raw/denali.c
drivers/mtd/nand/raw/denali.h
drivers/mtd/nand/raw/denali_dt.c