commit | 035acb93b0d1ffb57234864093d9358bdfc296f8 | [log] [tgz] |
---|---|---|
author | Thomas Chou <thomas@wytron.com.tw> | Tue Jan 18 11:13:56 2011 +0800 |
committer | Scott McNutt <smcnutt@psyent.com> | Fri Apr 08 09:02:27 2011 -0400 |
tree | c7ccf843c0f4cda60f788ef97779f7462519217d | |
parent | e936628dc70e98baa3bc1827b74aa70d1fa48404 [diff] |
nios2: reset cfi flash before reading env Flash might be in unknown state when u-boot is started with jtag. And got wrong env data. So reset it in board early init. We cannot use generic cfi flash routines, because flash_init() is not run yet. Signed-off-by: Thomas Chou <thomas@wytron.com.tw>