diff options
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/at24.h | 11 | ||||
| -rw-r--r-- | include/linux/platform_data/b53.h | 33 | ||||
| -rw-r--r-- | include/linux/platform_data/sht3x.h | 25 | ||||
| -rw-r--r-- | include/linux/platform_data/spi-s3c64xx.h | 1 | ||||
| -rw-r--r-- | include/linux/platform_data/st33zp24.h | 2 | 
5 files changed, 67 insertions, 5 deletions
| diff --git a/include/linux/platform_data/at24.h b/include/linux/platform_data/at24.h index be830b141d83..271a4e25af67 100644 --- a/include/linux/platform_data/at24.h +++ b/include/linux/platform_data/at24.h @@ -10,6 +10,7 @@  #include <linux/types.h>  #include <linux/nvmem-consumer.h> +#include <linux/bitops.h>  /**   * struct at24_platform_data - data to set up at24 (generic eeprom) driver @@ -43,10 +44,12 @@ struct at24_platform_data {  	u32		byte_len;		/* size (sum of all addr) */  	u16		page_size;		/* for writes */  	u8		flags; -#define AT24_FLAG_ADDR16	0x80	/* address pointer is 16 bit */ -#define AT24_FLAG_READONLY	0x40	/* sysfs-entry will be read-only */ -#define AT24_FLAG_IRUGO		0x20	/* sysfs-entry will be world-readable */ -#define AT24_FLAG_TAKE8ADDR	0x10	/* take always 8 addresses (24c00) */ +#define AT24_FLAG_ADDR16	BIT(7)	/* address pointer is 16 bit */ +#define AT24_FLAG_READONLY	BIT(6)	/* sysfs-entry will be read-only */ +#define AT24_FLAG_IRUGO		BIT(5)	/* sysfs-entry will be world-readable */ +#define AT24_FLAG_TAKE8ADDR	BIT(4)	/* take always 8 addresses (24c00) */ +#define AT24_FLAG_SERIAL	BIT(3)	/* factory-programmed serial number */ +#define AT24_FLAG_MAC		BIT(2)	/* factory-programmed mac address */  	void		(*setup)(struct nvmem_device *nvmem, void *context);  	void		*context; diff --git a/include/linux/platform_data/b53.h b/include/linux/platform_data/b53.h new file mode 100644 index 000000000000..69d279c0da96 --- /dev/null +++ b/include/linux/platform_data/b53.h @@ -0,0 +1,33 @@ +/* + * B53 platform data + * + * Copyright (C) 2013 Jonas Gorski <[email protected]> + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef __B53_H +#define __B53_H + +#include <linux/kernel.h> + +struct b53_platform_data { +	u32 chip_id; +	u16 enabled_ports; + +	/* only used by MMAP'd driver */ +	unsigned big_endian:1; +	void __iomem *regs; +}; + +#endif diff --git a/include/linux/platform_data/sht3x.h b/include/linux/platform_data/sht3x.h new file mode 100644 index 000000000000..2e5eea358194 --- /dev/null +++ b/include/linux/platform_data/sht3x.h @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2016 Sensirion AG, Switzerland + * Author: David Frey <[email protected]> + * Author: Pascal Sachs <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the + * GNU General Public License for more details. + * + */ + +#ifndef __SHT3X_H_ +#define __SHT3X_H_ + +struct sht3x_platform_data { +	bool blocking_io; +	bool high_precision; +}; +#endif /* __SHT3X_H_ */ diff --git a/include/linux/platform_data/spi-s3c64xx.h b/include/linux/platform_data/spi-s3c64xx.h index fb5625bcca9a..5c1e21c87270 100644 --- a/include/linux/platform_data/spi-s3c64xx.h +++ b/include/linux/platform_data/spi-s3c64xx.h @@ -38,6 +38,7 @@ struct s3c64xx_spi_csinfo {  struct s3c64xx_spi_info {  	int src_clk_nr;  	int num_cs; +	bool no_cs;  	int (*cfg_gpio)(void);  	dma_filter_fn filter;  	void *dma_tx; diff --git a/include/linux/platform_data/st33zp24.h b/include/linux/platform_data/st33zp24.h index 817dfdb37885..6f0fb6ebd7db 100644 --- a/include/linux/platform_data/st33zp24.h +++ b/include/linux/platform_data/st33zp24.h @@ -1,6 +1,6 @@  /*   * STMicroelectronics TPM Linux driver for TPM 1.2 ST33ZP24 - * Copyright (C) 2009 - 2015  STMicroelectronics + * Copyright (C) 2009 - 2016  STMicroelectronics   *   * This program is free software; you can redistribute it and/or modify   * it under the terms of the GNU General Public License as published by |