1 /* SPDX-License-Identifier: GPL-2.0 */
3 * cxd2880_tnrdmd_dvbt2.h
4 * Sony CXD2880 DVB-T2/T tuner + demodulator driver
5 * control interface for DVB-T2
7 * Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
10 #ifndef CXD2880_TNRDMD_DVBT2_H
11 #define CXD2880_TNRDMD_DVBT2_H
13 #include "cxd2880_common.h"
14 #include "cxd2880_tnrdmd.h"
16 enum cxd2880_tnrdmd_dvbt2_tune_info
{
17 CXD2880_TNRDMD_DVBT2_TUNE_INFO_OK
,
18 CXD2880_TNRDMD_DVBT2_TUNE_INFO_INVALID_PLP_ID
21 struct cxd2880_dvbt2_tune_param
{
23 enum cxd2880_dtv_bandwidth bandwidth
;
25 enum cxd2880_dvbt2_profile profile
;
26 enum cxd2880_tnrdmd_dvbt2_tune_info tune_info
;
29 #define CXD2880_DVBT2_TUNE_PARAM_PLPID_AUTO 0xffff
31 int cxd2880_tnrdmd_dvbt2_tune1(struct cxd2880_tnrdmd
*tnr_dmd
,
32 struct cxd2880_dvbt2_tune_param
35 int cxd2880_tnrdmd_dvbt2_tune2(struct cxd2880_tnrdmd
*tnr_dmd
,
36 struct cxd2880_dvbt2_tune_param
39 int cxd2880_tnrdmd_dvbt2_sleep_setting(struct cxd2880_tnrdmd
42 int cxd2880_tnrdmd_dvbt2_check_demod_lock(struct cxd2880_tnrdmd
45 cxd2880_tnrdmd_lock_result
48 int cxd2880_tnrdmd_dvbt2_check_ts_lock(struct cxd2880_tnrdmd
51 cxd2880_tnrdmd_lock_result
54 int cxd2880_tnrdmd_dvbt2_set_plp_cfg(struct cxd2880_tnrdmd
55 *tnr_dmd
, u8 auto_plp
,
58 int cxd2880_tnrdmd_dvbt2_diver_fef_setting(struct cxd2880_tnrdmd
61 int cxd2880_tnrdmd_dvbt2_check_l1post_valid(struct cxd2880_tnrdmd