diff options
Diffstat (limited to 'include/linux/platform_data')
32 files changed, 116 insertions, 219 deletions
diff --git a/include/linux/platform_data/ads1015.h b/include/linux/platform_data/ads1015.h index d5aa2a045669..4cc9ffcafcbf 100644 --- a/include/linux/platform_data/ads1015.h +++ b/include/linux/platform_data/ads1015.h @@ -1,21 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */  /*   * Platform Data for ADS1015 12-bit 4-input ADC   * (C) Copyright 2010   * Dirk Eibach, Guntermann & Drunck GmbH <[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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.   */  #ifndef LINUX_ADS1015_H diff --git a/include/linux/platform_data/ads7828.h b/include/linux/platform_data/ads7828.h index 3245f45f9d77..a3370a007702 100644 --- a/include/linux/platform_data/ads7828.h +++ b/include/linux/platform_data/ads7828.h @@ -4,7 +4,7 @@   * Copyright (c) 2012 Savoir-faire Linux Inc.   *          Vivien Didelot <[email protected]>   * - * For further information, see the Documentation/hwmon/ads7828 file. + * For further information, see the Documentation/hwmon/ads7828.rst file.   *   * 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 diff --git a/include/linux/platform_data/at91_adc.h b/include/linux/platform_data/at91_adc.h index 7819fc787731..f20eaeb827ce 100644 --- a/include/linux/platform_data/at91_adc.h +++ b/include/linux/platform_data/at91_adc.h @@ -1,7 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */  /*   * Copyright (C) 2011 Free Electrons - * - * Licensed under the GPLv2 or later.   */  #ifndef _AT91_ADC_H_ diff --git a/include/linux/platform_data/ata-pxa.h b/include/linux/platform_data/ata-pxa.h index 6cf7df1d5830..0b65fd0aa509 100644 --- a/include/linux/platform_data/ata-pxa.h +++ b/include/linux/platform_data/ata-pxa.h @@ -1,21 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */  /*   * Generic PXA PATA driver   *   * Copyright (C) 2010 Marek Vasut <[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, 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. - * - *  You should have received a copy of the GNU General Public License - *  along with this program; see the file COPYING.  If not, write to - *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.   */  #ifndef	__MACH_PATA_PXA_H__ diff --git a/include/linux/platform_data/ds620.h b/include/linux/platform_data/ds620.h index 6ef58bb77e46..f0ce22a78bb8 100644 --- a/include/linux/platform_data/ds620.h +++ b/include/linux/platform_data/ds620.h @@ -14,7 +14,7 @@ struct ds620_platform_data {  	 *  1 = PO_LOW  	 *  2 = PO_HIGH  	 * -	 * (see Documentation/hwmon/ds620) +	 * (see Documentation/hwmon/ds620.rst)  	 */  	int pomode;  }; diff --git a/include/linux/platform_data/elm.h b/include/linux/platform_data/elm.h index b8686c00f15f..fef4b081b736 100644 --- a/include/linux/platform_data/elm.h +++ b/include/linux/platform_data/elm.h @@ -60,6 +60,6 @@ static inline int elm_config(struct device *dev, enum bch_ecc bch_type,  {  	return -ENOSYS;  } -#endif /* CONFIG_MTD_NAND_ECC_BCH */ +#endif /* CONFIG_MTD_NAND_OMAP_BCH */  #endif /* __ELM_H */ diff --git a/include/linux/platform_data/eth-ep93xx.h b/include/linux/platform_data/eth-ep93xx.h new file mode 100644 index 000000000000..8eef637a804d --- /dev/null +++ b/include/linux/platform_data/eth-ep93xx.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _LINUX_PLATFORM_DATA_ETH_EP93XX +#define _LINUX_PLATFORM_DATA_ETH_EP93XX + +struct ep93xx_eth_data { +	unsigned char	dev_addr[6]; +	unsigned char	phy_id; +}; + +#endif diff --git a/include/linux/platform_data/gpio-omap.h b/include/linux/platform_data/gpio-omap.h index 6d07eebb3f75..7c36370c062e 100644 --- a/include/linux/platform_data/gpio-omap.h +++ b/include/linux/platform_data/gpio-omap.h @@ -200,8 +200,6 @@ struct omap_gpio_platform_data {  	bool is_mpuio;		/* whether the bank is of type MPUIO */  	u32 non_wakeup_gpios; -	u32 quirks;		/* Version specific quirks mask */ -  	struct omap_gpio_reg_offs *regs;  	/* Return context loss count due to PM states changing */ diff --git a/include/linux/platform_data/ina2xx.h b/include/linux/platform_data/ina2xx.h index 9f0aa1b48c78..dde59fd3590f 100644 --- a/include/linux/platform_data/ina2xx.h +++ b/include/linux/platform_data/ina2xx.h @@ -7,7 +7,7 @@   * it under the terms of the GNU General Public License version 2 as   * published by the Free Software Foundation.   * - * For further information, see the Documentation/hwmon/ina2xx file. + * For further information, see the Documentation/hwmon/ina2xx.rst file.   */  /** diff --git a/include/linux/platform_data/keypad-ep93xx.h b/include/linux/platform_data/keypad-ep93xx.h index 0e36818e3680..3054fced8509 100644 --- a/include/linux/platform_data/keypad-ep93xx.h +++ b/include/linux/platform_data/keypad-ep93xx.h @@ -9,8 +9,7 @@ struct matrix_keymap_data;  #define EP93XX_KEYPAD_DIAG_MODE		(1<<1)	/* diagnostic mode */  #define EP93XX_KEYPAD_BACK_DRIVE	(1<<2)	/* back driving mode */  #define EP93XX_KEYPAD_TEST_MODE		(1<<3)	/* scan only column 0 */ -#define EP93XX_KEYPAD_KDIV		(1<<4)	/* 1/4 clock or 1/16 clock */ -#define EP93XX_KEYPAD_AUTOREPEAT	(1<<5)	/* enable key autorepeat */ +#define EP93XX_KEYPAD_AUTOREPEAT	(1<<4)	/* enable key autorepeat */  /**   * struct ep93xx_keypad_platform_data - platform specific device structure @@ -24,6 +23,7 @@ struct ep93xx_keypad_platform_data {  	unsigned int	debounce;  	unsigned int	prescale;  	unsigned int	flags; +	unsigned int	clk_rate;  };  #define EP93XX_MATRIX_ROWS		(8) diff --git a/include/linux/platform_data/lm3630a_bl.h b/include/linux/platform_data/lm3630a_bl.h index 7538e38e270b..762e68956f31 100644 --- a/include/linux/platform_data/lm3630a_bl.h +++ b/include/linux/platform_data/lm3630a_bl.h @@ -38,9 +38,11 @@ enum lm3630a_ledb_ctrl {  #define LM3630A_MAX_BRIGHTNESS 255  /* + *@leda_label    : optional led a label.   *@leda_init_brt : led a init brightness. 4~255   *@leda_max_brt  : led a max brightness.  4~255   *@leda_ctrl     : led a disable, enable linear, enable exponential + *@ledb_label    : optional led b label.   *@ledb_init_brt : led b init brightness. 4~255   *@ledb_max_brt  : led b max brightness.  4~255   *@ledb_ctrl     : led b disable, enable linear, enable exponential @@ -50,10 +52,12 @@ enum lm3630a_ledb_ctrl {  struct lm3630a_platform_data {  	/* led a config.  */ +	const char *leda_label;  	int leda_init_brt;  	int leda_max_brt;  	enum lm3630a_leda_ctrl leda_ctrl;  	/* led b config. */ +	const char *ledb_label;  	int ledb_init_brt;  	int ledb_max_brt;  	enum lm3630a_ledb_ctrl ledb_ctrl; diff --git a/include/linux/platform_data/macb.h b/include/linux/platform_data/macb.h index 7815d50c26ff..2bc51b822956 100644 --- a/include/linux/platform_data/macb.h +++ b/include/linux/platform_data/macb.h @@ -12,19 +12,10 @@  /**   * 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   * @pclk:		platform clock   * @hclk:		AHB clock   */  struct macb_platform_data { -	u32		phy_mask; -	int		phy_irq_pin; -	u8		is_rmii; -	u8		rev_eth_addr;  	struct clk	*pclk;  	struct clk	*hclk;  }; diff --git a/include/linux/platform_data/max197.h b/include/linux/platform_data/max197.h index 8da8f94ee15c..2bbd0919bc89 100644 --- a/include/linux/platform_data/max197.h +++ b/include/linux/platform_data/max197.h @@ -8,7 +8,7 @@   * it under the terms of the GNU General Public License version 2 as   * published by the Free Software Foundation.   * - * For further information, see the Documentation/hwmon/max197 file. + * For further information, see the Documentation/hwmon/max197.rst file.   */  #ifndef _PDATA_MAX197_H diff --git a/include/linux/platform_data/media/camera-mx2.h b/include/linux/platform_data/media/camera-mx2.h index 7ded6f1f74bc..8cfa76b6e1e1 100644 --- a/include/linux/platform_data/media/camera-mx2.h +++ b/include/linux/platform_data/media/camera-mx2.h @@ -1,23 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */  /*   * mx2-cam.h - i.MX27/i.MX25 camera driver header file   *   * Copyright (C) 2003, Intel Corporation   * Copyright (C) 2008, Sascha Hauer <[email protected]>   * Copyright (C) 2010, Baruch Siach <[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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.   */  #ifndef __MACH_MX2_CAM_H_ diff --git a/include/linux/platform_data/media/camera-pxa.h b/include/linux/platform_data/media/camera-pxa.h index ce5d90e1a6e4..846a47b8c540 100644 --- a/include/linux/platform_data/media/camera-pxa.h +++ b/include/linux/platform_data/media/camera-pxa.h @@ -1,22 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */  /*      camera.h - PXA camera driver header file      Copyright (C) 2003, Intel Corporation      Copyright (C) 2008, Guennadi Liakhovetski <[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. - -    You should have received a copy of the GNU General Public License -    along with this program; if not, write to the Free Software -    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */  #ifndef __ASM_ARCH_CAMERA_H_ diff --git a/include/linux/platform_data/mtd-davinci.h b/include/linux/platform_data/mtd-davinci.h index 1bbfa27cccb4..08e639e047e5 100644 --- a/include/linux/platform_data/mtd-davinci.h +++ b/include/linux/platform_data/mtd-davinci.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */  /*   * mach-davinci/nand.h   * @@ -9,20 +10,6 @@   *   Dirk Behme <[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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.   */  #ifndef __ARCH_ARM_DAVINCI_NAND_H diff --git a/include/linux/platform_data/mtd-mxc_nand.h b/include/linux/platform_data/mtd-mxc_nand.h index 6bb96ef1600b..d1230030c6db 100644 --- a/include/linux/platform_data/mtd-mxc_nand.h +++ b/include/linux/platform_data/mtd-mxc_nand.h @@ -1,20 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */  /*   * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved.   * Copyright 2008 Sascha Hauer, [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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - * MA 02110-1301, USA.   */  #ifndef __ASM_ARCH_NAND_H diff --git a/include/linux/platform_data/mv88e6xxx.h b/include/linux/platform_data/mv88e6xxx.h index 963730b44aea..21452a9365e1 100644 --- a/include/linux/platform_data/mv88e6xxx.h +++ b/include/linux/platform_data/mv88e6xxx.h @@ -13,6 +13,7 @@ struct dsa_mv88e6xxx_pdata {  	unsigned int enabled_ports;  	struct net_device *netdev;  	u32 eeprom_len; +	int irq;  };  #endif diff --git a/include/linux/platform_data/ntc_thermistor.h b/include/linux/platform_data/ntc_thermistor.h index ee03d429742b..5fa115d3ea4b 100644 --- a/include/linux/platform_data/ntc_thermistor.h +++ b/include/linux/platform_data/ntc_thermistor.h @@ -42,7 +42,7 @@ struct ntc_thermistor_platform_data {  	 * read_uV()  	 *  	 * How to setup pullup_ohm, pulldown_ohm, and connect is -	 * described at Documentation/hwmon/ntc_thermistor +	 * described at Documentation/hwmon/ntc_thermistor.rst  	 *  	 * pullup/down_ohm: 0 for infinite / not-connected  	 * diff --git a/include/linux/platform_data/pca954x.h b/include/linux/platform_data/pca954x.h deleted file mode 100644 index 1712677d5904..000000000000 --- a/include/linux/platform_data/pca954x.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * - * pca954x.h - I2C multiplexer/switch support - * - * Copyright (c) 2008-2009 Rodolfo Giometti <[email protected]> - * Copyright (c) 2008-2009 Eurotech S.p.A. <[email protected]> - * Michael Lawnick <[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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - - -#ifndef _LINUX_I2C_PCA954X_H -#define _LINUX_I2C_PCA954X_H - -/* Platform data for the PCA954x I2C multiplexers */ - -/* Per channel initialisation data: - * @adap_id: bus number for the adapter. 0 = don't care - * @deselect_on_exit: set this entry to 1, if your H/W needs deselection - *                    of this channel after transaction. - * - */ -struct pca954x_platform_mode { -	int		adap_id; -	unsigned int	deselect_on_exit:1; -	unsigned int	class; -}; - -/* Per mux/switch data, used with i2c_register_board_info */ -struct pca954x_platform_data { -	struct pca954x_platform_mode *modes; -	int num_modes; -}; - -#endif /* _LINUX_I2C_PCA954X_H */ diff --git a/include/linux/platform_data/pm33xx.h b/include/linux/platform_data/pm33xx.h index fbf5ed73c7cc..dd5971937a64 100644 --- a/include/linux/platform_data/pm33xx.h +++ b/include/linux/platform_data/pm33xx.h @@ -51,6 +51,11 @@ struct am33xx_pm_platform_data {  			       unsigned long args);  	struct  am33xx_pm_sram_addr *(*get_sram_addrs)(void);  	void __iomem *(*get_rtc_base_addr)(void); +	void (*save_context)(void); +	void (*restore_context)(void); +	void (*prepare_rtc_suspend)(void); +	void (*prepare_rtc_resume)(void); +	int (*check_off_mode_enable)(void);  };  struct am33xx_pm_sram_data { diff --git a/include/linux/platform_data/serial-imx.h b/include/linux/platform_data/serial-imx.h index a938eba2f18e..0844b21372c7 100644 --- a/include/linux/platform_data/serial-imx.h +++ b/include/linux/platform_data/serial-imx.h @@ -1,19 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */  /*   * Copyright (C) 2008 by Sascha Hauer <[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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - * MA 02110-1301, USA.   */  #ifndef ASMARM_ARCH_UART_H diff --git a/include/linux/platform_data/spi-davinci.h b/include/linux/platform_data/spi-davinci.h index 0638fb6353bc..2cb5cc70fd9d 100644 --- a/include/linux/platform_data/spi-davinci.h +++ b/include/linux/platform_data/spi-davinci.h @@ -1,19 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */  /*   * Copyright 2009 Texas Instruments. - * - * 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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.   */  #ifndef __ARCH_ARM_DAVINCI_SPI_H diff --git a/include/linux/platform_data/spi-ep93xx.h b/include/linux/platform_data/spi-ep93xx.h index eb16c6739ac2..b439f2a896e0 100644 --- a/include/linux/platform_data/spi-ep93xx.h +++ b/include/linux/platform_data/spi-ep93xx.h @@ -6,13 +6,9 @@ struct spi_device;  /**   * struct ep93xx_spi_info - EP93xx specific SPI descriptor - * @chipselect: array of gpio numbers to use as chip selects - * @num_chipselect: ARRAY_SIZE(chipselect)   * @use_dma: use DMA for the transfers   */  struct ep93xx_spi_info { -	int	*chipselect; -	int	num_chipselect;  	bool	use_dma;  }; diff --git a/include/linux/platform_data/st33zp24.h b/include/linux/platform_data/st33zp24.h index 6f0fb6ebd7db..61db674f36cc 100644 --- a/include/linux/platform_data/st33zp24.h +++ b/include/linux/platform_data/st33zp24.h @@ -1,19 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */  /*   * STMicroelectronics TPM Linux driver for TPM 1.2 ST33ZP24   * 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 - * 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. - * - * 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 __ST33ZP24_H__  #define __ST33ZP24_H__ diff --git a/include/linux/platform_data/ti-sysc.h b/include/linux/platform_data/ti-sysc.h index 1ea3aab972b4..9256c0305968 100644 --- a/include/linux/platform_data/ti-sysc.h +++ b/include/linux/platform_data/ti-sysc.h @@ -46,8 +46,13 @@ struct sysc_regbits {  	s8 emufree_shift;  }; -#define SYSC_QUIRK_LEGACY_IDLE		BIT(8) -#define SYSC_QUIRK_RESET_STATUS		BIT(7) +#define SYSC_QUIRK_SWSUP_MSTANDBY	BIT(13) +#define SYSC_QUIRK_SWSUP_SIDLE_ACT	BIT(12) +#define SYSC_QUIRK_SWSUP_SIDLE		BIT(11) +#define SYSC_QUIRK_EXT_OPT_CLOCK	BIT(10) +#define SYSC_QUIRK_LEGACY_IDLE		BIT(9) +#define SYSC_QUIRK_RESET_STATUS		BIT(8) +#define SYSC_QUIRK_NO_IDLE		BIT(7)  #define SYSC_QUIRK_NO_IDLE_ON_INIT	BIT(6)  #define SYSC_QUIRK_NO_RESET_ON_INIT	BIT(5)  #define SYSC_QUIRK_OPT_CLKS_NEEDED	BIT(4) diff --git a/include/linux/platform_data/timer-ixp4xx.h b/include/linux/platform_data/timer-ixp4xx.h new file mode 100644 index 000000000000..ee92ae7edaed --- /dev/null +++ b/include/linux/platform_data/timer-ixp4xx.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __TIMER_IXP4XX_H +#define __TIMER_IXP4XX_H + +#include <linux/ioport.h> + +void __init ixp4xx_timer_setup(resource_size_t timerbase, +			       int timer_irq, +			       unsigned int timer_freq); + +#endif diff --git a/include/linux/platform_data/wilco-ec.h b/include/linux/platform_data/wilco-ec.h index 446473a46b88..1ff224793c99 100644 --- a/include/linux/platform_data/wilco-ec.h +++ b/include/linux/platform_data/wilco-ec.h @@ -14,10 +14,6 @@  /* Message flags for using the mailbox() interface */  #define WILCO_EC_FLAG_NO_RESPONSE	BIT(0) /* EC does not respond */  #define WILCO_EC_FLAG_EXTENDED_DATA	BIT(1) /* EC returns 256 data bytes */ -#define WILCO_EC_FLAG_RAW_REQUEST	BIT(2) /* Do not trim request data */ -#define WILCO_EC_FLAG_RAW_RESPONSE	BIT(3) /* Do not trim response data */ -#define WILCO_EC_FLAG_RAW		(WILCO_EC_FLAG_RAW_REQUEST | \ -					 WILCO_EC_FLAG_RAW_RESPONSE)  /* Normal commands have a maximum 32 bytes of data */  #define EC_MAILBOX_DATA_SIZE		32 @@ -56,10 +52,7 @@ struct wilco_ec_device {   * @mailbox_id: Mailbox identifier, specifies the command set.   * @mailbox_version: Mailbox interface version %EC_MAILBOX_VERSION   * @reserved: Set to zero. - * @data_size: Length of request, data + last 2 bytes of the header. - * @command: Mailbox command code, unique for each mailbox_id set. - * @reserved_raw: Set to zero for most commands, but is used by - *                some command types and for raw commands. + * @data_size: Length of following data.   */  struct wilco_ec_request {  	u8 struct_version; @@ -68,8 +61,6 @@ struct wilco_ec_request {  	u8 mailbox_version;  	u8 reserved;  	u16 data_size; -	u8 command; -	u8 reserved_raw;  } __packed;  /** @@ -79,8 +70,6 @@ struct wilco_ec_request {   * @result: Result code from the EC.  Non-zero indicates an error.   * @data_size: Length of the response data buffer.   * @reserved: Set to zero. - * @mbox0: EC returned data at offset 0 is unused (always 0) so this byte - *         is treated as part of the header instead of the data.   * @data: Response data buffer.  Max size is %EC_MAILBOX_DATA_SIZE_EXTENDED.   */  struct wilco_ec_response { @@ -89,7 +78,6 @@ struct wilco_ec_response {  	u16 result;  	u16 data_size;  	u8 reserved[2]; -	u8 mbox0;  	u8 data[0];  } __packed; @@ -111,21 +99,15 @@ enum wilco_ec_msg_type {   * struct wilco_ec_message - Request and response message.   * @type: Mailbox message type.   * @flags: Message flags, e.g. %WILCO_EC_FLAG_NO_RESPONSE. - * @command: Mailbox command code. - * @result: Result code from the EC.  Non-zero indicates an error.   * @request_size: Number of bytes to send to the EC.   * @request_data: Buffer containing the request data. - * @response_size: Number of bytes expected from the EC. - *                 This is 32 by default and 256 if the flag - *                 is set for %WILCO_EC_FLAG_EXTENDED_DATA + * @response_size: Number of bytes to read from EC.   * @response_data: Buffer containing the response data, should be   *                 response_size bytes and allocated by caller.   */  struct wilco_ec_message {  	enum wilco_ec_msg_type type;  	u8 flags; -	u8 command; -	u8 result;  	size_t request_size;  	void *request_data;  	size_t response_size; diff --git a/include/linux/platform_data/x86/asus-wmi.h b/include/linux/platform_data/x86/asus-wmi.h index 53dfc2541960..bfba245636a7 100644 --- a/include/linux/platform_data/x86/asus-wmi.h +++ b/include/linux/platform_data/x86/asus-wmi.h @@ -67,6 +67,7 @@  /* Input */  #define ASUS_WMI_DEVID_TOUCHPAD		0x00100011  #define ASUS_WMI_DEVID_TOUCHPAD_LED	0x00100012 +#define ASUS_WMI_DEVID_FNLOCK		0x00100023  /* Fan, Thermal */  #define ASUS_WMI_DEVID_THERMAL_CTRL	0x00110011 diff --git a/include/linux/platform_data/x86/clk-pmc-atom.h b/include/linux/platform_data/x86/clk-pmc-atom.h index 3ab892208343..7a37ac27d0fb 100644 --- a/include/linux/platform_data/x86/clk-pmc-atom.h +++ b/include/linux/platform_data/x86/clk-pmc-atom.h @@ -35,10 +35,13 @@ struct pmc_clk {   *   * @base:	PMC clock register base offset   * @clks:	pointer to set of registered clocks, typically 0..5 + * @critical:	flag to indicate if firmware enabled pmc_plt_clks + *		should be marked as critial or not   */  struct pmc_clk_data {  	void __iomem *base;  	const struct pmc_clk *clks; +	bool critical;  };  #endif /* __PLATFORM_DATA_X86_CLK_PMC_ATOM_H */ diff --git a/include/linux/platform_data/xilinx-ll-temac.h b/include/linux/platform_data/xilinx-ll-temac.h new file mode 100644 index 000000000000..368530f98176 --- /dev/null +++ b/include/linux/platform_data/xilinx-ll-temac.h @@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __LINUX_XILINX_LL_TEMAC_H +#define __LINUX_XILINX_LL_TEMAC_H + +#include <linux/if_ether.h> +#include <linux/phy.h> + +struct ll_temac_platform_data { +	bool txcsum;		/* Enable/disable TX checksum */ +	bool rxcsum;		/* Enable/disable RX checksum */ +	u8 mac_addr[ETH_ALEN];	/* MAC address (6 bytes) */ +	/* Clock frequency for input to MDIO clock generator */ +	u32 mdio_clk_freq; +	unsigned long long mdio_bus_id; /* Unique id for MDIO bus */ +	int phy_addr;		/* Address of the PHY to connect to */ +	phy_interface_t phy_interface; /* PHY interface mode */ +	bool reg_little_endian;	/* Little endian TEMAC register access  */ +	bool dma_little_endian;	/* Little endian DMA register access  */ +	/* Pre-initialized mutex to use for synchronizing indirect +	 * register access.  When using both interfaces of a single +	 * TEMAC IP block, the same mutex should be passed here, as +	 * they share the same DCR bus bridge. +	 */ +	struct mutex *indirect_mutex; +	/* DMA channel control setup */ +	u8 tx_irq_timeout;	/* TX Interrupt Delay Time-out */ +	u8 tx_irq_count;	/* TX Interrupt Coalescing Threshold Count */ +	u8 rx_irq_timeout;	/* RX Interrupt Delay Time-out */ +	u8 rx_irq_count;	/* RX Interrupt Coalescing Threshold Count */ +}; + +#endif /* __LINUX_XILINX_LL_TEMAC_H */ diff --git a/include/linux/platform_data/xtalk-bridge.h b/include/linux/platform_data/xtalk-bridge.h new file mode 100644 index 000000000000..51e5001f2c05 --- /dev/null +++ b/include/linux/platform_data/xtalk-bridge.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * SGI PCI Xtalk Bridge + */ + +#ifndef PLATFORM_DATA_XTALK_BRIDGE_H +#define PLATFORM_DATA_XTALK_BRIDGE_H + +#include <asm/sn/types.h> + +struct xtalk_bridge_platform_data { +	struct resource	mem; +	struct resource io; +	unsigned long bridge_addr; +	unsigned long intr_addr; +	unsigned long mem_offset; +	unsigned long io_offset; +	nasid_t	nasid; +	int	masterwid; +}; + +#endif /* PLATFORM_DATA_XTALK_BRIDGE_H */  |