提交 3e57f879 编写于 作者: L Ley Foon Tan 提交者: Masahiro Yamada

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: NMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: NRadu Bacrau <radu.bacrau@intel.com>
Signed-off-by: NLey Foon Tan <ley.foon.tan@intel.com>
Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
上级 b053515e
......@@ -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);
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册