summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-cavium.h
diff options
context:
space:
mode:
authorJan Glauber <jglauber@cavium.com>2016-08-19 16:03:20 +0200
committerMark Brown <broonie@kernel.org>2016-08-19 16:24:39 +0100
commit7347a6c7af8d9b5edf587678e80c7e5bc24ec2d5 (patch)
treeaa1ce6b9ef511aed1e1dbb55d1aab8941f77977d /drivers/spi/spi-cavium.h
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
downloadlinux-7347a6c7af8d9b5edf587678e80c7e5bc24ec2d5.tar.gz
linux-7347a6c7af8d9b5edf587678e80c7e5bc24ec2d5.tar.bz2
linux-7347a6c7af8d9b5edf587678e80c7e5bc24ec2d5.zip
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.h3
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)