
6 Dec
2012
6 Dec
'12
12:40 p.m.
On 12/06/2012 09:47 AM, Vipin Kumar wrote:
The write loop is checking for dest_addr alignment with page size. This sometimes leads to smi controller coming out of write mode and eventually the next write failing with ERF1 being set.
To avoid this, write to flash in a tight loop and write bytewise to also support not word aligned data bytes to be written. Additionally, enable burst mode before this loop so that the controller does not deselect the chip if the transfer is finished.
Signed-off-by: Vipin Kumar vipin.kumar@st.com
Acked-by: Stefan Roese sr@denx.de
Thanks, Stefan