xref: /openbmc/linux/drivers/media/tuners/it913x.h (revision 55fd7e02)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * ITE Tech IT9137 silicon tuner driver
4  *
5  *  Copyright (C) 2011 Malcolm Priestley (tvboxspy@gmail.com)
6  *  IT9137 Copyright (C) ITE Tech Inc.
7  */
8 
9 #ifndef IT913X_H
10 #define IT913X_H
11 
12 #include <media/dvb_frontend.h>
13 
14 /**
15  * struct it913x_platform_data - Platform data for the it913x driver
16  * @regmap: af9033 demod driver regmap.
17  * @dvb_frontend: af9033 demod driver DVB frontend.
18  * @role: Chip role, single or dual configuration.
19  */
20 
21 struct it913x_platform_data {
22 	struct regmap *regmap;
23 	struct dvb_frontend *fe;
24 #define IT913X_ROLE_SINGLE         0
25 #define IT913X_ROLE_DUAL_MASTER    1
26 #define IT913X_ROLE_DUAL_SLAVE     2
27 	unsigned int role:2;
28 };
29 
30 #endif
31