1 #ifndef __CORE_SPI_H__KBMMOKI6CG__
2 #define __CORE_SPI_H__KBMMOKI6CG__
8 #define SPI_POLARITY_INACTIVE_HIGH 1
9 #define SPI_POLARITY_INACTIVE_LOW 1
11 #define SPI_PHASE_CHANGE_CAPTURE 0
12 #define SPI_PHASE_CAPTURE_CHANGE 1
21 spi_transfer(
unsigned int chip,
const struct spi_block *block,
unsigned int blocks);
24 spi_init_chip_select(
unsigned int chip,
unsigned int speed,
26 unsigned int dlybs,
unsigned int phase,
27 unsigned int polarity);