diff options
| author | Tom Rini <[email protected]> | 2019-03-26 23:17:21 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-03-26 23:17:21 -0400 |
| commit | 2b9b9cdd5f9ae1cbc786ba3c2255a51b3ea4a636 (patch) | |
| tree | 6dbe4a091a06ae0f488498c63819c8ef7bd4e02f /cmd | |
| parent | e7134b9714ed851095e8bcf8b66e65c6f870634e (diff) | |
| parent | abe66b1b5decf9cc2fb5daad42c9e870e5b99b67 (diff) | |
Merge branch '2019-03-25-master-imports'
- Convert various SPI related options to Kconfig
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/Kconfig | 12 | ||||
| -rw-r--r-- | cmd/spi.c | 7 |
2 files changed, 11 insertions, 8 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig index 4bcc5c45579..0b07b3b9d77 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1040,10 +1040,20 @@ config CMD_SF_TEST everything is working properly. config CMD_SPI - bool "sspi" + bool "sspi - Command to access spi device" help SPI utility command. +config DEFAULT_SPI_BUS + int "default spi bus used by sspi command" + depends on CMD_SPI + default 0 + +config DEFAULT_SPI_MODE + hex "default spi mode used by sspi command (see include/spi.h)" + depends on CMD_SPI + default 0 + config CMD_TSI148 bool "tsi148 - Command to access tsi148 device" help diff --git a/cmd/spi.c b/cmd/spi.c index 9a2edcff65c..75226fd3688 100644 --- a/cmd/spi.c +++ b/cmd/spi.c @@ -22,13 +22,6 @@ # define MAX_SPI_BYTES 32 /* Maximum number of bytes we can handle */ #endif -#ifndef CONFIG_DEFAULT_SPI_BUS -# define CONFIG_DEFAULT_SPI_BUS 0 -#endif -#ifndef CONFIG_DEFAULT_SPI_MODE -# define CONFIG_DEFAULT_SPI_MODE SPI_MODE_0 -#endif - /* * Values from last command. */ |
