blob: 1b532d8ea0e68393c9ed2593477cca4c6dc10cce [file] [log] [blame]
/*
* drivers/amlogic/media/vin/tvin/tvin_format_table.h
*
* Copyright (C) 2017 Amlogic, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
*/
#ifndef __TVIN_FORMAT_TABLE_H
#define __TVIN_FORMAT_TABLE_H
#include <linux/amlogic/media/frame_provider/tvin/tvin.h>
#include "tvin_global.h"
extern const char *tvin_sig_fmt_str(enum tvin_sig_fmt_e fmt);
extern const struct tvin_format_s *tvin_get_fmt_info(enum tvin_sig_fmt_e fmt);
extern const struct tvin_format_s tvin_hdmi_fmt_tbl[TVIN_SIG_FMT_HDMI_MAX -
TVIN_SIG_FMT_HDMI_640X480P_60HZ + 1];
extern const struct tvin_format_s tvin_cvbs_fmt_tbl[TVIN_SIG_FMT_CVBS_MAX -
TVIN_SIG_FMT_CVBS_NTSC_M + 1];
extern const struct tvin_format_s tvin_bt601_fmt_tbl[TVIN_SIG_FMT_BT601_MAX -
TVIN_SIG_FMT_BT656IN_576I_50HZ + 1];
extern const unsigned char adc_cvbs_table[ADC_REG_NUM];
extern const unsigned char cvd_part1_table[TVIN_SIG_FMT_CVBS_NTSC_50 -
TVIN_SIG_FMT_CVBS_NTSC_M + 1][CVD_PART1_REG_NUM];
extern const unsigned char cvd_part2_table[TVIN_SIG_FMT_CVBS_NTSC_50 -
TVIN_SIG_FMT_CVBS_NTSC_M + 1][CVD_PART2_REG_NUM];
/* 0x87, 0x93, 0x94, 0x95, 0x96, 0xe6, 0xfa */
extern const unsigned int cvd_part3_table[TVIN_SIG_FMT_CVBS_NTSC_50 -
TVIN_SIG_FMT_CVBS_NTSC_M + 1][CVD_PART3_REG_NUM];
extern const unsigned int cvbs_acd_table[TVIN_SIG_FMT_CVBS_NTSC_50 -
TVIN_SIG_FMT_CVBS_NTSC_M + 1][ACD_REG_NUM+1];
extern const unsigned int rf_acd_table[TVIN_SIG_FMT_CVBS_NTSC_50 -
TVIN_SIG_FMT_CVBS_NTSC_M + 1][ACD_REG_NUM+1];
extern const unsigned char cvd_yc_reg_0x00_0x03[TVIN_SIG_FMT_CVBS_NTSC_50 -
TVIN_SIG_FMT_CVBS_NTSC_M + 1][4];
extern const unsigned char cvd_yc_reg_0x18_0x1f[TVIN_SIG_FMT_CVBS_NTSC_50 -
TVIN_SIG_FMT_CVBS_NTSC_M + 1][8];
#endif