Don't set CONFIG_CPU for __PCTOOL__, to avoid wrong asm
[maemo-rb.git] / firmware / export / rda5802.h
blob0dae3ab5d25e792ca9b79b4fb252c3544bb56502
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * $Id$
11 * Tuner header for the RDA Microelectronics RDA5802 FM tuner chip
13 * Copyright (C) 2010 Bertrik Sikken
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
23 ****************************************************************************/
25 #ifndef _RDA5802_H_
26 #define _RDA5802_H_
28 #define HAVE_RADIO_REGION
29 #define HAVE_RADIO_RSSI
31 struct rda5802_dbg_info
33 uint16_t regs[16]; /* Read registers */
36 bool rda5802_detect(void);
37 void rda5802_init(void);
38 int rda5802_set(int setting, int value);
39 int rda5802_get(int setting);
40 void rda5802_dbg_info(struct rda5802_dbg_info *nfo);
42 #ifndef CONFIG_TUNER_MULTI
43 #define tuner_set rda5802_set
44 #define tuner_get rda5802_get
45 #endif
47 #endif /* _RDA5802_H_ */