Root/
1 | /* |
2 | * ADV7343 header file |
3 | * |
4 | * Copyright (C) 2009 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 ADV7343_H |
17 | #define ADV7343_H |
18 | |
19 | #define ADV7343_COMPOSITE_ID (0) |
20 | #define ADV7343_COMPONENT_ID (1) |
21 | #define ADV7343_SVIDEO_ID (2) |
22 | |
23 | /** |
24 | * adv7343_power_mode - power mode configuration. |
25 | * @sleep_mode: on enable the current consumption is reduced to micro ampere |
26 | * level. All DACs and the internal PLL circuit are disabled. |
27 | * Registers can be read from and written in sleep mode. |
28 | * @pll_control: PLL and oversampling control. This control allows internal |
29 | * PLL 1 circuit to be powered down and the oversampling to be |
30 | * switched off. |
31 | * @dac: array to configure power on/off DAC's 1..6 |
32 | * |
33 | * Power mode register (Register 0x0), for more info refer REGISTER MAP ACCESS |
34 | * section of datasheet[1], table 17 page no 30. |
35 | * |
36 | * [1] http://www.analog.com/static/imported-files/data_sheets/ADV7342_7343.pdf |
37 | */ |
38 | struct adv7343_power_mode { |
39 | bool sleep_mode; |
40 | bool pll_control; |
41 | u32 dac[6]; |
42 | }; |
43 | |
44 | /** |
45 | * struct adv7343_sd_config - SD Only Output Configuration. |
46 | * @sd_dac_out: array configuring SD DAC Outputs 1 and 2 |
47 | */ |
48 | struct adv7343_sd_config { |
49 | /* SD only Output Configuration */ |
50 | u32 sd_dac_out[2]; |
51 | }; |
52 | |
53 | /** |
54 | * struct adv7343_platform_data - Platform data values and access functions. |
55 | * @mode_config: Configuration for power mode. |
56 | * @sd_config: SD Only Configuration. |
57 | */ |
58 | struct adv7343_platform_data { |
59 | struct adv7343_power_mode mode_config; |
60 | struct adv7343_sd_config sd_config; |
61 | }; |
62 | |
63 | #endif /* End of #ifndef ADV7343_H */ |
64 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9