blob: b35f5b848508a8d521dedfef873c077c9300a754 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#ifndef _COMMON_H
#define _COMMON_H
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <mach/gpio.h>
/* #define Si4709_DEBUG */
#define error(fmt, arg...) printk(KERN_CRIT fmt "\n", ##arg)
#ifdef Si4709_DEBUG
#define debug(fmt, arg...) printk(KERN_CRIT "--------" fmt "\n", ##arg)
#else
#define debug(fmt, arg...)
#endif
#define FM_RESET GPIO_FM_RST
#if defined(CONFIG_MACH_Q1_CMCC_BD)
#define FM_PORT "GPX13"
#else
#define FM_PORT "GPB"
#endif
#define FM_IRQ_INT gpio_to_irq(GPIO_FM_INT) /* GPB1(EXT_INT3[1]) */
/* VNVS:28-OCT'09 : For testing FM tune and seek operation status */
#define TEST_FM
/* VNVS:7-JUNE'10 : RDS Interrupt ON Always */
/* (Enabling interrupt when RDS is enabled) */
#define RDS_INTERRUPT_ON_ALWAYS
/* VNVS:18-JUN'10 : For testing RDS */
/* Enable only for debugging RDS */
/* #define RDS_TESTING */
#ifdef RDS_TESTING
#define debug_rds(fmt, arg...) printk(KERN_CRIT "--------" fmt "\n", ##arg)
#define GROUP_TYPE_2A (2 * 2 + 0)
#define GROUP_TYPE_2B (2 * 2 + 1)
#else
#define debug_rds(fmt, arg...)
#endif
#define YES 1
#define NO 0
#endif
|