diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-11-05 19:30:19 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-11-12 08:32:16 +0100 |
commit | 055b31e92e9a9b67fc59b15094e4356f6842a4b0 (patch) | |
tree | 8f6ab47707d61a68358d24d47460862f6a367c8d /drivers/spi/atmel_spi.c | |
parent | 968d444cdd38387882fe7bccac5dd6c8c83685a3 (diff) | |
download | barebox-055b31e92e9a9b67fc59b15094e4356f6842a4b0.tar.gz barebox-055b31e92e9a9b67fc59b15094e4356f6842a4b0.tar.xz |
introduce spi command
usefull to debug spi
The command allow to read/write on a spi device
Usage: spi [OPTION] [data to write 0xXX]
write/read spi device.
-b <bus_num> spi bus number (default = 0)
-r <count> to read
-c <cs> chip select (default = 0)
-m <mode> spi mode (default = 0)
-f <hz> max_speed_hz (default = 1MHz)
-w <bit> bits_per_word (default = 8)
-v verbose
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/spi/atmel_spi.c')
0 files changed, 0 insertions, 0 deletions