linux/drivers/clk/imx/clk-imx8mn.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright 2018-2019 NXP.
 */

#include <dt-bindings/clock/imx8mn-clock.h>
#include <linux/clk-provider.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/types.h>

#include "clk.h"

static u32 share_count_sai2;
static u32 share_count_sai3;
static u32 share_count_sai5;
static u32 share_count_sai6;
static u32 share_count_sai7;
static u32 share_count_disp;
static u32 share_count_pdm;
static u32 share_count_nand;

static const char * const pll_ref_sels[] =;
static const char * const audio_pll1_bypass_sels[] =;
static const char * const audio_pll2_bypass_sels[] =;
static const char * const video_pll_bypass_sels[] =;
static const char * const dram_pll_bypass_sels[] =;
static const char * const gpu_pll_bypass_sels[] =;
static const char * const m7_alt_pll_bypass_sels[] =;
static const char * const arm_pll_bypass_sels[] =;
static const char * const sys_pll3_bypass_sels[] =;

static const char * const imx8mn_a53_sels[] =;

static const char * const imx8mn_a53_core_sels[] =;

static const char * const imx8mn_m7_sels[] =;

static const char * const imx8mn_gpu_core_sels[] =;

static const char * const imx8mn_gpu_shader_sels[] =;

static const char * const imx8mn_main_axi_sels[] =;

static const char * const imx8mn_enet_axi_sels[] =;

static const char * const imx8mn_nand_usdhc_sels[] =;

static const char * const imx8mn_disp_axi_sels[] =;

static const char * const imx8mn_disp_apb_sels[] =;

static const char * const imx8mn_usb_bus_sels[] =;

static const char * const imx8mn_gpu_axi_sels[] =;

static const char * const imx8mn_gpu_ahb_sels[] =;

static const char * const imx8mn_noc_sels[] =;

static const char * const imx8mn_ahb_sels[] =;

static const char * const imx8mn_audio_ahb_sels[] =;

static const char * const imx8mn_dram_alt_sels[] =;

static const char * const imx8mn_dram_apb_sels[] =;

static const char * const imx8mn_disp_pixel_sels[] =;

static const char * const imx8mn_sai2_sels[] =;

static const char * const imx8mn_sai3_sels[] =;

static const char * const imx8mn_sai5_sels[] =;

static const char * const imx8mn_sai6_sels[] =;

static const char * const imx8mn_sai7_sels[] =;

static const char * const imx8mn_spdif1_sels[] =;

static const char * const imx8mn_enet_ref_sels[] =;

static const char * const imx8mn_enet_timer_sels[] =;

static const char * const imx8mn_enet_phy_sels[] =;

static const char * const imx8mn_nand_sels[] =;

static const char * const imx8mn_qspi_sels[] =;

static const char * const imx8mn_usdhc1_sels[] =;

static const char * const imx8mn_usdhc2_sels[] =;

static const char * const imx8mn_i2c1_sels[] =;

static const char * const imx8mn_i2c2_sels[] =;

static const char * const imx8mn_i2c3_sels[] =;

static const char * const imx8mn_i2c4_sels[] =;

static const char * const imx8mn_uart1_sels[] =;

static const char * const imx8mn_uart2_sels[] =;

static const char * const imx8mn_uart3_sels[] =;

static const char * const imx8mn_uart4_sels[] =;

static const char * const imx8mn_usb_core_sels[] =;

static const char * const imx8mn_usb_phy_sels[] =;

static const char * const imx8mn_gic_sels[] =;

static const char * const imx8mn_ecspi1_sels[] =;

static const char * const imx8mn_ecspi2_sels[] =;

static const char * const imx8mn_pwm1_sels[] =;

static const char * const imx8mn_pwm2_sels[] =;

static const char * const imx8mn_pwm3_sels[] =;

static const char * const imx8mn_pwm4_sels[] =;

static const char * const imx8mn_gpt1_sels[] =;

static const char * const imx8mn_gpt2_sels[] =;

static const char * const imx8mn_gpt3_sels[] =;

static const char * const imx8mn_gpt4_sels[] =;

static const char * const imx8mn_gpt5_sels[] =;

static const char * const imx8mn_gpt6_sels[] =;

static const char * const imx8mn_wdog_sels[] =;

static const char * const imx8mn_wrclk_sels[] =;

static const char * const imx8mn_dsi_core_sels[] =;

static const char * const imx8mn_dsi_phy_sels[] =;

static const char * const imx8mn_dsi_dbi_sels[] =;

static const char * const imx8mn_usdhc3_sels[] =;

static const char * const imx8mn_camera_pixel_sels[] =;

static const char * const imx8mn_csi1_phy_sels[] =;

static const char * const imx8mn_csi2_phy_sels[] =;

static const char * const imx8mn_csi2_esc_sels[] =;

static const char * const imx8mn_ecspi3_sels[] =;

static const char * const imx8mn_pdm_sels[] =;

static const char * const imx8mn_dram_core_sels[] =;

static const char * const imx8mn_clko1_sels[] =;
static const char * const imx8mn_clko2_sels[] =;

static const char * const clkout_sels[] =;

static struct clk_hw_onecell_data *clk_hw_data;
static struct clk_hw **hws;

static int imx8mn_clocks_probe(struct platform_device *pdev)
{}

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

static struct platform_driver imx8mn_clk_driver =;
module_platform_driver();
module_param(mcore_booted, bool, S_IRUGO);
MODULE_PARM_DESC();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();