]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/eeprom_93xx46.h
Merge branch 'topic/namespace' of git://git.kernel.org/pub/scm/linux/kernel/git/broon...
[mirror_ubuntu-bionic-kernel.git] / include / linux / eeprom_93xx46.h
CommitLineData
06b4501e
AG
1/*
2 * Module: eeprom_93xx46
3 * platform description for 93xx46 EEPROMs.
4 */
e0552573 5#include <linux/gpio/consumer.h>
3ca9b1ac 6
06b4501e
AG
7struct eeprom_93xx46_platform_data {
8 unsigned char flags;
9#define EE_ADDR8 0x01 /* 8 bit addr. cfg */
10#define EE_ADDR16 0x02 /* 16 bit addr. cfg */
11#define EE_READONLY 0x08 /* forbid writing */
12
e1379b56
CT
13 unsigned int quirks;
14/* Single word read transfers only; no sequential read. */
15#define EEPROM_93XX46_QUIRK_SINGLE_WORD_READ (1 << 0)
16/* Instructions such as EWEN are (addrlen + 2) in length. */
17#define EEPROM_93XX46_QUIRK_INSTRUCTION_LENGTH (1 << 1)
18
06b4501e
AG
19 /*
20 * optional hooks to control additional logic
21 * before and after spi transfer.
22 */
23 void (*prepare)(void *);
24 void (*finish)(void *);
3ca9b1ac 25 struct gpio_desc *select;
06b4501e 26};