xref: /linux/drivers/media/dvb-frontends/cxd2841er_priv.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * cxd2841er_priv.h
4  *
5  * Sony CXD2441ER digital demodulator driver internal definitions
6  *
7  * Copyright 2012 Sony Corporation
8  * Copyright (C) 2014 NetUP Inc.
9  * Copyright (C) 2014 Sergey Kozlov <serjk@netup.ru>
10  * Copyright (C) 2014 Abylay Ospan <aospan@netup.ru>
11  */
12 
13 #ifndef CXD2841ER_PRIV_H
14 #define CXD2841ER_PRIV_H
15 
16 #define I2C_SLVX			0
17 #define I2C_SLVT			1
18 
19 #define CXD2837ER_CHIP_ID		0xb1
20 #define CXD2838ER_CHIP_ID		0xb0
21 #define CXD2841ER_CHIP_ID		0xa7
22 #define CXD2843ER_CHIP_ID		0xa4
23 #define CXD2854ER_CHIP_ID		0xc1
24 
25 #define CXD2841ER_DVBS_POLLING_INVL	10
26 
27 struct cxd2841er_cnr_data {
28 	u32 value;
29 	int cnr_x1000;
30 };
31 
32 enum cxd2841er_dvbt2_profile_t {
33 	DVBT2_PROFILE_ANY = 0,
34 	DVBT2_PROFILE_BASE = 1,
35 	DVBT2_PROFILE_LITE = 2
36 };
37 
38 #endif
39