diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/dmaengine.h | 7 | ||||
-rw-r--r-- | include/linux/i2c/twl.h | 2 | ||||
-rw-r--r-- | include/linux/mfd/wm8994/pdata.h | 4 | ||||
-rw-r--r-- | include/linux/platform_data/asoc-mx27vis.h | 11 | ||||
-rw-r--r-- | include/linux/platform_data/asoc-ti-mcbsp.h | 2 | ||||
-rw-r--r-- | include/linux/platform_data/davinci_asp.h | 105 | ||||
-rw-r--r-- | include/linux/platform_data/omap-twl4030.h | 32 |
7 files changed, 157 insertions, 6 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 9c02a4508b25..d3201e438d16 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h | |||
@@ -591,7 +591,7 @@ struct dma_device { | |||
591 | struct dma_async_tx_descriptor *(*device_prep_dma_cyclic)( | 591 | struct dma_async_tx_descriptor *(*device_prep_dma_cyclic)( |
592 | struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len, | 592 | struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len, |
593 | size_t period_len, enum dma_transfer_direction direction, | 593 | size_t period_len, enum dma_transfer_direction direction, |
594 | void *context); | 594 | unsigned long flags, void *context); |
595 | struct dma_async_tx_descriptor *(*device_prep_interleaved_dma)( | 595 | struct dma_async_tx_descriptor *(*device_prep_interleaved_dma)( |
596 | struct dma_chan *chan, struct dma_interleaved_template *xt, | 596 | struct dma_chan *chan, struct dma_interleaved_template *xt, |
597 | unsigned long flags); | 597 | unsigned long flags); |
@@ -653,10 +653,11 @@ static inline struct dma_async_tx_descriptor *dmaengine_prep_rio_sg( | |||
653 | 653 | ||
654 | static inline struct dma_async_tx_descriptor *dmaengine_prep_dma_cyclic( | 654 | static inline struct dma_async_tx_descriptor *dmaengine_prep_dma_cyclic( |
655 | struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len, | 655 | struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len, |
656 | size_t period_len, enum dma_transfer_direction dir) | 656 | size_t period_len, enum dma_transfer_direction dir, |
657 | unsigned long flags) | ||
657 | { | 658 | { |
658 | return chan->device->device_prep_dma_cyclic(chan, buf_addr, buf_len, | 659 | return chan->device->device_prep_dma_cyclic(chan, buf_addr, buf_len, |
659 | period_len, dir, NULL); | 660 | period_len, dir, flags, NULL); |
660 | } | 661 | } |
661 | 662 | ||
662 | static inline int dmaengine_terminate_all(struct dma_chan *chan) | 663 | static inline int dmaengine_terminate_all(struct dma_chan *chan) |
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h index 1faa58f9b85e..9a5e28462324 100644 --- a/include/linux/i2c/twl.h +++ b/include/linux/i2c/twl.h | |||
@@ -664,7 +664,7 @@ struct twl4030_codec_data { | |||
664 | unsigned int check_defaults:1; | 664 | unsigned int check_defaults:1; |
665 | unsigned int reset_registers:1; | 665 | unsigned int reset_registers:1; |
666 | unsigned int hs_extmute:1; | 666 | unsigned int hs_extmute:1; |
667 | void (*set_hs_extmute)(int mute); | 667 | int hs_extmute_gpio; |
668 | }; | 668 | }; |
669 | 669 | ||
670 | struct twl4030_vibra_data { | 670 | struct twl4030_vibra_data { |
diff --git a/include/linux/mfd/wm8994/pdata.h b/include/linux/mfd/wm8994/pdata.h index f0361c031927..fc87be4fdc25 100644 --- a/include/linux/mfd/wm8994/pdata.h +++ b/include/linux/mfd/wm8994/pdata.h | |||
@@ -164,6 +164,10 @@ struct wm8994_pdata { | |||
164 | int num_micd_rates; | 164 | int num_micd_rates; |
165 | struct wm8958_micd_rate *micd_rates; | 165 | struct wm8958_micd_rate *micd_rates; |
166 | 166 | ||
167 | /* Power up delays to add after microphone bias power up (ms) */ | ||
168 | int micb1_delay; | ||
169 | int micb2_delay; | ||
170 | |||
167 | /* LINEOUT can be differential or single ended */ | 171 | /* LINEOUT can be differential or single ended */ |
168 | unsigned int lineout1_diff:1; | 172 | unsigned int lineout1_diff:1; |
169 | unsigned int lineout2_diff:1; | 173 | unsigned int lineout2_diff:1; |
diff --git a/include/linux/platform_data/asoc-mx27vis.h b/include/linux/platform_data/asoc-mx27vis.h new file mode 100644 index 000000000000..409adcd04d04 --- /dev/null +++ b/include/linux/platform_data/asoc-mx27vis.h | |||
@@ -0,0 +1,11 @@ | |||
1 | #ifndef __PLATFORM_DATA_ASOC_MX27VIS_H | ||
2 | #define __PLATFORM_DATA_ASOC_MX27VIS_H | ||
3 | |||
4 | struct snd_mx27vis_platform_data { | ||
5 | int amp_gain0_gpio; | ||
6 | int amp_gain1_gpio; | ||
7 | int amp_mutel_gpio; | ||
8 | int amp_muter_gpio; | ||
9 | }; | ||
10 | |||
11 | #endif /* __PLATFORM_DATA_ASOC_MX27VIS_H */ | ||
diff --git a/include/linux/platform_data/asoc-ti-mcbsp.h b/include/linux/platform_data/asoc-ti-mcbsp.h index 18814127809a..c78d90b28b19 100644 --- a/include/linux/platform_data/asoc-ti-mcbsp.h +++ b/include/linux/platform_data/asoc-ti-mcbsp.h | |||
@@ -47,8 +47,6 @@ struct omap_mcbsp_platform_data { | |||
47 | bool has_wakeup; /* Wakeup capability */ | 47 | bool has_wakeup; /* Wakeup capability */ |
48 | bool has_ccr; /* Transceiver has configuration control registers */ | 48 | bool has_ccr; /* Transceiver has configuration control registers */ |
49 | int (*enable_st_clock)(unsigned int, bool); | 49 | int (*enable_st_clock)(unsigned int, bool); |
50 | int (*set_clk_src)(struct device *dev, struct clk *clk, const char *src); | ||
51 | int (*mux_signal)(struct device *dev, const char *signal, const char *src); | ||
52 | }; | 50 | }; |
53 | 51 | ||
54 | /** | 52 | /** |
diff --git a/include/linux/platform_data/davinci_asp.h b/include/linux/platform_data/davinci_asp.h new file mode 100644 index 000000000000..d0c5825876f8 --- /dev/null +++ b/include/linux/platform_data/davinci_asp.h | |||
@@ -0,0 +1,105 @@ | |||
1 | /* | ||
2 | * TI DaVinci Audio Serial Port support | ||
3 | * | ||
4 | * Copyright (C) 2012 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_ASP_H | ||
17 | #define __DAVINCI_ASP_H | ||
18 | |||
19 | struct snd_platform_data { | ||
20 | u32 tx_dma_offset; | ||
21 | u32 rx_dma_offset; | ||
22 | int asp_chan_q; /* event queue number for ASP channel */ | ||
23 | int ram_chan_q; /* event queue number for RAM channel */ | ||
24 | unsigned int codec_fmt; | ||
25 | /* | ||
26 | * Allowing this is more efficient and eliminates left and right swaps | ||
27 | * caused by underruns, but will swap the left and right channels | ||
28 | * when compared to previous behavior. | ||
29 | */ | ||
30 | unsigned enable_channel_combine:1; | ||
31 | unsigned sram_size_playback; | ||
32 | unsigned sram_size_capture; | ||
33 | |||
34 | /* | ||
35 | * If McBSP peripheral gets the clock from an external pin, | ||
36 | * there are three chooses, that are MCBSP_CLKX, MCBSP_CLKR | ||
37 | * and MCBSP_CLKS. | ||
38 | * Depending on different hardware connections it is possible | ||
39 | * to use this setting to change the behaviour of McBSP | ||
40 | * driver. | ||
41 | */ | ||
42 | int clk_input_pin; | ||
43 | |||
44 | /* | ||
45 | * This flag works when both clock and FS are outputs for the cpu | ||
46 | * and makes clock more accurate (FS is not symmetrical and the | ||
47 | * clock is very fast. | ||
48 | * The clock becoming faster is named | ||
49 | * i2s continuous serial clock (I2S_SCK) and it is an externally | ||
50 | * visible bit clock. | ||
51 | * | ||
52 | * first line : WordSelect | ||
53 | * second line : ContinuousSerialClock | ||
54 | * third line: SerialData | ||
55 | * | ||
56 | * SYMMETRICAL APPROACH: | ||
57 | * _______________________ LEFT | ||
58 | * _| RIGHT |______________________| | ||
59 | * _ _ _ _ _ _ _ _ | ||
60 | * _| |_| |_ x16 _| |_| |_| |_| |_ x16 _| |_| |_ | ||
61 | * _ _ _ _ _ _ _ _ | ||
62 | * _/ \_/ \_ ... _/ \_/ \_/ \_/ \_ ... _/ \_/ \_ | ||
63 | * \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ | ||
64 | * | ||
65 | * ACCURATE CLOCK APPROACH: | ||
66 | * ______________ LEFT | ||
67 | * _| RIGHT |_______________________________| | ||
68 | * _ _ _ _ _ _ _ _ _ | ||
69 | * _| |_ x16 _| |_| |_ x16 _| |_| |_| |_| |_| |_| | | ||
70 | * _ _ _ _ dummy cycles | ||
71 | * _/ \_ ... _/ \_/ \_ ... _/ \__________________ | ||
72 | * \_/ \_/ \_/ \_/ | ||
73 | * | ||
74 | */ | ||
75 | bool i2s_accurate_sck; | ||
76 | |||
77 | /* McASP specific fields */ | ||
78 | int tdm_slots; | ||
79 | u8 op_mode; | ||
80 | u8 num_serializer; | ||
81 | u8 *serial_dir; | ||
82 | u8 version; | ||
83 | u8 txnumevt; | ||
84 | u8 rxnumevt; | ||
85 | }; | ||
86 | |||
87 | enum { | ||
88 | MCASP_VERSION_1 = 0, /* DM646x */ | ||
89 | MCASP_VERSION_2, /* DA8xx/OMAPL1x */ | ||
90 | MCASP_VERSION_3, /* TI81xx/AM33xx */ | ||
91 | }; | ||
92 | |||
93 | enum mcbsp_clk_input_pin { | ||
94 | MCBSP_CLKR = 0, /* as in DM365 */ | ||
95 | MCBSP_CLKS, | ||
96 | }; | ||
97 | |||
98 | #define INACTIVE_MODE 0 | ||
99 | #define TX_MODE 1 | ||
100 | #define RX_MODE 2 | ||
101 | |||
102 | #define DAVINCI_MCASP_IIS_MODE 0 | ||
103 | #define DAVINCI_MCASP_DIT_MODE 1 | ||
104 | |||
105 | #endif | ||
diff --git a/include/linux/platform_data/omap-twl4030.h b/include/linux/platform_data/omap-twl4030.h new file mode 100644 index 000000000000..c7bef788daab --- /dev/null +++ b/include/linux/platform_data/omap-twl4030.h | |||
@@ -0,0 +1,32 @@ | |||
1 | /** | ||
2 | * omap-twl4030.h - ASoC machine driver for TI SoC based boards with twl4030 | ||
3 | * codec, header. | ||
4 | * | ||
5 | * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com | ||
6 | * All rights reserved. | ||
7 | * | ||
8 | * Author: Peter Ujfalusi <peter.ujfalusi@ti.com> | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or | ||
11 | * modify it under the terms of the GNU General Public License | ||
12 | * version 2 as published by the Free Software Foundation. | ||
13 | * | ||
14 | * This program is distributed in the hope that it will be useful, but | ||
15 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
17 | * General Public License for more details. | ||
18 | * | ||
19 | * You should have received a copy of the GNU General Public License | ||
20 | * along with this program; if not, write to the Free Software | ||
21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
22 | * 02110-1301 USA | ||
23 | */ | ||
24 | |||
25 | #ifndef _OMAP_TWL4030_H_ | ||
26 | #define _OMAP_TWL4030_H_ | ||
27 | |||
28 | struct omap_tw4030_pdata { | ||
29 | const char *card_name; | ||
30 | }; | ||
31 | |||
32 | #endif /* _OMAP_TWL4030_H_ */ | ||