cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

spi-omap2-mcspi.h (475B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef _OMAP2_MCSPI_H
      3#define _OMAP2_MCSPI_H
      4
      5#define OMAP4_MCSPI_REG_OFFSET 0x100
      6
      7#define MCSPI_PINDIR_D0_IN_D1_OUT	0
      8#define MCSPI_PINDIR_D0_OUT_D1_IN	1
      9
     10struct omap2_mcspi_platform_config {
     11	unsigned short	num_cs;
     12	unsigned int regs_offset;
     13	unsigned int pin_dir:1;
     14	size_t max_xfer_len;
     15};
     16
     17struct omap2_mcspi_device_config {
     18	unsigned turbo_mode:1;
     19
     20	/* toggle chip select after every word */
     21	unsigned cs_per_word:1;
     22};
     23
     24#endif