diff options
Diffstat (limited to 'include/linux/platform_data')
21 files changed, 293 insertions, 196 deletions
diff --git a/include/linux/platform_data/asoc-s3c.h b/include/linux/platform_data/asoc-s3c.h index a6591c693ebb..5e0bc779e6c5 100644 --- a/include/linux/platform_data/asoc-s3c.h +++ b/include/linux/platform_data/asoc-s3c.h | |||
| @@ -27,6 +27,7 @@ struct samsung_i2s { | |||
| 27 | #define QUIRK_NO_MUXPSR (1 << 2) | 27 | #define QUIRK_NO_MUXPSR (1 << 2) |
| 28 | #define QUIRK_NEED_RSTCLR (1 << 3) | 28 | #define QUIRK_NEED_RSTCLR (1 << 3) |
| 29 | #define QUIRK_SUPPORTS_TDM (1 << 4) | 29 | #define QUIRK_SUPPORTS_TDM (1 << 4) |
| 30 | #define QUIRK_SUPPORTS_IDMA (1 << 5) | ||
| 30 | /* Quirks of the I2S controller */ | 31 | /* Quirks of the I2S controller */ |
| 31 | u32 quirks; | 32 | u32 quirks; |
| 32 | dma_addr_t idma_addr; | 33 | dma_addr_t idma_addr; |
diff --git a/include/linux/platform_data/bcmgenet.h b/include/linux/platform_data/bcmgenet.h new file mode 100644 index 000000000000..26af54321958 --- /dev/null +++ b/include/linux/platform_data/bcmgenet.h | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | #ifndef __LINUX_PLATFORM_DATA_BCMGENET_H__ | ||
| 2 | #define __LINUX_PLATFORM_DATA_BCMGENET_H__ | ||
| 3 | |||
| 4 | #include <linux/types.h> | ||
| 5 | #include <linux/if_ether.h> | ||
| 6 | #include <linux/phy.h> | ||
| 7 | |||
| 8 | struct bcmgenet_platform_data { | ||
| 9 | bool mdio_enabled; | ||
| 10 | phy_interface_t phy_interface; | ||
| 11 | int phy_address; | ||
| 12 | int phy_speed; | ||
| 13 | int phy_duplex; | ||
| 14 | u8 mac_address[ETH_ALEN]; | ||
| 15 | int genet_version; | ||
| 16 | }; | ||
| 17 | |||
| 18 | #endif | ||
diff --git a/include/linux/platform_data/dma-dw.h b/include/linux/platform_data/dma-dw.h new file mode 100644 index 000000000000..d8155c005242 --- /dev/null +++ b/include/linux/platform_data/dma-dw.h | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | /* | ||
| 2 | * Driver for the Synopsys DesignWare DMA Controller | ||
| 3 | * | ||
| 4 | * Copyright (C) 2007 Atmel Corporation | ||
| 5 | * Copyright (C) 2010-2011 ST Microelectronics | ||
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License version 2 as | ||
| 9 | * published by the Free Software Foundation. | ||
| 10 | */ | ||
| 11 | #ifndef _PLATFORM_DATA_DMA_DW_H | ||
| 12 | #define _PLATFORM_DATA_DMA_DW_H | ||
| 13 | |||
| 14 | #include <linux/device.h> | ||
| 15 | |||
| 16 | /** | ||
| 17 | * struct dw_dma_slave - Controller-specific information about a slave | ||
| 18 | * | ||
| 19 | * @dma_dev: required DMA master device. Depricated. | ||
| 20 | * @src_id: src request line | ||
| 21 | * @dst_id: dst request line | ||
| 22 | * @src_master: src master for transfers on allocated channel. | ||
| 23 | * @dst_master: dest master for transfers on allocated channel. | ||
| 24 | */ | ||
| 25 | struct dw_dma_slave { | ||
| 26 | struct device *dma_dev; | ||
| 27 | u8 src_id; | ||
| 28 | u8 dst_id; | ||
| 29 | u8 src_master; | ||
| 30 | u8 dst_master; | ||
| 31 | }; | ||
| 32 | |||
| 33 | /** | ||
| 34 | * struct dw_dma_platform_data - Controller configuration parameters | ||
| 35 | * @nr_channels: Number of channels supported by hardware (max 8) | ||
| 36 | * @is_private: The device channels should be marked as private and not for | ||
| 37 | * by the general purpose DMA channel allocator. | ||
| 38 | * @chan_allocation_order: Allocate channels starting from 0 or 7 | ||
| 39 | * @chan_priority: Set channel priority increasing from 0 to 7 or 7 to 0. | ||
| 40 | * @block_size: Maximum block size supported by the controller | ||
| 41 | * @nr_masters: Number of AHB masters supported by the controller | ||
| 42 | * @data_width: Maximum data width supported by hardware per AHB master | ||
| 43 | * (0 - 8bits, 1 - 16bits, ..., 5 - 256bits) | ||
| 44 | */ | ||
| 45 | struct dw_dma_platform_data { | ||
| 46 | unsigned int nr_channels; | ||
| 47 | bool is_private; | ||
| 48 | #define CHAN_ALLOCATION_ASCENDING 0 /* zero to seven */ | ||
| 49 | #define CHAN_ALLOCATION_DESCENDING 1 /* seven to zero */ | ||
| 50 | unsigned char chan_allocation_order; | ||
| 51 | #define CHAN_PRIORITY_ASCENDING 0 /* chan0 highest */ | ||
| 52 | #define CHAN_PRIORITY_DESCENDING 1 /* chan7 highest */ | ||
| 53 | unsigned char chan_priority; | ||
| 54 | unsigned short block_size; | ||
| 55 | unsigned char nr_masters; | ||
| 56 | unsigned char data_width[4]; | ||
| 57 | }; | ||
| 58 | |||
| 59 | #endif /* _PLATFORM_DATA_DMA_DW_H */ | ||
diff --git a/include/linux/platform_data/dma-imx.h b/include/linux/platform_data/dma-imx.h index 6a1357d31871..7d964e787299 100644 --- a/include/linux/platform_data/dma-imx.h +++ b/include/linux/platform_data/dma-imx.h | |||
| @@ -41,6 +41,7 @@ enum sdma_peripheral_type { | |||
| 41 | IMX_DMATYPE_ESAI, /* ESAI */ | 41 | IMX_DMATYPE_ESAI, /* ESAI */ |
| 42 | IMX_DMATYPE_SSI_DUAL, /* SSI Dual FIFO */ | 42 | IMX_DMATYPE_SSI_DUAL, /* SSI Dual FIFO */ |
| 43 | IMX_DMATYPE_ASRC_SP, /* Shared ASRC */ | 43 | IMX_DMATYPE_ASRC_SP, /* Shared ASRC */ |
| 44 | IMX_DMATYPE_SAI, /* SAI */ | ||
| 44 | }; | 45 | }; |
| 45 | 46 | ||
| 46 | enum imx_dma_prio { | 47 | enum imx_dma_prio { |
diff --git a/include/linux/platform_data/dwc3-exynos.h b/include/linux/platform_data/dwc3-exynos.h deleted file mode 100644 index 5eb7da9b3772..000000000000 --- a/include/linux/platform_data/dwc3-exynos.h +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | /** | ||
| 2 | * dwc3-exynos.h - Samsung EXYNOS DWC3 Specific Glue layer, header. | ||
| 3 | * | ||
| 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | ||
| 5 | * http://www.samsung.com | ||
| 6 | * | ||
| 7 | * Author: Anton Tikhomirov <av.tikhomirov@samsung.com> | ||
| 8 | * | ||
| 9 | * This program is free software; you can redistribute it and/or modify | ||
| 10 | * it under the terms of the GNU General Public License as published by | ||
| 11 | * the Free Software Foundation; either version 2 of the License, or | ||
| 12 | * (at your option) any later version. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #ifndef _DWC3_EXYNOS_H_ | ||
| 16 | #define _DWC3_EXYNOS_H_ | ||
| 17 | |||
| 18 | struct dwc3_exynos_data { | ||
| 19 | int phy_type; | ||
| 20 | int (*phy_init)(struct platform_device *pdev, int type); | ||
| 21 | int (*phy_exit)(struct platform_device *pdev, int type); | ||
| 22 | }; | ||
| 23 | |||
| 24 | #endif /* _DWC3_EXYNOS_H_ */ | ||
diff --git a/include/linux/platform_data/elm.h b/include/linux/platform_data/elm.h index 780d1e97f620..b8686c00f15f 100644 --- a/include/linux/platform_data/elm.h +++ b/include/linux/platform_data/elm.h | |||
| @@ -42,8 +42,24 @@ struct elm_errorvec { | |||
| 42 | int error_loc[16]; | 42 | int error_loc[16]; |
| 43 | }; | 43 | }; |
| 44 | 44 | ||
| 45 | #if IS_ENABLED(CONFIG_MTD_NAND_OMAP_BCH) | ||
| 45 | void elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc, | 46 | void elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc, |
| 46 | struct elm_errorvec *err_vec); | 47 | struct elm_errorvec *err_vec); |
| 47 | int elm_config(struct device *dev, enum bch_ecc bch_type, | 48 | int elm_config(struct device *dev, enum bch_ecc bch_type, |
| 48 | int ecc_steps, int ecc_step_size, int ecc_syndrome_size); | 49 | int ecc_steps, int ecc_step_size, int ecc_syndrome_size); |
| 50 | #else | ||
| 51 | static inline void | ||
| 52 | elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc, | ||
| 53 | struct elm_errorvec *err_vec) | ||
| 54 | { | ||
| 55 | } | ||
| 56 | |||
| 57 | static inline int elm_config(struct device *dev, enum bch_ecc bch_type, | ||
| 58 | int ecc_steps, int ecc_step_size, | ||
| 59 | int ecc_syndrome_size) | ||
| 60 | { | ||
| 61 | return -ENOSYS; | ||
| 62 | } | ||
| 63 | #endif /* CONFIG_MTD_NAND_ECC_BCH */ | ||
