i.MX31: Add some enums and a couple helper functions to make dealing with pin muxing...
[kugel-rb.git] / firmware / export / lv24020lp.h
blob16a8856a3fa49da15439fc2bf496c0c06b0b398e
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 * Tuner header for the Sanyo LV24020LP
11 * Copyright (C) 2007 Michael Sevakis
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
21 ****************************************************************************/
23 #ifndef _LV24020LP_H_
24 #define _LV24020LP_H_
26 /* Define additional tuner messages here */
27 #define HAVE_RADIO_REGION
29 #define LV24020LP_CTRL_STAT (RADIO_GET_CHIP_FIRST+0)
30 #define LV24020LP_REG_STAT (RADIO_GET_CHIP_FIRST+1)
31 #define LV24020LP_MSS_FM (RADIO_GET_CHIP_FIRST+2)
32 #define LV24020LP_MSS_IF (RADIO_GET_CHIP_FIRST+3)
33 #define LV24020LP_MSS_SD (RADIO_GET_CHIP_FIRST+4)
34 #define LV24020LP_IF_SET (RADIO_GET_CHIP_FIRST+5)
35 #define LV24020LP_SD_SET (RADIO_GET_CHIP_FIRST+6)
37 #define LV24020LP_DEBUG_FIRST LV24020LP_CTRL_STAT
38 #define LV24020LP_DEBUG_LAST LV24020LP_SD_SET
40 const unsigned char lv24020lp_region_data[TUNER_NUM_REGIONS];
42 int lv24020lp_set(int setting, int value);
43 int lv24020lp_get(int setting);
44 void lv24020lp_power(bool status);
45 void lv24020lp_init(void);
46 void lv24020lp_lock(void);
47 void lv24020lp_unlock(void);
49 #ifndef CONFIG_TUNER_MULTI
50 #define tuner_set lv24020lp_set
51 #define tuner_get lv24020lp_get
52 #endif
54 #endif /* _LV24020LP_H_ */