diff options
author | Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> | 2019-03-01 20:12:35 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2019-04-17 22:20:17 +0200 |
commit | ac7e14ae0d36023dd32400a8eab9433a54e77b83 (patch) | |
tree | 30b65cf693fd3c01b44e4b2c3cf9040eb528cae8 /drivers/spi/cadence_qspi.h | |
parent | ed784ac3822b7d7019679a41a17907296e2dadbe (diff) |
spi: cadence_qspi: add reset handling
This adds reset handling to the cadence qspi driver.
For backwards compatibility, only a warning is printed when failing to
get reset handles.
Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Diffstat (limited to 'drivers/spi/cadence_qspi.h')
-rw-r--r-- | drivers/spi/cadence_qspi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/spi/cadence_qspi.h b/drivers/spi/cadence_qspi.h index b491407130..20cceca239 100644 --- a/drivers/spi/cadence_qspi.h +++ b/drivers/spi/cadence_qspi.h @@ -7,6 +7,8 @@ #ifndef __CADENCE_QSPI_H__ #define __CADENCE_QSPI_H__ +#include <reset.h> + #define CQSPI_IS_ADDR(cmd_len) (cmd_len > 1 ? 1 : 0) #define CQSPI_NO_DECODER_MAX_CS 4 @@ -42,6 +44,8 @@ struct cadence_spi_priv { unsigned int qspi_calibrated_hz; unsigned int qspi_calibrated_cs; unsigned int previous_hz; + + struct reset_ctl_bulk resets; }; /* Functions call declaration */ |