diff options
Diffstat (limited to 'include/linux/platform_data')
20 files changed, 406 insertions, 125 deletions
diff --git a/include/linux/platform_data/at24.h b/include/linux/platform_data/at24.h new file mode 100644 index 000000000000..c42aa89d34ee --- /dev/null +++ b/include/linux/platform_data/at24.h | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | /* | ||
| 2 | * at24.h - platform_data for the at24 (generic eeprom) driver | ||
| 3 | * (C) Copyright 2008 by Pengutronix | ||
| 4 | * (C) Copyright 2012 by Wolfram Sang | ||
| 5 | * same license as the driver | ||
| 6 | */ | ||
| 7 | |||
| 8 | #ifndef _LINUX_AT24_H | ||
| 9 | #define _LINUX_AT24_H | ||
| 10 | |||
| 11 | #include <linux/types.h> | ||
| 12 | #include <linux/memory.h> | ||
| 13 | |||
| 14 | /** | ||
| 15 | * struct at24_platform_data - data to set up at24 (generic eeprom) driver | ||
| 16 | * @byte_len: size of eeprom in byte | ||
| 17 | * @page_size: number of byte which can be written in one go | ||
| 18 | * @flags: tunable options, check AT24_FLAG_* defines | ||
| 19 | * @setup: an optional callback invoked after eeprom is probed; enables kernel | ||
| 20 | code to access eeprom via memory_accessor, see example | ||
| 21 | * @context: optional parameter passed to setup() | ||
| 22 | * | ||
| 23 | * If you set up a custom eeprom type, please double-check the parameters. | ||
| 24 | * Especially page_size needs extra care, as you risk data loss if your value | ||
| 25 | * is bigger than what the chip actually supports! | ||
| 26 | * | ||
| 27 | * An example in pseudo code for a setup() callback: | ||
| 28 | * | ||
| 29 | * void get_mac_addr(struct memory_accessor *mem_acc, void *context) | ||
| 30 | * { | ||
| 31 | * u8 *mac_addr = ethernet_pdata->mac_addr; | ||
| 32 | * off_t offset = context; | ||
| 33 | * | ||
| 34 | * // Read MAC addr from EEPROM | ||
| 35 | * if (mem_acc->read(mem_acc, mac_addr, offset, ETH_ALEN) == ETH_ALEN) | ||
| 36 | * pr_info("Read MAC addr from EEPROM: %pM\n", mac_addr); | ||
| 37 | * } | ||
| 38 | * | ||
| 39 | * This function pointer and context can now be set up in at24_platform_data. | ||
| 40 | */ | ||
| 41 | |||
| 42 | struct at24_platform_data { | ||
| 43 | u32 byte_len; /* size (sum of all addr) */ | ||
| 44 | u16 page_size; /* for writes */ | ||
| 45 | u8 flags; | ||
| 46 | #define AT24_FLAG_ADDR16 0x80 /* address pointer is 16 bit */ | ||
| 47 | #define AT24_FLAG_READONLY 0x40 /* sysfs-entry will be read-only */ | ||
| 48 | #define AT24_FLAG_IRUGO 0x20 /* sysfs-entry will be world-readable */ | ||
| 49 | #define AT24_FLAG_TAKE8ADDR 0x10 /* take always 8 addresses (24c00) */ | ||
| 50 | |||
| 51 | void (*setup)(struct memory_accessor *, void *context); | ||
| 52 | void *context; | ||
| 53 | }; | ||
| 54 | |||
| 55 | #endif /* _LINUX_AT24_H */ | ||
diff --git a/include/linux/platform_data/clk-nomadik.h b/include/linux/platform_data/clk-nomadik.h deleted file mode 100644 index 5713c87b2477..000000000000 --- a/include/linux/platform_data/clk-nomadik.h +++ /dev/null | |||
| @@ -1,2 +0,0 @@ | |||
| 1 | /* Minimal platform data header */ | ||
| 2 | void nomadik_clk_init(void); | ||
diff --git a/include/linux/platform_data/clk-ux500.h b/include/linux/platform_data/clk-ux500.h index 9d98f3aaa16c..97baf831e071 100644 --- a/include/linux/platform_data/clk-ux500.h +++ b/include/linux/platform_data/clk-ux500.h | |||
| @@ -10,6 +10,9 @@ | |||
| 10 | #ifndef __CLK_UX500_H | 10 | #ifndef __CLK_UX500_H |
| 11 | #define __CLK_UX500_H | 11 | #define __CLK_UX500_H |
| 12 | 12 | ||
| 13 | void u8500_of_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base, | ||
| 14 | u32 clkrst5_base, u32 clkrst6_base); | ||
| 15 | |||
| 13 | void u8500_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base, | 16 | void u8500_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base, |
| 14 | u32 clkrst5_base, u32 clkrst6_base); | 17 | u32 clkrst5_base, u32 clkrst6_base); |
| 15 | void u9540_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base, | 18 | void u9540_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base, |
diff --git a/include/linux/platform_data/dma-s3c24xx.h b/include/linux/platform_data/dma-s3c24xx.h new file mode 100644 index 000000000000..89ba1b0c90e4 --- /dev/null +++ b/include/linux/platform_data/dma-s3c24xx.h | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | /* | ||
| 2 | * S3C24XX DMA handling | ||
| 3 | * | ||
| 4 | * Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de> | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms of the GNU General Public License as published by the Free | ||
| 8 | * Software Foundation; either version 2 of the License, or (at your option) | ||
| 9 | * any later version. | ||
| 10 | */ | ||
| 11 | |||
| 12 | /* Helper to encode the source selection constraints for early s3c socs. */ | ||
| 13 | #define S3C24XX_DMA_CHANREQ(src, chan) ((BIT(3) | src) << chan * 4) | ||
| 14 | |||
| 15 | enum s3c24xx_dma_bus { | ||
| 16 | S3C24XX_DMA_APB, | ||
| 17 | S3C24XX_DMA_AHB, | ||
| 18 | }; | ||
| 19 | |||
| 20 | /** | ||
| 21 | * @bus: on which bus does the peripheral reside - AHB or APB. | ||
| 22 | * @handshake: is a handshake with the peripheral necessary | ||
| 23 | * @chansel: channel selection information, depending on variant; reqsel for | ||
| 24 | * s3c2443 and later and channel-selection map for earlier SoCs | ||
| 25 | * see CHANSEL doc in s3c2443-dma.c | ||
| 26 | */ | ||
| 27 | struct s3c24xx_dma_channel { | ||
| 28 | enum s3c24xx_dma_bus bus; | ||
| 29 | bool handshake; | ||
| 30 | u16 chansel; | ||
| 31 | }; | ||
| 32 | |||
| 33 | /** | ||
| 34 | * struct s3c24xx_dma_platdata - platform specific settings | ||
| 35 | * @num_phy_channels: number of physical channels | ||
| 36 | * @channels: array of virtual channel descriptions | ||
| 37 | * @num_channels: number of virtual channels | ||
| 38 | */ | ||
| 39 | struct s3c24xx_dma_platdata { | ||
| 40 | int num_phy_channels; | ||
| 41 | struct s3c24xx_dma_channel *channels; | ||
| 42 | int num_channels; | ||
| 43 | }; | ||
| 44 | |||
| 45 | struct dma_chan; | ||
| 46 | bool s3c24xx_dma_filter(struct dma_chan *chan, void *param); | ||
diff --git a/include/linux/platform_data/edma.h b/include/linux/platform_data/edma.h index 179fb91bb5f2..f50821cb64be 100644 --- a/include/linux/platform_data/edma.h +++ b/include/linux/platform_data/edma.h | |||
| @@ -67,10 +67,10 @@ struct edmacc_param { | |||
| 67 | #define ITCCHEN BIT(23) | 67 | #define ITCCHEN BIT(23) |
| 68 | 68 | ||
| 69 | /*ch_status paramater of callback function possible values*/ | 69 | /*ch_status paramater of callback function possible values*/ |
| 70 | #define DMA_COMPLETE 1 | 70 | #define EDMA_DMA_COMPLETE 1 |
| 71 | #define DMA_CC_ERROR 2 | 71 | #define EDMA_DMA_CC_ERROR 2 |
| 72 | #define DMA_TC1_ERROR 3 | 72 | #define EDMA_DMA_TC1_ERROR 3 |
| 73 | #define DMA_TC2_ERROR 4 | 73 | #define EDMA_DMA_TC2_ERROR 4 |
| 74 | 74 | ||
| 75 | enum address_mode { | 75 | enum address_mode { |
| 76 | INCR = 0, | 76 | INCR = 0, |
diff --git a/include/linux/platform_data/gpio-davinci.h b/include/linux/platform_data/gpio-davinci.h new file mode 100644 index 000000000000..6efd20264585 --- /dev/null +++ b/include/linux/platform_data/gpio-davinci.h | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | /* | ||
| 2 | * DaVinci GPIO Platform Related Defines | ||
| 3 | * | ||
| 4 | * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License as | ||
| 8 | * published by the Free Software Foundation version 2. | ||
| 9 | * | ||
| 10 | * This program is distributed "as is" WITHOUT ANY WARRANTY of any | ||
| 11 | * kind, whether express or implied; without even the implied warranty | ||
| 12 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | */ | ||
| 15 | |||
| 16 | #ifndef __DAVINCI_GPIO_PLATFORM_H | ||
| 17 | #define __DAVINCI_GPIO_PLATFORM_H | ||
| 18 | |||
| 19 | #include <linux/io.h> | ||
| 20 | #include <linux/spinlock.h> | ||
| 21 | |||
| 22 | #include <asm-generic/gpio.h> | ||
| 23 | |||
| 24 | enum davinci_gpio_type { | ||
| 25 | GPIO_TYPE_TNETV107X = 0, | ||
| 26 | }; | ||
| 27 | |||
| 28 | struct davinci_gpio_platform_data { | ||
| 29 | u32 ngpio; | ||
| 30 | u32 gpio_unbanked; | ||
| 31 | u32 intc_irq_num; | ||
| 32 | }; | ||
| 33 | |||
| 34 | |||
| 35 | struct davinci_gpio_controller { | ||
| 36 | struct gpio_chip chip; | ||
| 37 | int irq_base; | ||
| 38 | /* Serialize access to GPIO registers */ | ||
| 39 | spinlock_t lock; | ||
| 40 | void __iomem *regs; | ||
| 41 | void __iomem *set_data; | ||
| 42 | void __iomem *clr_data; | ||
| 43 | void __iomem *in_data; | ||
| 44 | int gpio_unbanked; | ||
| 45 | unsigned gpio_irq; | ||
| 46 | }; | ||
| 47 | |||
| 48 | /* | ||
| 49 | * basic gpio routines | ||
| 50 | */ | ||
| 51 | #define GPIO(X) (X) /* 0 <= X <= (DAVINCI_N_GPIO - 1) */ | ||
| 52 | |||
| 53 | /* Convert GPIO signal to GPIO pin number */ | ||
| 54 | #define GPIO_TO_PIN(bank, gpio) (16 * (bank) + (gpio)) | ||
| 55 | |||
| 56 | static inline u32 __gpio_mask(unsigned gpio) | ||
| 57 | { | ||
| 58 | return 1 << (gpio % 32); | ||
| 59 | } | ||
| 60 | #endif | ||
diff --git a/include/linux/platform_data/leds-lp55xx.h b/include/linux/platform_data/leds-lp55xx.h index 51a2ff579d60..624ff9edad6f 100644 --- a/include/linux/platform_data/leds-lp55xx.h +++ b/include/linux/platform_data/leds-lp55xx.h | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | 22 | ||
| 23 | struct lp55xx_led_config { | 23 | struct lp55xx_led_config { |
| 24 | const char *name; | 24 | const char *name; |
| 25 | const char *default_trigger; | ||
| 25 | u8 chan_nr; | 26 | u8 chan_nr; |
| 26 | u8 led_current; /* mA x10, 0 if led is not connected */ | 27 | u8 led_current; /* mA x10, 0 if led is not connected */ |
| 27 | u8 max_current; | 28 | u8 max_current; |
| @@ -66,10 +67,8 @@ struct lp55xx_platform_data { | |||
| 66 | /* Clock configuration */ | 67 | /* Clock configuration */ |
| 67 | u8 clock_mode; | 68 | u8 clock_mode; |
| 68 | 69 | ||
| 69 | /* Platform specific functions */ | 70 | /* optional enable GPIO */ |
| 70 | int (*setup_resources)(void); | 71 | int enable_gpio; |
| 71 | void (*release_resources)(void); | ||
| 72 | void (*enable)(bool state); | ||
| 73 | 72 | ||
| 74 | /* Predefined pattern data */ | 73 | /* Predefined pattern data */ |
| 75 | struct lp55xx_predef_pattern *patterns; | 74 | struct lp55xx_predef_pattern *patterns; |
diff --git a/include/linux/platform_data/leds-pca9685.h b/include/linux/platform_data/leds-pca9685.h new file mode 100644 index 000000000000..778e9e4249cc --- /dev/null +++ b/include/linux/platform_data/leds-pca9685.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* | ||
| 2 | * Copyright 2013 Maximilian Güntner <maximilian.guentner@gmail.com> | ||
| 3 | * | ||
| 4 | * This file is subject to the terms and conditions of version 2 of | ||
| 5 | * the GNU General Public License. See the file COPYING in the main | ||
| 6 | * directory of this archive for more details. | ||
| 7 | * | ||
| 8 | * Based on leds-pca963x.h by Peter Meerwald <p.meerwald@bct-electronic.com> | ||
| 9 | * | ||
| 10 | * LED driver for the NXP PCA9685 PWM chip | ||
| 11 | * | ||
| 12 | */ | ||
| 13 | |||
| 14 | #ifndef __LINUX_PCA9685_H | ||
| 15 | #define __LINUX_PCA9685_H | ||
| 16 | |||
| 17 | #include <linux/leds.h> | ||
| 18 | |||
| 19 | enum pca9685_outdrv { | ||
| 20 | PCA9685_OPEN_DRAIN, | ||
| 21 | PCA9685_TOTEM_POLE, | ||
| 22 | }; | ||
| 23 | |||
| 24 | enum pca9685_inverted { | ||
| 25 | PCA9685_NOT_INVERTED, | ||
| 26 | PCA9685_INVERTED, | ||
| 27 | }; | ||
| 28 | |||
| 29 | struct pca9685_platform_data { | ||
| 30 | struct led_platform_data leds; | ||
| 31 | enum pca9685_outdrv outdrv; | ||
| 32 | enum pca9685_inverted inverted; | ||
| 33 | }; | ||
| 34 | |||
| 35 | #endif /* __LINUX_PCA9685_H */ | ||
diff --git a/include/linux/platform_data/lm3630_bl.h b/include/linux/platform_data/lm3630_bl.h deleted file mode 100644 index 9176dd3f2d63..000000000000 --- a/include/linux/platform_data/lm3630_bl.h +++ /dev/null | |||
| @@ -1,57 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Simple driver for Texas Instruments LM3630 LED Flash driver chip | ||
| 3 | * Copyright (C) 2012 Texas Instruments | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License version 2 as | ||
| 7 | * published by the Free Software Foundation. | ||
| 8 | * | ||
| 9 | */ | ||
| 10 | |||
| 11 | #ifndef __LINUX_LM3630_H | ||
| 12 | #define __LINUX_LM3630_H | ||
| 13 | |||
| 14 | #define LM3630_NAME "lm3630_bl" | ||
| 15 | |||
| 16 | enum lm3630_pwm_ctrl { | ||
| 17 | PWM_CTRL_DISABLE = 0, | ||
| 18 | PWM_CTRL_BANK_A, | ||
| 19 | PWM_CTRL_BANK_B, | ||
| 20 | PWM_CTRL_BANK_ALL, | ||
| 21 | }; | ||
| 22 | |||
| 23 | enum lm3630_pwm_active { | ||
| 24 | PWM_ACTIVE_HIGH = 0, | ||
| 25 | PWM_ACTIVE_LOW, | ||
| 26 | }; | ||
| 27 | |||
| 28 | enum lm3630_bank_a_ctrl { | ||
| 29 | BANK_A_CTRL_DISABLE = 0x0, | ||
| 30 | BANK_A_CTRL_LED1 = 0x4, | ||
| 31 | BANK_A_CTRL_LED2 = 0x1, | ||
| 32 | BANK_A_CTRL_ALL = 0x5, | ||
| 33 | }; | ||
| 34 | |||
| 35 | enum lm3630_bank_b_ctrl { | ||
| 36 | BANK_B_CTRL_DISABLE = 0, | ||
| 37 | BANK_B_CTRL_LED2, | ||
| 38 | }; | ||
| 39 | |||
| 40 | struct lm3630_platform_data { | ||
| 41 | |||
| 42 | /* maximum brightness */ | ||
| 43 | int max_brt_led1; | ||
| 44 | int max_brt_led2; | ||
| 45 | |||
| 46 | /* initial on brightness */ | ||
| 47 | int init_brt_led1; | ||
| 48 | int init_brt_led2; | ||
| 49 | enum lm3630_pwm_ctrl pwm_ctrl; | ||
| 50 | enum lm3630_pwm_active pwm_active; | ||
| 51 | enum lm3630_bank_a_ctrl bank_a_ctrl; | ||
| 52 | enum lm3630_bank_b_ctrl bank_b_ctrl; | ||
| 53 | unsigned int pwm_period; | ||
| 54 | void (*pwm_set_intensity) (int brightness, int max_brightness); | ||
| 55 | }; | ||
| 56 | |||
| 57 | #endif /* __LINUX_LM3630_H */ | ||
diff --git a/include/linux/platform_data/lm3630a_bl.h b/include/linux/platform_data/lm3630a_bl.h new file mode 100644 index 000000000000..7538e38e270b --- /dev/null +++ b/include/linux/platform_data/lm3630a_bl.h | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | /* | ||
| 2 | * Simple driver for Texas Instruments LM3630A LED Flash driver chip | ||
| 3 | * Copyright (C) 2012 Texas Instruments | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License version 2 as | ||
| 7 | * published by the Free Software Foundation. | ||
| 8 | * | ||
| 9 | */ | ||
| 10 | |||
| 11 | #ifndef __LINUX_LM3630A_H | ||
| 12 | #define __LINUX_LM3630A_H | ||
| 13 | |||
| 14 | #define LM3630A_NAME "lm3630a_bl" | ||
| 15 | |||
| 16 | enum lm3630a_pwm_ctrl { | ||
| 17 | LM3630A_PWM_DISABLE = 0x00, | ||
| 18 | LM3630A_PWM_BANK_A, | ||
| 19 | LM3630A_PWM_BANK_B, | ||
| 20 | LM3630A_PWM_BANK_ALL, | ||
| 21 | LM3630A_PWM_BANK_A_ACT_LOW = 0x05, | ||
| 22 | LM3630A_PWM_BANK_B_ACT_LOW, | ||
| 23 | LM3630A_PWM_BANK_ALL_ACT_LOW, | ||
| 24 | }; | ||
| 25 | |||
| 26 | enum lm3630a_leda_ctrl { | ||
| 27 | LM3630A_LEDA_DISABLE = 0x00, | ||
| 28 | LM3630A_LEDA_ENABLE = 0x04, | ||
| 29 | LM3630A_LEDA_ENABLE_LINEAR = 0x14, | ||
| 30 | }; | ||
| 31 | |||
| 32 | enum lm3630a_ledb_ctrl { | ||
| 33 | LM3630A_LEDB_DISABLE = 0x00, | ||
| 34 | LM3630A_LEDB_ON_A = 0x01, | ||
| 35 | LM3630A_LEDB_ENABLE = 0x02, | ||
| 36 | LM3630A_LEDB_ENABLE_LINEAR = 0x0A, | ||
| 37 | }; | ||
| 38 | |||
| 39 | #define LM3630A_MAX_BRIGHTNESS 255 | ||
| 40 | /* | ||
| 41 | *@leda_init_brt : led a init brightness. 4~255 | ||
| 42 | *@leda_max_brt : led a max brightness. 4~255 | ||
| 43 | *@leda_ctrl : led a disable, enable linear, enable exponential | ||
| 44 | *@ledb_init_brt : led b init brightness. 4~255 | ||
| 45 | *@ledb_max_brt : led b max brightness. 4~255 | ||
| 46 | *@ledb_ctrl : led b disable, enable linear, enable exponential | ||
| 47 | *@pwm_period : pwm period | ||
| 48 | *@pwm_ctrl : pwm disable, bank a or b, active high or low | ||
| 49 | */ | ||
| 50 | struct lm3630a_platform_data { | ||
| 51 | |||
| 52 | /* led a config. */ | ||
| 53 | int leda_init_brt; | ||
| 54 | int leda_max_brt; | ||
| 55 | enum lm3630a_leda_ctrl leda_ctrl; | ||
| 56 | /* led b config. */ | ||
| 57 | int ledb_init_brt; | ||
| 58 | int ledb_max_brt; | ||
| 59 | enum lm3630a_ledb_ctrl ledb_ctrl; | ||
| 60 | /* pwm config. */ | ||
| 61 | unsigned int pwm_period; | ||
| 62 | enum lm3630a_pwm_ctrl pwm_ctrl; | ||
| 63 | }; | ||
| 64 | |||
| 65 | #endif /* __LINUX_LM3630A_H */ | ||
diff --git a/include/linux/platform_data/lp855x.h b/include/linux/platform_data/lp855x.h index ea3200527dd3..1b2ba24e4e03 100644 --- a/include/linux/platform_data/lp855x.h +++ b/include/linux/platform_data/lp855x.h | |||
| @@ -40,6 +40,17 @@ | |||
| 40 | #define LP8553_PWM_CONFIG LP8550_PWM_CONFIG | 40 | #define LP8553_PWM_CONFIG LP8550_PWM_CONFIG |
| 41 | #define LP8553_I2C_CONFIG LP8550_I2C_CONFIG | 41 | #define LP8553_I2C_CONFIG LP8550_I2C_CONFIG |
| 42 | 42 | ||
| 43 | /* CONFIG register - LP8555 */ | ||
| 44 | #define LP8555_PWM_STANDBY BIT(7) | ||
| 45 | #define LP8555_PWM_FILTER BIT(6) | ||
| 46 | #define LP8555_RELOAD_EPROM BIT(3) /* use it if EPROMs should be reset | ||
| 47 | when the backlight turns on */ | ||
| 48 | #define LP8555_OFF_OPENLEDS BIT(2) | ||
| 49 | #define LP8555_PWM_CONFIG LP8555_PWM_ONLY | ||
| 50 | #define LP8555_I2C_CONFIG LP8555_I2C_ONLY | ||
| 51 | #define LP8555_COMB1_CONFIG LP8555_COMBINED1 | ||
| 52 | #define LP8555_COMB2_CONFIG LP8555_COMBINED2 | ||
| 53 | |||
| 43 | /* DEVICE CONTROL register - LP8556 */ | 54 | /* DEVICE CONTROL register - LP8556 */ |
| 44 | #define LP8556_PWM_CONFIG (LP8556_PWM_ONLY << BRT_MODE_SHFT) | 55 | #define LP8556_PWM_CONFIG (LP8556_PWM_ONLY << BRT_MODE_SHFT) |
| 45 | #define LP8556_COMB1_CONFIG (LP8556_COMBINED1 << BRT_MODE_SHFT) | 56 | #define LP8556_COMB1_CONFIG (LP8556_COMBINED1 << BRT_MODE_SHFT) |
| @@ -65,6 +76,7 @@ enum lp855x_chip_id { | |||
| 65 | LP8551, | 76 | LP8551, |
| 66 | LP8552, | 77 | LP8552, |
| 67 | LP8553, | 78 | LP8553, |
| 79 | LP8555, | ||
| 68 | LP8556, | 80 | LP8556, |
| 69 | LP8557, | 81 | LP8557, |
| 70 | }; | 82 | }; |
| @@ -89,6 +101,13 @@ enum lp8553_brighntess_source { | |||
| 89 | LP8553_I2C_ONLY = LP8550_I2C_ONLY, | 101 | LP8553_I2C_ONLY = LP8550_I2C_ONLY, |
| 90 | }; | 102 | }; |
| 91 | 103 | ||
| 104 | enum lp8555_brightness_source { | ||
| 105 | LP8555_PWM_ONLY, | ||
| 106 | LP8555_I2C_ONLY, | ||
| 107 | LP8555_COMBINED1, /* Brightness register with shaped PWM */ | ||
| 108 | LP8555_COMBINED2, /* PWM with shaped brightness register */ | ||
| 109 | }; | ||
| 110 | |||
| 92 | enum lp8556_brightness_source { | 111 | enum lp8556_brightness_source { |
| 93 | LP8556_PWM_ONLY, | 112 | LP8556_PWM_ONLY, |
| 94 | LP8556_COMBINED1, /* pwm + i2c before the shaper block */ | 113 | LP8556_COMBINED1, /* pwm + i2c before the shaper block */ |
diff --git a/include/linux/platform_data/mipi-csis.h b/include/linux/platform_data/mipi-csis.h index bf34e17cee7f..c2fd9024717c 100644 --- a/include/linux/platform_data/mipi-csis.h +++ b/include/linux/platform_data/mipi-csis.h | |||
| @@ -25,13 +25,4 @@ struct s5p_platform_mipi_csis { | |||
| 25 | u8 hs_settle; | 25 | u8 hs_settle; |
| 26 | }; | 26 | }; |
| 27 | 27 | ||
| 28 | /** | ||
| 29 | * s5p_csis_phy_enable - global MIPI-CSI receiver D-PHY control | ||
| 30 | * @id: MIPI-CSIS harware instance index (0...1) | ||
| 31 | * @on: true to enable D-PHY and deassert its reset | ||
| 32 | * false to disable D-PHY | ||
| 33 | * @return: 0 on success, or negative error code on failure | ||
| 34 | */ | ||
| 35 | int s5p_csis_phy_enable(int id, bool on); | ||
| 36 | |||
| 37 | #endif /* __PLAT_SAMSUNG_MIPI_CSIS_H_ */ | 28 | #endif /* __PLAT_SAMSUNG_MIPI_CSIS_H_ */ |
diff --git a/include/linux/platform_data/mmc-esdhc-imx.h b/include/linux/platform_data/mmc-esdhc-imx.h index d44912d81578..75f70f6ac137 100644 --- a/include/linux/platform_data/mmc-esdhc-imx.h +++ b/include/linux/platform_data/mmc-esdhc-imx.h | |||
| @@ -10,6 +10,8 @@ | |||
| 10 | #ifndef __ASM_ARCH_IMX_ESDHC_H | 10 | #ifndef __ASM_ARCH_IMX_ESDHC_H |
| 11 | #define __ASM_ARCH_IMX_ESDHC_H | 11 | #define __ASM_ARCH_IMX_ESDHC_H |
| 12 | 12 | ||
| 13 | #include <linux/types.h> | ||
| 14 | |||
| 13 | enum wp_types { | 15 | enum wp_types { |
| 14 | ESDHC_WP_NONE, /* no WP, neither controller nor gpio */ | 16 | ESDHC_WP_NONE, /* no WP, neither controller nor gpio */ |
| 15 | ESDHC_WP_CONTROLLER, /* mmc controller internal WP */ | 17 | ESDHC_WP_CONTROLLER, /* mmc controller internal WP */ |
| @@ -32,6 +34,7 @@ enum cd_types { | |||
| 32 | * @cd_gpio: gpio for card_detect interrupt | 34 | * @cd_gpio: gpio for card_detect interrupt |
| 33 | * @wp_type: type of write_protect method (see wp_types enum above) | 35 | * @wp_type: type of write_protect method (see wp_types enum above) |
| 34 | * @cd_type: type of card_detect method (see cd_types enum above) | 36 | * @cd_type: type of card_detect method (see cd_types enum above) |
| 37 | * @support_vsel: indicate it supports 1.8v switching | ||
| 35 | */ | 38 | */ |
| 36 | 39 | ||
| 37 | struct esdhc_platform_data { | 40 | struct esdhc_platform_data { |
| @@ -41,5 +44,7 @@ struct esdhc_platform_data { | |||
| 41 | enum cd_types cd_type; | 44 | enum cd_types cd_type; |
| 42 | int max_bus_width; | 45 | int max_bus_width; |
| 43 | unsigned int f_max; | 46 | unsigned int f_max; |
| 47 | bool support_vsel; | ||
| 48 | unsigned int delay_line; | ||
| 44 | }; | 49 | }; |
| 45 | #endif /* __ASM_ARCH_IMX_ESDHC_H */ | 50 | #endif /* __ASM_ARCH_IMX_ESDHC_H */ |
diff --git a/include/linux/platform_data/mtd-nand-omap2.h b/include/linux/platform_data/mtd-nand-omap2.h index 6bf9ef43ddb1..4da5bfa2147f 100644 --- a/include/linux/platform_data/mtd-nand-omap2.h +++ b/include/linux/platform_data/mtd-nand-omap2.h | |||
| @@ -23,13 +23,16 @@ enum nand_io { | |||
| 23 | }; | 23 | }; |
| 24 | 24 | ||
| 25 | enum omap_ecc { | 25 | enum omap_ecc { |
| 26 | /* 1-bit ecc: stored at end of spare area */ | 26 | /* 1-bit ECC calculation by GPMC, Error detection by Software */ |
| 27 | OMAP_ECC_HAMMING_CODE_DEFAULT = 0, /* Default, s/w method */ | 27 | OMAP_ECC_HAM1_CODE_HW = 0, |
| 28 | OMAP_ECC_HAMMING_CODE_HW, /* gpmc to detect the error */ | 28 | /* 4-bit ECC calculation by GPMC, Error detection by Software */ |
| 29 | /* 1-bit ecc: stored at beginning of spare area as romcode */ | 29 | OMAP_ECC_BCH4_CODE_HW_DETECTION_SW, |
| 30 | OMAP_ECC_HAMMING_CODE_HW_ROMCODE, /* gpmc method & romcode layout */ | 30 | /* 4-bit ECC calculation by GPMC, Error detection by ELM */ |
| 31 | OMAP_ECC_BCH4_CODE_HW, /* 4-bit BCH ecc code */ | 31 | OMAP_ECC_BCH4_CODE_HW, |
| 32 | OMAP_ECC_BCH8_CODE_HW, /* 8-bit BCH ecc code */ | 32 | /* 8-bit ECC calculation by GPMC, Error detection by Software */ |
| 33 | OMAP_ECC_BCH8_CODE_HW_DETECTION_SW, | ||
| 34 | /* 8-bit ECC calculation by GPMC, Error detection by ELM */ | ||
| 35 | OMAP_ECC_BCH8_CODE_HW, | ||
| 33 | }; | 36 | }; |
| 34 | 37 | ||
| 35 | struct gpmc_nand_regs { | 38 | struct gpmc_nand_regs { |
| @@ -63,5 +66,6 @@ struct omap_nand_platform_data { | |||
| 63 | 66 | ||
| 64 | /* for passing the partitions */ | 67 | /* for passing the partitions */ |
| 65 | struct device_node *of_node; | 68 | struct device_node *of_node; |
| 69 | struct device_node *elm_of_node; | ||
| 66 | }; | 70 | }; |
| 67 | #endif | 71 | #endif |
diff --git a/include/linux/platform_data/pinctrl-adi2.h b/include/linux/platform_data/pinctrl-adi2.h new file mode 100644 index 000000000000..8f91300617ec --- /dev/null +++ b/include/linux/platform_data/pinctrl-adi2.h | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* | ||
| 2 | * Pinctrl Driver for ADI GPIO2 controller | ||
| 3 | * | ||
| 4 | * Copyright 2007-2013 Analog Devices Inc. | ||
| 5 | * | ||
| 6 | * Licensed under the GPLv2 or later | ||
| 7 | */ | ||
| 8 | |||
| 9 | |||
| 10 | #ifndef PINCTRL_ADI2_H | ||
| 11 | #define PINCTRL_ADI2_H | ||
| 12 | |||
| 13 | #include <linux/io.h> | ||
| 14 | #include <linux/platform_device.h> | ||
| 15 | |||
| 16 | /** | ||
| 17 | * struct adi_pinctrl_gpio_platform_data - Pinctrl gpio platform data | ||
| 18 | * for ADI GPIO2 device. | ||
| 19 | * | ||
| 20 | * @port_gpio_base: Optional global GPIO index of the GPIO bank. | ||
| 21 | * 0 means driver decides. | ||
| 22 | * @port_pin_base: Pin index of the pin controller device. | ||
| 23 | * @port_width: PIN number of the GPIO bank device | ||
| 24 | * @pint_id: GPIO PINT device id that this GPIO bank should map to. | ||
| 25 | * @pint_assign: The 32-bit GPIO PINT registers can be divided into 2 parts. A | ||
| 26 | * GPIO bank can be mapped into either low 16 bits[0] or high 16 | ||
| 27 | * bits[1] of each PINT register. | ||
| 28 | * @pint_map: GIOP bank mapping code in PINT device | ||
| 29 | */ | ||
| 30 | struct adi_pinctrl_gpio_platform_data { | ||
| 31 | unsigned int port_gpio_base; | ||
| 32 | unsigned int port_pin_base; | ||
| 33 | unsigned int port_width; | ||
| 34 | u8 pinctrl_id; | ||
| 35 | u8 pint_id; | ||
| 36 | bool pint_assign; | ||
| 37 | u8 pint_map; | ||
| 38 | }; | ||
| 39 | |||
| 40 | #endif | ||
diff --git a/include/linux/platform_data/pinctrl-single.h b/include/linux/platform_data/pinctrl-single.h new file mode 100644 index 000000000000..72eacda9b360 --- /dev/null +++ b/include/linux/platform_data/pinctrl-single.h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | /** | ||
| 2 | * irq: optional wake-up interrupt | ||
| 3 | * rearm: optional soc specific rearm function | ||
| 4 | * | ||
| 5 | * Note that the irq and rearm setup should come from device | ||
| 6 | * tree except for omap where there are still some dependencies | ||
| 7 | * to the legacy PRM code. | ||
| 8 | */ | ||
| 9 | struct pcs_pdata { | ||
| 10 | int irq; | ||
| 11 | void (*rearm)(void); | ||
| 12 | }; | ||
diff --git a/include/linux/platform_data/usb-ehci-s5p.h b/include/linux/platform_data/usb-ehci-s5p.h deleted file mode 100644 index 5f28cae18582..000000000000 --- a/include/linux/platform_data/usb-ehci-s5p.h +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2011 Samsung Electronics Co.Ltd | ||
| 3 | * Author: Joonyoung Shim <jy0922.shim@samsung.com> | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify it | ||
| 6 | * under the terms of the GNU General Public License as published by the | ||
| 7 | * Free Software Foundation; either version 2 of the License, or (at your | ||
| 8 | * option) any later version. | ||
| 9 | */ | ||
| 10 | |||
| 11 | #ifndef __PLAT_SAMSUNG_EHCI_H | ||
| 12 | #define __PLAT_SAMSUNG_EHCI_H __FILE__ | ||
| 13 | |||
| 14 | struct s5p_ehci_platdata { | ||
| 15 | int (*phy_init)(struct platform_device *pdev, int type); | ||
| 16 | int (*phy_exit)(struct platform_device *pdev, int type); | ||
| 17 | }; | ||
| 18 | |||
| 19 | extern void s5p_ehci_set_platdata(struct s5p_ehci_platdata *pd); | ||
| 20 | |||
| 21 | #endif /* __PLAT_SAMSUNG_EHCI_H */ | ||
diff --git a/include/linux/platform_data/usb-ohci-exynos.h b/include/linux/platform_data/usb-ohci-exynos.h deleted file mode 100644 index c256c595be5e..000000000000 --- a/include/linux/platform_data/usb-ohci-exynos.h +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2011 Samsung Electronics Co.Ltd | ||
| 3 | * http://www.samsung.com/ | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify it | ||
| 6 | * under the terms of the GNU General Public License as published by the | ||
| 7 | * Free Software Foundation; either version 2 of the License, or (at your | ||
| 8 | * option) any later version. | ||
| 9 | */ | ||
| 10 | |||
| 11 | #ifndef __MACH_EXYNOS_OHCI_H | ||
| 12 | #define __MACH_EXYNOS_OHCI_H | ||
| 13 | |||
| 14 | struct exynos4_ohci_platdata { | ||
| 15 | int (*phy_init)(struct platform_device *pdev, int type); | ||
| 16 | int (*phy_exit)(struct platform_device *pdev, int type); | ||
| 17 | }; | ||
| 18 | |||
| 19 | extern void exynos4_ohci_set_platdata(struct exynos4_ohci_platdata *pd); | ||
| 20 | |||
| 21 | #endif /* __MACH_EXYNOS_OHCI_H */ | ||
diff --git a/include/linux/platform_data/usb-rcar-gen2-phy.h b/include/linux/platform_data/usb-rcar-gen2-phy.h new file mode 100644 index 000000000000..dd3ba46c0d90 --- /dev/null +++ b/include/linux/platform_data/usb-rcar-gen2-phy.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2013 Renesas Solutions Corp. | ||
| 3 | * Copyright (C) 2013 Cogent Embedded, Inc. | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License version 2 as | ||
| 7 | * published by the Free Software Foundation. | ||
| 8 | */ | ||
| 9 | |||
| 10 | #ifndef __USB_RCAR_GEN2_PHY_H | ||
| 11 | #define __USB_RCAR_GEN2_PHY_H | ||
| 12 | |||
| 13 | #include <linux/types.h> | ||
| 14 | |||
| 15 | struct rcar_gen2_phy_platform_data { | ||
| 16 | /* USB channel 0 configuration */ | ||
| 17 | bool chan0_pci:1; /* true: PCI USB host 0, false: USBHS */ | ||
| 18 | /* USB channel 2 configuration */ | ||
| 19 | bool chan2_pci:1; /* true: PCI USB host 2, false: USBSS */ | ||
| 20 | }; | ||
| 21 | |||
| 22 | #endif | ||
diff --git a/include/linux/platform_data/zforce_ts.h b/include/linux/platform_data/zforce_ts.h new file mode 100644 index 000000000000..0472ab2f6ede --- /dev/null +++ b/include/linux/platform_data/zforce_ts.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* drivers/input/touchscreen/zforce.c | ||
| 2 | * | ||
| 3 | * Copyright (C) 2012-2013 MundoReader S.L. | ||
| 4 | * | ||
| 5 | * This software is licensed under the terms of the GNU General Public | ||
| 6 | * License version 2, as published by the Free Software Foundation, and | ||
| 7 | * may be copied, distributed, and modified under those terms. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #ifndef _LINUX_INPUT_ZFORCE_TS_H | ||
| 16 | #define _LINUX_INPUT_ZFORCE_TS_H | ||
| 17 | |||
| 18 | struct zforce_ts_platdata { | ||
| 19 | int gpio_int; | ||
| 20 | int gpio_rst; | ||
| 21 | |||
| 22 | unsigned int x_max; | ||
| 23 | unsigned int y_max; | ||
| 24 | }; | ||
| 25 | |||
| 26 | #endif /* _LINUX_INPUT_ZFORCE_TS_H */ | ||
