Files
Bar Weiner f82c5871aa 8064: ci-bridge-spi: support external CI bridge over SPI
Support communication with an external CI bridge over
SPI interface using GSBI.
A simple SPI slave driver is implemented along with the
required platform changes (clocks, GPIOs).

Change-Id: I5577b2ac4689b9efcd0f606eba6280beda297f4f
Signed-off-by: Bar Weiner <bweiner@codeaurora.org>
2012-10-23 14:31:26 +02:00

18 lines
412 B
C

#ifndef _CI_BRIDGE_SPI_H_
#define _CI_BRIDGE_SPI_H_
#include <linux/ioctl.h>
#define CI_BRIDGE_IOCTL_MAGIC 'c'
#define CI_BRIDGE_IOCTL_RESET _IOW(CI_BRIDGE_IOCTL_MAGIC, 0, unsigned)
#define CI_BRIDGE_IOCTL_GET_INT_STATE _IOR(CI_BRIDGE_IOCTL_MAGIC, 1, unsigned)
#ifdef __KERNEL__
struct ci_bridge_platform_data {
unsigned int reset_pin;
unsigned int interrupt_pin;
};
#endif /* __KERNEL__ */
#endif