]> git.dujemihanovic.xyz Git - u-boot.git/commit
sf command: allow default bus and chip selects
authorEric Nelson <eric.nelson@boundarydevices.com>
Tue, 31 Jan 2012 17:52:07 +0000 (10:52 -0700)
committerMike Frysinger <vapier@gentoo.org>
Sun, 12 Feb 2012 20:18:29 +0000 (15:18 -0500)
commitc1173bd0754aa55bc52d874d5490c0c892a56ebf
tree71d8705c113e9cd895d633ec54946e014532b2d0
parent8b463dab933f3bb1e4ec703a9e3cbfca2f031334
sf command: allow default bus and chip selects

This patch allows a board configuration file to provide default bus
and chip-selects for SPI flash so that first argument to the 'sf' command
is optional.

On boards that use the mxc_spi driver and a GPIO for chip select, this allows
a much simpler command line:
U-Boot> sf probe
instead of
U-Boot> sf probe 0x5300

Tested-by: Jason Liu <jason.hui@linaro.org>
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
common/cmd_sf.c