Root/
Source at commit daf6635b83d8430f2c5619ab69506434120ad546 created 12 years 5 months ago. By Maarten ter Huurne, media: radio: RDA5807: Added driver. | |
---|---|
1 | /* |
2 | * radio-rda5807.h - Board related data for the RDA5807 FM tuner chip driver |
3 | * |
4 | * Copyright (c) 2011 Maarten ter Huurne <maarten@treewalker.org> |
5 | * |
6 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License version 2 as |
8 | * published by the Free Software Foundation. |
9 | * |
10 | * This program is distributed in the hope that it will be useful, |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | * GNU General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU General Public License |
16 | * along with this program; if not, write to the Free Software |
17 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
18 | */ |
19 | |
20 | #ifndef RADIO_RDA5807_H |
21 | #define RADIO_RDA5807_H |
22 | |
23 | /* The driver uses random access I/O to the registers via I2C address 0x11. */ |
24 | #define RDA5807_I2C_ADDR 0x11 |
25 | |
26 | /* Working current: 1.8, 2.1, 2.5 or 3.0 mA. */ |
27 | #define RDA5807_INPUT_LNA_WC_18 (0 << 0) |
28 | #define RDA5807_INPUT_LNA_WC_21 (1 << 0) |
29 | #define RDA5807_INPUT_LNA_WC_25 (2 << 0) |
30 | #define RDA5807_INPUT_LNA_WC_30 (3 << 0) |
31 | /* Use antenna signal connected to LNAN and/or LNAP pin? */ |
32 | #define RDA5807_LNA_PORT_N (1 << 2) |
33 | #define RDA5807_LNA_PORT_P (1 << 3) |
34 | |
35 | /* Ouput analog audio on LOUT+ROUT pins */ |
36 | #define RDA5807_OUTPUT_AUDIO_ANALOG (1 << 0) |
37 | /* Output digital audio using I2S on GPIO1-3 pins */ |
38 | #define RDA5807_OUTPUT_AUDIO_I2S (1 << 1) |
39 | /* Output stereo indicator signal on GPIO3 pin */ |
40 | #define RDA5807_OUTPUT_STEREO_INDICATOR (1 << 2) |
41 | |
42 | struct rda5807_platform_data { |
43 | u8 input_flags; |
44 | u8 output_flags; |
45 | }; |
46 | |
47 | #endif /* RADIO_RDA5807_H */ |
48 |
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