]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: rawnand: denali_dt: insert udelay() after reset deassert
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 29 Jan 2020 15:55:54 +0000 (00:55 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 31 Jan 2020 16:14:32 +0000 (01:14 +0900)
commit38296191e76348462412befeac1dde280ee65e02
tree33fcf210705da30c228dafe1ad442f2e2883fbde
parentdd0c3809f27312327354231aeefcdd978f7eef14
mtd: rawnand: denali_dt: insert udelay() after reset deassert

When the reset signal is de-asserted, the HW-controlled bootstrap
starts running unless it is disabled in the SoC integration.
It issues some commands to detect a NAND chip, and sets up registers
automatically. Until this process finishes, software should avoid
any register access.

Without this delay function, some of UniPhier boards hangs up while
executing nand_scan_ident(). (denali_read_byte() is blocked)

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mtd/nand/raw/denali_dt.c