diff options
author | Jan Glauber <jglauber@cavium.com> | 2016-08-19 17:03:20 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-08-19 18:24:39 +0300 |
commit | 7347a6c7af8d9b5edf587678e80c7e5bc24ec2d5 (patch) | |
tree | aa1ce6b9ef511aed1e1dbb55d1aab8941f77977d /drivers/spi/spi-cavium.h | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) | |
download | linux-7347a6c7af8d9b5edf587678e80c7e5bc24ec2d5.tar.xz |
spi: octeon: Add ThunderX driver
Add ThunderX SPI driver using the shared part from the Octeon
driver. The main difference of the ThunderX driver is that it
is a PCI device so probing is different. The system clock settings
can be specified in device tree.
Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-cavium.h')
-rw-r--r-- | drivers/spi/spi-cavium.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/spi/spi-cavium.h b/drivers/spi/spi-cavium.h index 88c5f36e7ea7..1f91d61b745b 100644 --- a/drivers/spi/spi-cavium.h +++ b/drivers/spi/spi-cavium.h @@ -1,6 +1,8 @@ #ifndef __SPI_CAVIUM_H #define __SPI_CAVIUM_H +#include <linux/clk.h> + #define OCTEON_SPI_MAX_BYTES 9 #define OCTEON_SPI_MAX_CLOCK_HZ 16000000 @@ -17,6 +19,7 @@ struct octeon_spi { u64 cs_enax; int sys_freq; struct octeon_spi_regs regs; + struct clk *clk; }; #define OCTEON_SPI_CFG(x) (x->regs.config) |