linux/drivers/media/pci/mgb4/mgb4_cmt.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2021-2023 Digiteq Automotive
 *     author: Martin Tuma <[email protected]>
 *
 * The CMT module configures the FPGA Clock Management Tile (CMT) registers. For
 * different video signal frequencies (FPGA input signal frequencies), the FPGA
 * CMT registers need to be adjusted for the FPGA to work properly. The values
 * are precomputed based on formulas given by Xilinx in their FPGA documentation
 * (which are in turn full of some magic values/tables...).
 */

#include <linux/types.h>
#include <linux/kernel.h>
#include "mgb4_core.h"
#include "mgb4_cmt.h"

static const u16 cmt_vals_out[][15] =;

static const u16 cmt_vals_in[][13] =;

static const u32 cmt_addrs_out[][15] =;

static const u32 cmt_addrs_in[][13] =;

static const u32 cmt_freq[] =;

static size_t freq_srch(u32 key, const u32 *array, size_t size)
{}

u32 mgb4_cmt_set_vout_freq(struct mgb4_vout_dev *voutdev, unsigned int freq)
{}

void mgb4_cmt_set_vin_freq_range(struct mgb4_vin_dev *vindev,
				 unsigned int freq_range)
{}