mcspi.h 477 字节
Newer Older
1 2 3
#ifndef _OMAP2_MCSPI_H
#define _OMAP2_MCSPI_H

C
Charulatha V 已提交
4 5 6 7
#define OMAP2_MCSPI_REV 0
#define OMAP3_MCSPI_REV 1
#define OMAP4_MCSPI_REV 2

8 9
#define OMAP4_MCSPI_REG_OFFSET 0x100

10 11
struct omap2_mcspi_platform_config {
	unsigned short	num_cs;
12
	unsigned int regs_offset;
13 14
};

C
Charulatha V 已提交
15 16 17 18
struct omap2_mcspi_dev_attr {
	unsigned short num_chipselect;
};

19 20 21 22 23 24 25 26
struct omap2_mcspi_device_config {
	unsigned turbo_mode:1;

	/* Do we want one channel enabled at the same time? */
	unsigned single_channel:1;
};

#endif