[U-Boot] [PATCH] SPI: cmd_spi.c: add option to specify bus and mode
Reinhard Meyer
u-boot at emk-elektronik.de
Tue Aug 24 12:53:49 CEST 2010
Dear Mike Frysinger,
> this usage string no longer makes sense. how about:
> "[<bus>:]<cs>[.<mode>] <bit_len> <dout> - Send <bit_len> bits from
> <dout> out the SPI\n"
The problem is, that without blowing up the parser even more, only
2 forms of the command are valid:
the classic form
<cs> <bit_len> <dout>
or
<bus>:<cs>[.<mode>] <bit_len> <dout>
Since this command is mainly used for testing/debugging hardware,
I saw no need to allow the form
<cs>.<mode> <bit_len> <dout>
If thats ok, I can make a patch with the help fixed.
Best Regards
Reinhard
More information about the U-Boot
mailing list