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