spi: Add SPI flash test
PATCH v2 2/2 spi: Add SPI flash test
It is useful to have a basic SPI flash test, which tests that the SPI chip, the SPI bus and the driver are behaving.
This test erases part of the flash, writes data and reads it back as a sanity check that all is well.
Use CONFIG_SF_TEST to enable it.
---
Changes in v2:
- Add arguments to 'sf test' (may as well do this TODO now)
README | 5 ++ common/cmd_sf.c | 168 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 173 insertions(+), 0 deletions(-)
README +5 -0
@@ -2315,6 +2315,11 @@ The following options need to be configured: CONFIG_SF_DEFAULT_MODE (see include/spi.h) CONFIG_SF_DEFAULT_SPEED in Hz + CONFIG_CMD_SF_TEST + + Define this option to include a destructive SPI flash + test ('sf test'). + - SystemACE Support: CONFIG_SYSTEMACE
common/cmd_sf.c +168 -0
196 lines not on this page · raw message
Signature · 1 line
1.7.7.3
PATCH v2 2/2 spi: Add SPI flash test
Quoted 9 lines · Simon Glass
It is useful to have a basic SPI flash test, which tests that the SPI chip, the SPI bus and the driver are behaving.
This test erases part of the flash, writes data and reads it back as a sanity check that all is well.
Use
CONFIG_SF_TESTto enable it.Signed-off-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121219/30bc7bf6/attachment.pgp>
PATCH v2 2/2 spi: Add SPI flash test
Dear Tom Rini,
Quoted 2 lines · In message <20121219225956.GG14589@bill-the-cat> you wrote:
Applied to u-boot/master, thanks!
Please see my comment from a few minutes ago.
We're adding just dead code here. This makes no sense to me.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Computers are not intelligent. They only think they are.
PATCH v2 2/2 spi: Add SPI flash test
Quoted 9 lines · Wolfgang Denk
Dear Tom Rini,
Quoted 2 lines · In message <20121219225956.GG14589@bill-the-cat> you wrote:
Applied to u-boot/master, thanks!
Please see my comment from a few minutes ago.
We're adding just dead code here. This makes no sense to me.
I'll add this option to am335x_evm as soon as I can sneak over to the office, flip the dip switches so that the SPI flash is available and double check that yes, really, Simon tested the code one point before posting. Yeah, -1 to me for adding this before we added a board using it, but it's a useful thing. Q/A folks here at least will be all 'oh boy!' when I tell them that starting with the next release they can use this.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121219/0e6cac7c/attachment.pgp>
PATCH v2 2/2 spi: Add SPI flash test
Hi,
Quoted 11 lines · Tom Rini
Quoted 9 lines · Wolfgang Denk
Dear Tom Rini,
Quoted 2 lines · In message <20121219225956.GG14589@bill-the-cat> you wrote:
Applied to u-boot/master, thanks!
Please see my comment from a few minutes ago.
We're adding just dead code here. This makes no sense to me.
Quoted 7 lines
I'll add this option to
am335x_evmas soon as I can sneak over to the office, flip the dip switches so that the SPI flash is available and double check that yes, really, Simon tested the code one point before posting. Yeah, -1 to me for adding this before we added a board using it, but it's a useful thing. Q/A folks here at least will be all 'oh boy!' when I tell them that starting with the next release they can use this.
Sorry about this. It can be enabled on any board I think - my SPI patches for coreboot got held up a bit by a bug and I missed the merge window. I will send these patches out in the next few weeks.
Regards,
Simon
Quoted 9 lines
--
Tom_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot