diff options
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/atmel.h | 12 | ||||
| -rw-r--r-- | include/linux/platform_data/atmel_mxt_ts.h | 31 | ||||
| -rw-r--r-- | include/linux/platform_data/clk-ux500.h | 12 | ||||
| -rw-r--r-- | include/linux/platform_data/gpio-em.h | 11 | ||||
| -rw-r--r-- | include/linux/platform_data/i2c-mux-reg.h | 44 | ||||
| -rw-r--r-- | include/linux/platform_data/itco_wdt.h | 19 | ||||
| -rw-r--r-- | include/linux/platform_data/leds-kirkwood-ns2.h | 14 | ||||
| -rw-r--r-- | include/linux/platform_data/lp855x.h | 2 | ||||
| -rw-r--r-- | include/linux/platform_data/macb.h | 14 | ||||
| -rw-r--r-- | include/linux/platform_data/mmc-esdhc-imx.h | 2 | ||||
| -rw-r--r-- | include/linux/platform_data/pixcir_i2c_ts.h | 63 | ||||
| -rw-r--r-- | include/linux/platform_data/spi-davinci.h | 1 | ||||
| -rw-r--r-- | include/linux/platform_data/spi-mt65xx.h | 20 | ||||
| -rw-r--r-- | include/linux/platform_data/st_nci.h | 29 | ||||
| -rw-r--r-- | include/linux/platform_data/video-ep93xx.h | 8 | ||||
| -rw-r--r-- | include/linux/platform_data/zforce_ts.h | 3 | 
16 files changed, 207 insertions, 78 deletions
diff --git a/include/linux/platform_data/atmel.h b/include/linux/platform_data/atmel.h index 4b452c6a2f7b..527a85c61924 100644 --- a/include/linux/platform_data/atmel.h +++ b/include/linux/platform_data/atmel.h @@ -46,18 +46,6 @@ struct at91_cf_data {  #define AT91_IDE_SWAP_A0_A2	0x02  }; - /* USB Host */ -#define AT91_MAX_USBH_PORTS	3 -struct at91_usbh_data { -	int		vbus_pin[AT91_MAX_USBH_PORTS];	/* port power-control pin */ -	int             overcurrent_pin[AT91_MAX_USBH_PORTS]; -	u8		ports;				/* number of ports on root hub */ -	u8              overcurrent_supported; -	u8              vbus_pin_active_low[AT91_MAX_USBH_PORTS]; -	u8              overcurrent_status[AT91_MAX_USBH_PORTS]; -	u8              overcurrent_changed[AT91_MAX_USBH_PORTS]; -}; -   /* NAND / SmartMedia */  struct atmel_nand_data {  	int		enable_pin;		/* chip enable */ diff --git a/include/linux/platform_data/atmel_mxt_ts.h b/include/linux/platform_data/atmel_mxt_ts.h new file mode 100644 index 000000000000..695035a8d7fb --- /dev/null +++ b/include/linux/platform_data/atmel_mxt_ts.h @@ -0,0 +1,31 @@ +/* + * Atmel maXTouch Touchscreen driver + * + * Copyright (C) 2010 Samsung Electronics Co.Ltd + * Author: Joonyoung Shim <[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. + */ + +#ifndef __LINUX_PLATFORM_DATA_ATMEL_MXT_TS_H +#define __LINUX_PLATFORM_DATA_ATMEL_MXT_TS_H + +#include <linux/types.h> + +enum mxt_suspend_mode { +	MXT_SUSPEND_DEEP_SLEEP	= 0, +	MXT_SUSPEND_T9_CTRL	= 1, +}; + +/* The platform data for the Atmel maXTouch touchscreen driver */ +struct mxt_platform_data { +	unsigned long irqflags; +	u8 t19_num_keys; +	const unsigned int *t19_keymap; +	enum mxt_suspend_mode suspend_mode; +}; + +#endif /* __LINUX_PLATFORM_DATA_ATMEL_MXT_TS_H */ diff --git a/include/linux/platform_data/clk-ux500.h b/include/linux/platform_data/clk-ux500.h index 97baf831e071..3af0da1f3be5 100644 --- a/include/linux/platform_data/clk-ux500.h +++ b/include/linux/platform_data/clk-ux500.h @@ -10,14 +10,8 @@  #ifndef __CLK_UX500_H  #define __CLK_UX500_H -void u8500_of_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base, -		       u32 clkrst5_base, u32 clkrst6_base); - -void u8500_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base, -		    u32 clkrst5_base, u32 clkrst6_base); -void u9540_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base, -		    u32 clkrst5_base, u32 clkrst6_base); -void u8540_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base, -		    u32 clkrst5_base, u32 clkrst6_base); +void u8500_clk_init(void); +void u9540_clk_init(void); +void u8540_clk_init(void);  #endif /* __CLK_UX500_H */ diff --git a/include/linux/platform_data/gpio-em.h b/include/linux/platform_data/gpio-em.h deleted file mode 100644 index 7c5a519d2dcd..000000000000 --- a/include/linux/platform_data/gpio-em.h +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef __GPIO_EM_H__ -#define __GPIO_EM_H__ - -struct gpio_em_config { -	unsigned int gpio_base; -	unsigned int irq_base; -	unsigned int number_of_pins; -	const char *pctl_name; -}; - -#endif /* __GPIO_EM_H__ */ diff --git a/include/linux/platform_data/i2c-mux-reg.h b/include/linux/platform_data/i2c-mux-reg.h new file mode 100644 index 000000000000..c68712aadf43 --- /dev/null +++ b/include/linux/platform_data/i2c-mux-reg.h @@ -0,0 +1,44 @@ +/* + * I2C multiplexer using a single register + * + * Copyright 2015 Freescale Semiconductor + * York Sun <[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. + */ + +#ifndef __LINUX_PLATFORM_DATA_I2C_MUX_REG_H +#define __LINUX_PLATFORM_DATA_I2C_MUX_REG_H + +/** + * struct i2c_mux_reg_platform_data - Platform-dependent data for i2c-mux-reg + * @parent: Parent I2C bus adapter number + * @base_nr: Base I2C bus number to number adapters from or zero for dynamic + * @values: Array of value for each channel + * @n_values: Number of multiplexer channels + * @little_endian: Indicating if the register is in little endian + * @write_only: Reading the register is not allowed by hardware + * @classes: Optional I2C auto-detection classes + * @idle: Value to write to mux when idle + * @idle_in_use: indicate if idle value is in use + * @reg: Virtual address of the register to switch channel + * @reg_size: register size in bytes + */ +struct i2c_mux_reg_platform_data { +	int parent; +	int base_nr; +	const unsigned int *values; +	int n_values; +	bool little_endian; +	bool write_only; +	const unsigned int *classes; +	u32 idle; +	bool idle_in_use; +	void __iomem *reg; +	resource_size_t reg_size; +}; + +#endif	/* __LINUX_PLATFORM_DATA_I2C_MUX_REG_H */ diff --git a/include/linux/platform_data/itco_wdt.h b/include/linux/platform_data/itco_wdt.h new file mode 100644 index 000000000000..f16542c77ff7 --- /dev/null +++ b/include/linux/platform_data/itco_wdt.h @@ -0,0 +1,19 @@ +/* + * Platform data for the Intel TCO Watchdog + */ + +#ifndef _ITCO_WDT_H_ +#define _ITCO_WDT_H_ + +/* Watchdog resources */ +#define ICH_RES_IO_TCO		0 +#define ICH_RES_IO_SMI		1 +#define ICH_RES_MEM_OFF		2 +#define ICH_RES_MEM_GCS_PMC	0 + +struct itco_wdt_platform_data { +	char name[32]; +	unsigned int version; +}; + +#endif /* _ITCO_WDT_H_ */ diff --git a/include/linux/platform_data/leds-kirkwood-ns2.h b/include/linux/platform_data/leds-kirkwood-ns2.h index 6a9fed57f346..eb8a6860e816 100644 --- a/include/linux/platform_data/leds-kirkwood-ns2.h +++ b/include/linux/platform_data/leds-kirkwood-ns2.h @@ -9,11 +9,25 @@  #ifndef __LEDS_KIRKWOOD_NS2_H  #define __LEDS_KIRKWOOD_NS2_H +enum ns2_led_modes { +	NS_V2_LED_OFF, +	NS_V2_LED_ON, +	NS_V2_LED_SATA, +}; + +struct ns2_led_modval { +	enum ns2_led_modes	mode; +	int			cmd_level; +	int			slow_level; +}; +  struct ns2_led {  	const char	*name;  	const char	*default_trigger;  	unsigned	cmd;  	unsigned	slow; +	int		num_modes; +	struct ns2_led_modval *modval;  };  struct ns2_led_platform_data { diff --git a/include/linux/platform_data/lp855x.h b/include/linux/platform_data/lp855x.h index 9c7fd1efe495..1b2ba24e4e03 100644 --- a/include/linux/platform_data/lp855x.h +++ b/include/linux/platform_data/lp855x.h @@ -136,7 +136,6 @@ struct lp855x_rom_data {  		Only valid when mode is PWM_BASED.   * @size_program : total size of lp855x_rom_data   * @rom_data : list of new eeprom/eprom registers - * @supply : regulator that supplies 3V input   */  struct lp855x_platform_data {  	const char *name; @@ -145,7 +144,6 @@ struct lp855x_platform_data {  	unsigned int period_ns;  	int size_program;  	struct lp855x_rom_data *rom_data; -	struct regulator *supply;  };  #endif diff --git a/include/linux/platform_data/macb.h b/include/linux/platform_data/macb.h index 044a124bfbbc..21b15f6fee25 100644 --- a/include/linux/platform_data/macb.h +++ b/include/linux/platform_data/macb.h @@ -8,11 +8,19 @@  #ifndef __MACB_PDATA_H__  #define __MACB_PDATA_H__ +/** + * struct macb_platform_data - platform data for MACB Ethernet + * @phy_mask:		phy mask passed when register the MDIO bus + *			within the driver + * @phy_irq_pin:	PHY IRQ + * @is_rmii:		using RMII interface? + * @rev_eth_addr:	reverse Ethernet address byte order + */  struct macb_platform_data {  	u32		phy_mask; -	int		phy_irq_pin;	/* PHY IRQ */ -	u8		is_rmii;	/* using RMII interface? */ -	u8		rev_eth_addr;	/* reverse Ethernet address byte order */ +	int		phy_irq_pin; +	u8		is_rmii; +	u8		rev_eth_addr;  };  #endif /* __MACB_PDATA_H__ */ diff --git a/include/linux/platform_data/mmc-esdhc-imx.h b/include/linux/platform_data/mmc-esdhc-imx.h index 75f70f6ac137..95ccab3f454a 100644 --- a/include/linux/platform_data/mmc-esdhc-imx.h +++ b/include/linux/platform_data/mmc-esdhc-imx.h @@ -43,8 +43,8 @@ struct esdhc_platform_data {  	enum wp_types wp_type;  	enum cd_types cd_type;  	int max_bus_width; -	unsigned int f_max;  	bool support_vsel;  	unsigned int delay_line; +	unsigned int tuning_step;       /* The delay cell steps in tuning procedure */  };  #endif /* __ASM_ARCH_IMX_ESDHC_H */ diff --git a/include/linux/platform_data/pixcir_i2c_ts.h b/include/linux/platform_data/pixcir_i2c_ts.h new file mode 100644 index 000000000000..646af6f8b838 --- /dev/null +++ b/include/linux/platform_data/pixcir_i2c_ts.h @@ -0,0 +1,63 @@ +#ifndef	_PIXCIR_I2C_TS_H +#define	_PIXCIR_I2C_TS_H + +/* + * Register map + */ +#define PIXCIR_REG_POWER_MODE	51 +#define PIXCIR_REG_INT_MODE	52 + +/* + * Power modes: + * active: max scan speed + * idle: lower scan speed with automatic transition to active on touch + * halt: datasheet says sleep but this is more like halt as the chip + *       clocks are cut and it can only be brought out of this mode + *	 using the RESET pin. + */ +enum pixcir_power_mode { +	PIXCIR_POWER_ACTIVE, +	PIXCIR_POWER_IDLE, +	PIXCIR_POWER_HALT, +}; + +#define PIXCIR_POWER_MODE_MASK	0x03 +#define PIXCIR_POWER_ALLOW_IDLE (1UL << 2) + +/* + * Interrupt modes: + * periodical: interrupt is asserted periodicaly + * diff coordinates: interrupt is asserted when coordinates change + * level on touch: interrupt level asserted during touch + * pulse on touch: interrupt pulse asserted druing touch + * + */ +enum pixcir_int_mode { +	PIXCIR_INT_PERIODICAL, +	PIXCIR_INT_DIFF_COORD, +	PIXCIR_INT_LEVEL_TOUCH, +	PIXCIR_INT_PULSE_TOUCH, +}; + +#define PIXCIR_INT_MODE_MASK	0x03 +#define PIXCIR_INT_ENABLE	(1UL << 3) +#define PIXCIR_INT_POL_HIGH	(1UL << 2) + +/** + * struct pixcir_irc_chip_data - chip related data + * @max_fingers:	Max number of fingers reported simultaneously by h/w + * @has_hw_ids:		Hardware supports finger tracking IDs + * + */ +struct pixcir_i2c_chip_data { +	u8 max_fingers; +	bool has_hw_ids; +}; + +struct pixcir_ts_platform_data { +	int x_max; +	int y_max; +	struct pixcir_i2c_chip_data chip; +}; + +#endif diff --git a/include/linux/platform_data/spi-davinci.h b/include/linux/platform_data/spi-davinci.h index 8dc2fa47a2aa..f4edcb03c40c 100644 --- a/include/linux/platform_data/spi-davinci.h +++ b/include/linux/platform_data/spi-davinci.h @@ -49,6 +49,7 @@ struct davinci_spi_platform_data {  	u8			num_chipselect;  	u8			intr_line;  	u8			*chip_sel; +	u8			prescaler_limit;  	bool			cshold_bug;  	enum dma_event_q	dma_event_q;  }; diff --git a/include/linux/platform_data/spi-mt65xx.h b/include/linux/platform_data/spi-mt65xx.h new file mode 100644 index 000000000000..54b04483976c --- /dev/null +++ b/include/linux/platform_data/spi-mt65xx.h @@ -0,0 +1,20 @@ +/* + *  MTK SPI bus driver definitions + * + * Copyright (c) 2015 MediaTek Inc. + * Author: Leilk Liu <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#ifndef ____LINUX_PLATFORM_DATA_SPI_MTK_H +#define ____LINUX_PLATFORM_DATA_SPI_MTK_H + +/* Board specific platform_data */ +struct mtk_chip_config { +	u32 tx_mlsb; +	u32 rx_mlsb; +}; +#endif diff --git a/include/linux/platform_data/st_nci.h b/include/linux/platform_data/st_nci.h deleted file mode 100644 index d9d400a297bd..000000000000 --- a/include/linux/platform_data/st_nci.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Driver include for ST NCI NFC chip family. - * - * Copyright (C) 2014-2015  STMicroelectronics SAS. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms and conditions of the GNU General Public License, - * version 2, as published by the Free Software Foundation. - * - * 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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see <http://www.gnu.org/licenses/>. - */ - -#ifndef _ST_NCI_H_ -#define _ST_NCI_H_ - -#define ST_NCI_DRIVER_NAME "st_nci" - -struct st_nci_nfc_platform_data { -	unsigned int gpio_reset; -	unsigned int irq_polarity; -}; - -#endif /* _ST_NCI_H_ */ diff --git a/include/linux/platform_data/video-ep93xx.h b/include/linux/platform_data/video-ep93xx.h index 92fc2b2232e7..699ac4109366 100644 --- a/include/linux/platform_data/video-ep93xx.h +++ b/include/linux/platform_data/video-ep93xx.h @@ -2,11 +2,8 @@  #define __VIDEO_EP93XX_H  struct platform_device; -struct fb_videomode;  struct fb_info; -#define EP93XXFB_USE_MODEDB		0 -  /* VideoAttributes flags */  #define EP93XXFB_STATE_MACHINE_ENABLE	(1 << 0)  #define EP93XXFB_PIXEL_CLOCK_ENABLE	(1 << 1) @@ -38,12 +35,7 @@ struct fb_info;  					 EP93XXFB_PIXEL_DATA_ENABLE)  struct ep93xxfb_mach_info { -	unsigned int			num_modes; -	const struct fb_videomode	*modes; -	const struct fb_videomode	*default_mode; -	int				bpp;  	unsigned int			flags; -  	int	(*setup)(struct platform_device *pdev);  	void	(*teardown)(struct platform_device *pdev);  	void	(*blank)(int blank_mode, struct fb_info *info); diff --git a/include/linux/platform_data/zforce_ts.h b/include/linux/platform_data/zforce_ts.h index 0472ab2f6ede..7bdece8ef33e 100644 --- a/include/linux/platform_data/zforce_ts.h +++ b/include/linux/platform_data/zforce_ts.h @@ -16,9 +16,6 @@  #define _LINUX_INPUT_ZFORCE_TS_H  struct zforce_ts_platdata { -	int gpio_int; -	int gpio_rst; -  	unsigned int x_max;  	unsigned int y_max;  };  |