Skip to content
Snippets Groups Projects
Commit f118fe5c authored by Thomas Chou's avatar Thomas Chou
Browse files

altera_qspi: fix erase and write error code


Fix erase and write error code, which should be "protected".

From the "Embedded Peripherals IP User Guide" of Altera,

The "Illegal write" flag indicates that a write instruction is
targeting a protected sector on the flash memory. This bit is
set to indicate that the IP has cancelled a write instruction.

The "Illegal erase" flag indicates that an erase instruction has
been set to a protected sector on the flash memory. This bit is
set to indicate that the IP has cancelled the erase instruction.

Signed-off-by: default avatarThomas Chou <thomas@wytron.com.tw>
Acked-by: default avatarChin Liang See <clsee@altera.com>
Reviewed-by: default avatarMarek Vasut <marex@denx.de>
parent 421f306f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment