linux/drivers/clk/mediatek/clk-mt7986-topckgen.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2021 MediaTek Inc.
 * Author: Sam Shih <[email protected]>
 * Author: Wenzhen Yu <[email protected]>
 */

#include <linux/clk-provider.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include "clk-mtk.h"
#include "clk-gate.h"
#include "clk-mux.h"

#include <dt-bindings/clock/mt7986-clk.h>
#include <linux/clk.h>

static DEFINE_SPINLOCK(mt7986_clk_lock);

static const struct mtk_fixed_clk top_fixed_clks[] =;

static const struct mtk_fixed_factor top_divs[] =;

static const char *const nfi1x_parents[] __initconst =;

static const char *const spinfi_parents[] __initconst =;

static const char *const spi_parents[] __initconst =;

static const char *const uart_parents[] __initconst =;

static const char *const pwm_parents[] __initconst =;

static const char *const i2c_parents[] __initconst =;

static const char *const pextp_tl_ck_parents[] __initconst =;

static const char *const emmc_250m_parents[] __initconst =;

static const char *const emmc_416m_parents[] __initconst =;

static const char *const f_26m_adc_parents[] __initconst =;

static const char *const dramc_md32_parents[] __initconst =;

static const char *const sysaxi_parents[] __initconst =;

static const char *const sysapb_parents[] __initconst =;

static const char *const arm_db_main_parents[] __initconst =;

static const char *const arm_db_jtsel_parents[] __initconst =;

static const char *const netsys_parents[] __initconst =;

static const char *const netsys_500m_parents[] __initconst =;

static const char *const netsys_mcu_parents[] __initconst =;

static const char *const netsys_2x_parents[] __initconst =;

static const char *const sgm_325m_parents[] __initconst =;

static const char *const sgm_reg_parents[] __initconst =;

static const char *const a1sys_parents[] __initconst =;

static const char *const conn_mcusys_parents[] __initconst =;

static const char *const eip_b_parents[] __initconst =;

static const char *const aud_l_parents[] __initconst =;

static const char *const a_tuner_parents[] __initconst =;

static const char *const u2u3_sys_parents[] __initconst =;

static const char *const da_u2_refsel_parents[] __initconst =;

static const struct mtk_mux top_muxes[] =;

static const struct mtk_clk_desc topck_desc =;

static const struct of_device_id of_match_clk_mt7986_topckgen[] =;
MODULE_DEVICE_TABLE(of, of_match_clk_mt7986_topckgen);

static struct platform_driver clk_mt7986_topckgen_drv =;
module_platform_driver();

MODULE_DESCRIPTION();
MODULE_LICENSE();