#include <media/dvb_frontend.h>
#include "cxd2880_common.h"
#include "cxd2880_tnrdmd.h"
#include "cxd2880_tnrdmd_mon.h"
#include "cxd2880_tnrdmd_dvbt.h"
#include "cxd2880_tnrdmd_dvbt2.h"
static const struct cxd2880_reg_value p_init1_seq[] = …;
static const struct cxd2880_reg_value rf_init1_seq1[] = …;
static const struct cxd2880_reg_value rf_init1_seq2[] = …;
static const struct cxd2880_reg_value rf_init1_seq3[] = …;
static const struct cxd2880_reg_value rf_init1_seq4[] = …;
static const struct cxd2880_reg_value rf_init1_seq5[] = …;
static const struct cxd2880_reg_value rf_init1_seq6[] = …;
static const struct cxd2880_reg_value rf_init1_seq7[] = …;
static const struct cxd2880_reg_value rf_init1_seq8[] = …;
static const struct cxd2880_reg_value rf_init1_seq9[] = …;
static const struct cxd2880_reg_value rf_init2_seq1[] = …;
static const struct cxd2880_reg_value rf_init2_seq2[] = …;
static const struct cxd2880_reg_value x_tune1_seq1[] = …;
static const struct cxd2880_reg_value x_tune1_seq2[] = …;
static const struct cxd2880_reg_value x_tune2_seq1[] = …;
static const struct cxd2880_reg_value x_tune2_seq2[] = …;
static const struct cxd2880_reg_value x_tune2_seq3[] = …;
static const struct cxd2880_reg_value x_tune2_seq4[] = …;
static const struct cxd2880_reg_value x_tune2_seq5[] = …;
static const struct cxd2880_reg_value x_tune3_seq[] = …;
static const struct cxd2880_reg_value x_tune4_seq[] = …;
static const struct cxd2880_reg_value x_sleep1_seq[] = …;
static const struct cxd2880_reg_value x_sleep2_seq1[] = …;
static const struct cxd2880_reg_value x_sleep2_seq2[] = …;
static const struct cxd2880_reg_value x_sleep3_seq[] = …;
static const struct cxd2880_reg_value x_sleep4_seq[] = …;
static const struct cxd2880_reg_value spll_reset_seq1[] = …;
static const struct cxd2880_reg_value spll_reset_seq2[] = …;
static const struct cxd2880_reg_value spll_reset_seq3[] = …;
static const struct cxd2880_reg_value spll_reset_seq4[] = …;
static const struct cxd2880_reg_value spll_reset_seq5[] = …;
static const struct cxd2880_reg_value t_power_x_seq1[] = …;
static const struct cxd2880_reg_value t_power_x_seq2[] = …;
static const struct cxd2880_reg_value t_power_x_seq3[] = …;
static const struct cxd2880_reg_value t_power_x_seq4[] = …;
static const struct cxd2880_reg_value t_power_x_seq5[] = …;
static const struct cxd2880_reg_value t_power_x_seq6[] = …;
static const struct cxd2880_reg_value t_power_x_seq7[] = …;
static const struct cxd2880_reg_value set_ts_pin_seq[] = …;
static const struct cxd2880_reg_value set_ts_output_seq1[] = …;
static const struct cxd2880_reg_value set_ts_output_seq2[] = …;
static const struct cxd2880_reg_value set_ts_output_seq3[] = …;
static const struct cxd2880_reg_value set_ts_output_seq4[] = …;
static int p_init1(struct cxd2880_tnrdmd *tnr_dmd)
{ … }
static int p_init2(struct cxd2880_tnrdmd *tnr_dmd)
{ … }
static int p_init3(struct cxd2880_tnrdmd *tnr_dmd)
{ … }
static int rf_init1(struct cxd2880_tnrdmd *tnr_dmd)
{ … }
static int rf_init2(struct cxd2880_tnrdmd *tnr_dmd)
{ … }
static int x_tune1(struct cxd2880_tnrdmd *tnr_dmd,
enum cxd2880_dtv_sys sys, u32 freq_khz,
enum cxd2880_dtv_bandwidth bandwidth,
u8 is_cable, int shift_frequency_khz)
{ … }
static int x_tune2(struct cxd2880_tnrdmd *tnr_dmd,
enum cxd2880_dtv_bandwidth bandwidth,
enum cxd2880_tnrdmd_clockmode clk_mode,
int shift_frequency_khz)
{ … }
static int x_tune3(struct cxd2880_tnrdmd *tnr_dmd,
enum cxd2880_dtv_sys sys,
u8 en_fef_intmtnt_ctrl)
{ … }
static int x_tune4(struct cxd2880_tnrdmd *tnr_dmd)
{ … }
static int x_sleep1(struct cxd2880_tnrdmd *tnr_dmd)
{ … }
static int x_sleep2(struct cxd2880_tnrdmd *tnr_dmd)
{ … }
static int x_sleep3(struct cxd2880_tnrdmd *tnr_dmd)
{ … }
static int x_sleep4(struct cxd2880_tnrdmd *tnr_dmd)
{ … }
static int spll_reset(struct cxd2880_tnrdmd *tnr_dmd,
enum cxd2880_tnrdmd_clockmode clockmode)
{ … }
static int t_power_x(struct cxd2880_tnrdmd *tnr_dmd, u8 on)
{ … }
struct cxd2880_tnrdmd_ts_clk_cfg { … };
static int set_ts_clk_mode_and_freq(struct cxd2880_tnrdmd *tnr_dmd,
enum cxd2880_dtv_sys sys)
{ … }
static int pid_ftr_setting(struct cxd2880_tnrdmd *tnr_dmd,
struct cxd2880_tnrdmd_pid_ftr_cfg
*pid_ftr_cfg)
{ … }
static int load_cfg_mem(struct cxd2880_tnrdmd *tnr_dmd)
{ … }
static int set_cfg_mem(struct cxd2880_tnrdmd *tnr_dmd,
enum cxd2880_io_tgt tgt,
u8 bank, u8 address, u8 value, u8 bit_mask)
{ … }
int cxd2880_tnrdmd_create(struct cxd2880_tnrdmd *tnr_dmd,
struct cxd2880_io *io,
struct cxd2880_tnrdmd_create_param
*create_param)
{ … }
int cxd2880_tnrdmd_diver_create(struct cxd2880_tnrdmd
*tnr_dmd_main,
struct cxd2880_io *io_main,
struct cxd2880_tnrdmd *tnr_dmd_sub,
struct cxd2880_io *io_sub,
struct
cxd2880_tnrdmd_diver_create_param
*create_param)
{ … }
int cxd2880_tnrdmd_init1(struct cxd2880_tnrdmd *tnr_dmd)
{ … }
int cxd2880_tnrdmd_init2(struct cxd2880_tnrdmd *tnr_dmd)
{ … }
int cxd2880_tnrdmd_check_internal_cpu_status(struct cxd2880_tnrdmd
*tnr_dmd,
u8 *task_completed)
{ … }
int cxd2880_tnrdmd_common_tune_setting1(struct cxd2880_tnrdmd *tnr_dmd,
enum cxd2880_dtv_sys sys,
u32 frequency_khz,
enum cxd2880_dtv_bandwidth
bandwidth, u8 one_seg_opt,
u8 one_seg_opt_shft_dir)
{ … }
int cxd2880_tnrdmd_common_tune_setting2(struct cxd2880_tnrdmd
*tnr_dmd,
enum cxd2880_dtv_sys sys,
u8 en_fef_intmtnt_ctrl)
{ … }
int cxd2880_tnrdmd_sleep(struct cxd2880_tnrdmd *tnr_dmd)
{ … }
int cxd2880_tnrdmd_set_cfg(struct cxd2880_tnrdmd *tnr_dmd,
enum cxd2880_tnrdmd_cfg_id id,
int value)
{ … }
int cxd2880_tnrdmd_gpio_set_cfg(struct cxd2880_tnrdmd *tnr_dmd,
u8 id,
u8 en,
enum cxd2880_tnrdmd_gpio_mode mode,
u8 open_drain, u8 invert)
{ … }
int cxd2880_tnrdmd_gpio_set_cfg_sub(struct cxd2880_tnrdmd *tnr_dmd,
u8 id,
u8 en,
enum cxd2880_tnrdmd_gpio_mode
mode, u8 open_drain, u8 invert)
{ … }
int cxd2880_tnrdmd_gpio_read(struct cxd2880_tnrdmd *tnr_dmd,
u8 id, u8 *value)
{ … }
int cxd2880_tnrdmd_gpio_read_sub(struct cxd2880_tnrdmd *tnr_dmd,
u8 id, u8 *value)
{ … }
int cxd2880_tnrdmd_gpio_write(struct cxd2880_tnrdmd *tnr_dmd,
u8 id, u8 value)
{ … }
int cxd2880_tnrdmd_gpio_write_sub(struct cxd2880_tnrdmd *tnr_dmd,
u8 id, u8 value)
{ … }
int cxd2880_tnrdmd_interrupt_read(struct cxd2880_tnrdmd *tnr_dmd,
u16 *value)
{ … }
int cxd2880_tnrdmd_interrupt_clear(struct cxd2880_tnrdmd *tnr_dmd,
u16 value)
{ … }
int cxd2880_tnrdmd_ts_buf_clear(struct cxd2880_tnrdmd *tnr_dmd,
u8 clear_overflow_flag,
u8 clear_underflow_flag,
u8 clear_buf)
{ … }
int cxd2880_tnrdmd_chip_id(struct cxd2880_tnrdmd *tnr_dmd,
enum cxd2880_tnrdmd_chip_id *chip_id)
{ … }
int cxd2880_tnrdmd_set_and_save_reg_bits(struct cxd2880_tnrdmd
*tnr_dmd,
enum cxd2880_io_tgt tgt,
u8 bank, u8 address,
u8 value, u8 bit_mask)
{ … }
int cxd2880_tnrdmd_set_scan_mode(struct cxd2880_tnrdmd *tnr_dmd,
enum cxd2880_dtv_sys sys,
u8 scan_mode_end)
{ … }
int cxd2880_tnrdmd_set_pid_ftr(struct cxd2880_tnrdmd *tnr_dmd,
struct cxd2880_tnrdmd_pid_ftr_cfg
*pid_ftr_cfg)
{ … }
int cxd2880_tnrdmd_set_rf_lvl_cmpstn(struct cxd2880_tnrdmd
*tnr_dmd,
int (*rf_lvl_cmpstn)
(struct cxd2880_tnrdmd *,
int *))
{ … }
int cxd2880_tnrdmd_set_rf_lvl_cmpstn_sub(struct cxd2880_tnrdmd
*tnr_dmd,
int (*rf_lvl_cmpstn)
(struct cxd2880_tnrdmd *,
int *))
{ … }
int cxd2880_tnrdmd_set_lna_thrs(struct cxd2880_tnrdmd *tnr_dmd,
struct cxd2880_tnrdmd_lna_thrs_tbl_air
*tbl_air,
struct cxd2880_tnrdmd_lna_thrs_tbl_cable
*tbl_cable)
{ … }
int cxd2880_tnrdmd_set_lna_thrs_sub(struct cxd2880_tnrdmd *tnr_dmd,
struct
cxd2880_tnrdmd_lna_thrs_tbl_air
*tbl_air,
struct cxd2880_tnrdmd_lna_thrs_tbl_cable
*tbl_cable)
{ … }
int cxd2880_tnrdmd_set_ts_pin_high_low(struct cxd2880_tnrdmd
*tnr_dmd, u8 en, u8 value)
{ … }
int cxd2880_tnrdmd_set_ts_output(struct cxd2880_tnrdmd *tnr_dmd,
u8 en)
{ … }
int slvt_freeze_reg(struct cxd2880_tnrdmd *tnr_dmd)
{ … }