diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2018-03-14 18:46:34 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-06 16:11:09 -0400 |
commit | 8b562ef388433efb7d5a4e4de433c8c20ffd67b1 (patch) | |
tree | 18dc77c58e9d403cb801e6d7206f895d7666221a /board/siemens | |
parent | 153b070fc0495bcc5d8b29acae4d2ef3168ea880 (diff) |
at91: taurus: Enable DM_SPI
Enable DM_SPI for atmel SPI driver on taurus board.
Kept few functions related to non-dm and gpio on board
files for reference and will be remove once code moved
to relevant drivers.
Cc: Heiko Schocher <hs@denx.de>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'board/siemens')
-rw-r--r-- | board/siemens/taurus/taurus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/siemens/taurus/taurus.c b/board/siemens/taurus/taurus.c index 71541ba3a47..3534b2a7bf4 100644 --- a/board/siemens/taurus/taurus.c +++ b/board/siemens/taurus/taurus.c @@ -283,6 +283,8 @@ int board_early_init_f(void) return 0; } +/* FIXME gpio code here need to handle through DM_GPIO */ +#ifndef CONFIG_DM_SPI int spi_cs_is_valid(unsigned int bus, unsigned int cs) { return bus == 0 && cs == 0; @@ -297,6 +299,7 @@ void spi_cs_deactivate(struct spi_slave *slave) { at91_set_gpio_value(TAURUS_SPI_CS_PIN, 1); } +#endif #ifdef CONFIG_USB_GADGET_AT91 #include <linux/usb/at91_udc.h> |