summaryrefslogtreecommitdiff
path: root/firmware/drivers/tuner/rda5802.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-11-09 23:01:24 +0100
committerSolomon Peachy <pizza@shaftnet.org>2024-10-27 09:10:15 -0400
commitd22bb548b23c4281fc0fa0862333d912069752ae (patch)
tree285e61d230e9175647a520f589566bce978689c7 /firmware/drivers/tuner/rda5802.c
parent977308c95ca57ebbf00139843a8dc03f6c743a11 (diff)
downloadrockbox-d22bb548b23c4281fc0fa0862333d912069752ae.tar.gz
rockbox-d22bb548b23c4281fc0fa0862333d912069752ae.zip
rda5802: document some registers
This information is available in the RDA5802N or RDA5807 datasheet. I suspect that register SYSCONFIG6 is not actually used by the tuner. Based on an obscure statement in the datasheet, I guess SYSCONFIG5 is a frequency in Khz called freq_direct that offsets the lower band frequency (56/67 MHz) but 1) it is not enabled (FREQ_MODE=0) and 2) it is not clear if this offset is really just to avoid interference (ie the RF and IF are simply shifted by this amount) or an actual offset. Change-Id: Ia469f5370aee7c8c3390324d0cef1193c64df755
Diffstat (limited to 'firmware/drivers/tuner/rda5802.c')
-rw-r--r--firmware/drivers/tuner/rda5802.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/drivers/tuner/rda5802.c b/firmware/drivers/tuner/rda5802.c
index 3f122714bd..55e775e985 100644
--- a/firmware/drivers/tuner/rda5802.c
+++ b/firmware/drivers/tuner/rda5802.c
@@ -48,9 +48,9 @@
48#define SYSCONFIG1 0x4 48#define SYSCONFIG1 0x4
49#define SYSCONFIG2 0x5 49#define SYSCONFIG2 0x5
50#define SYSCONFIG3 0x6 50#define SYSCONFIG3 0x6
51#define SYSCONFIG4 0x7 /* undocumented */ 51#define SYSCONFIG4 0x7
52#define SYSCONFIG5 0x8 /* undocumented */ 52#define SYSCONFIG5 0x8
53#define SYSCONFIG6 0x9 /* undocumented */ 53#define SYSCONFIG6 0x9 /* suspected not to exists */
54#define READCHAN 0xA 54#define READCHAN 0xA
55#define STATUSRSSI 0xB 55#define STATUSRSSI 0xB
56 56
@@ -81,7 +81,7 @@
81 81
82/* SYSCONFIG1 (0x4) */ 82/* SYSCONFIG1 (0x4) */
83#define SYSCONFIG1_DE (0x1 << 11) 83#define SYSCONFIG1_DE (0x1 << 11)
84 #define SYSCONFIG1_SOFTMUTE_EN (0x1 << 9) 84#define SYSCONFIG1_SOFTMUTE_EN (0x1 << 9)
85 85
86/* SYSCONFIG2 (0x5) */ 86/* SYSCONFIG2 (0x5) */
87#define SYSCONFIG2_VOLUME (0xF << 0) 87#define SYSCONFIG2_VOLUME (0xF << 0)
@@ -105,9 +105,9 @@ static uint16_t cache[16] = {
105 [SYSCONFIG1] = 0x0200, /* SYSCONFIG1_SOFTMUTE_EN */ 105 [SYSCONFIG1] = 0x0200, /* SYSCONFIG1_SOFTMUTE_EN */
106 [SYSCONFIG2] = 0x867F, /* INT_MODE (def), SEEKTH=1100b, LNA_PORT_SEL=LNAN, 106 [SYSCONFIG2] = 0x867F, /* INT_MODE (def), SEEKTH=1100b, LNA_PORT_SEL=LNAN,
107 LNA_ICSEL=3.0mA, VOLUME=max */ 107 LNA_ICSEL=3.0mA, VOLUME=max */
108 [SYSCONFIG3] = 0x8000, /* I2S slave mode */ 108 [SYSCONFIG3] = 0x8000, /* RSVD */
109 [SYSCONFIG4] = 0x4712, /* undocumented, affects stereo blend */ 109 [SYSCONFIG4] = 0x4712, /* TH_SOFRBLEND=34dB, 65M_50M MODE=65~76MHz, RSVD, SEEK_TH_OLD=4, SOFTBLEND_EN */
110 [SYSCONFIG5] = 0x5EC6, /* undocumented */ 110 [SYSCONFIG5] = 0x5EC6, /* FREQ_DIRECT=24262kHz (unused) */
111 [SYSCONFIG6] = 0x0000 /* undocumented */ 111 [SYSCONFIG6] = 0x0000 /* undocumented */
112}; 112};
113 113