linux/drivers/clk/x86/clk-fch.c

// SPDX-License-Identifier: MIT
/*
 * clock framework for AMD FCH controller block
 *
 * Copyright 2018 Advanced Micro Devices, Inc.
 */

#include <linux/clk.h>
#include <linux/clkdev.h>
#include <linux/clk-provider.h>
#include <linux/pci.h>
#include <linux/platform_data/clk-fch.h>
#include <linux/platform_device.h>

/* Clock Driving Strength 2 register */
#define CLKDRVSTR2
/* Clock Control 1 register */
#define MISCCLKCNTL1
/* Auxiliary clock1 enable bit */
#define OSCCLKENB
/* 25Mhz auxiliary output clock freq bit */
#define OSCOUT1CLK25MHZ

#define ST_CLK_48M
#define ST_CLK_25M
#define ST_CLK_MUX
#define ST_CLK_GATE
#define ST_MAX_CLKS

#define CLK_48M_FIXED
#define CLK_GATE_FIXED
#define CLK_MAX_FIXED

/* List of supported CPU ids for clk mux with 25Mhz clk support */
#define AMD_CPU_ID_ST

static const char * const clk_oscout1_parents[] =;
static struct clk_hw *hws[ST_MAX_CLKS];

static const struct pci_device_id fch_pci_ids[] =;

static int fch_clk_probe(struct platform_device *pdev)
{}

static void fch_clk_remove(struct platform_device *pdev)
{}

static struct platform_driver fch_clk_driver =;
builtin_platform_driver();