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

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2021 MediaTek Inc.
 * Author: Sam Shih <[email protected]>
 * Author: Wenzhen Yu <[email protected]>
 * Author: Jianhui Zhao <[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/mediatek,mt7981-clk.h>
#include <linux/clk.h>

static DEFINE_SPINLOCK(mt7981_clk_lock);

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_208m_parents[] __initconst =;

static const char * const emmc_400m_parents[] __initconst =;

static const char * const csw_f26m_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 ap2cnn_host_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 eip97b_parents[] __initconst =;

static const char * const aud_parents[] __initconst =;

static const char * const a1sys_parents[] __initconst =;

static const char * const aud_l_parents[] __initconst =;

static const char * const a_tuner_parents[] __initconst =;

static const char * const u2u3_parents[] __initconst =;

static const char * const u2u3_sys_parents[] __initconst =;

static const char * const usb_frmcnt_parents[] __initconst =;

static const struct mtk_mux top_muxes[] =;

static struct mtk_composite top_aud_divs[] =;

static const struct mtk_clk_desc topck_desc =;

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

static struct platform_driver clk_mt7981_topckgen_drv =;
module_platform_driver();

MODULE_DESCRIPTION();
MODULE_LICENSE();