mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-24 04:34:22 +08:00
mtd: nand: raw: denali: Assert reset before deassert
Always put the controller in reset, then take it out of reset. This is to make sure controller always in reset state in both SPL and proper Uboot. This is preparation for the next patch to poll for reset completion (rst_comp) bit after reset. 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>
This commit is contained in:
parent
b053515e91
commit
3e57f879ee
@ -148,6 +148,8 @@ static int denali_dt_probe(struct udevice *dev)
|
||||
if (ret) {
|
||||
dev_warn(dev, "Can't get reset: %d\n", ret);
|
||||
} else {
|
||||
reset_assert_bulk(&resets);
|
||||
udelay(2);
|
||||
reset_deassert_bulk(&resets);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user