linux/drivers/media/pci/cobalt/cobalt-cpld.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *  Cobalt CPLD functions
 *
 *  Copyright 2012-2015 Cisco Systems, Inc. and/or its affiliates.
 *  All rights reserved.
 */

#include <linux/delay.h>

#include "cobalt-cpld.h"

#define ADRS(offset)

static u16 cpld_read(struct cobalt *cobalt, u32 offset)
{}

static void cpld_write(struct cobalt *cobalt, u32 offset, u16 val)
{}

static void cpld_info_ver3(struct cobalt *cobalt)
{}

void cobalt_cpld_status(struct cobalt *cobalt)
{}

#define DCO_MIN
#define DCO_MAX

#define SI570_CLOCK_CTRL
#define S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_WR_TRIGGER
#define S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_RST_TRIGGER
#define S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_FPGA_CTRL
#define S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_EN

#define SI570_REG7
#define SI570_REG8
#define SI570_REG9
#define SI570_REG10
#define SI570_REG11
#define SI570_REG12
#define SI570_REG135
#define SI570_REG137

struct multiplier {};

/* List all possible multipliers (= hsdiv * n1). There are lots of duplicates,
   which are all removed in this list to keep the list as short as possible.
   The values for hsdiv and n1 are the actual values, not the register values.
 */
static const struct multiplier multipliers[] =;

bool cobalt_cpld_set_freq(struct cobalt *cobalt, unsigned f_out)
{}