#include <linux/cpu.h>
#include <linux/io.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pm_opp.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/sys_soc.h>
#define REVISION_MASK …
#define REVISION_SHIFT …
#define AM33XX_800M_ARM_MPU_MAX_FREQ …
#define AM43XX_600M_ARM_MPU_MAX_FREQ …
#define DRA7_EFUSE_HAS_OD_MPU_OPP …
#define DRA7_EFUSE_HAS_HIGH_MPU_OPP …
#define DRA76_EFUSE_HAS_PLUS_MPU_OPP …
#define DRA7_EFUSE_HAS_ALL_MPU_OPP …
#define DRA76_EFUSE_HAS_ALL_MPU_OPP …
#define DRA7_EFUSE_NOM_MPU_OPP …
#define DRA7_EFUSE_OD_MPU_OPP …
#define DRA7_EFUSE_HIGH_MPU_OPP …
#define DRA76_EFUSE_PLUS_MPU_OPP …
#define OMAP3_CONTROL_DEVICE_STATUS …
#define OMAP3_CONTROL_IDCODE …
#define OMAP34xx_ProdID_SKUID …
#define OMAP3_SYSCON_BASE …
#define AM625_EFUSE_K_MPU_OPP …
#define AM625_EFUSE_S_MPU_OPP …
#define AM625_EFUSE_T_MPU_OPP …
#define AM625_SUPPORT_K_MPU_OPP …
#define AM625_SUPPORT_S_MPU_OPP …
#define AM625_SUPPORT_T_MPU_OPP …
enum { … };
#define AM62A7_SUPPORT_N_MPU_OPP …
#define AM62A7_SUPPORT_R_MPU_OPP …
#define AM62A7_SUPPORT_V_MPU_OPP …
#define AM62P5_EFUSE_O_MPU_OPP …
#define AM62P5_EFUSE_S_MPU_OPP …
#define AM62P5_EFUSE_U_MPU_OPP …
#define AM62P5_SUPPORT_O_MPU_OPP …
#define AM62P5_SUPPORT_U_MPU_OPP …
#define VERSION_COUNT …
struct ti_cpufreq_data;
struct ti_cpufreq_soc_data { … };
struct ti_cpufreq_data { … };
static unsigned long amx3_efuse_xlate(struct ti_cpufreq_data *opp_data,
unsigned long efuse)
{ … }
static unsigned long dra7_efuse_xlate(struct ti_cpufreq_data *opp_data,
unsigned long efuse)
{ … }
static unsigned long omap3_efuse_xlate(struct ti_cpufreq_data *opp_data,
unsigned long efuse)
{ … }
static unsigned long am62p5_efuse_xlate(struct ti_cpufreq_data *opp_data,
unsigned long efuse)
{ … }
static unsigned long am62a7_efuse_xlate(struct ti_cpufreq_data *opp_data,
unsigned long efuse)
{ … }
static unsigned long am625_efuse_xlate(struct ti_cpufreq_data *opp_data,
unsigned long efuse)
{ … }
static struct ti_cpufreq_soc_data am3x_soc_data = …;
static struct ti_cpufreq_soc_data am4x_soc_data = …;
static struct ti_cpufreq_soc_data dra7_soc_data = …;
static struct ti_cpufreq_soc_data omap34xx_soc_data = …;
static const char * const omap3_reg_names[] = …;
static struct ti_cpufreq_soc_data omap36xx_soc_data = …;
static struct ti_cpufreq_soc_data am3517_soc_data = …;
static const struct soc_device_attribute k3_cpufreq_soc[] = …;
static struct ti_cpufreq_soc_data am625_soc_data = …;
static struct ti_cpufreq_soc_data am62a7_soc_data = …;
static struct ti_cpufreq_soc_data am62p5_soc_data = …;
static int ti_cpufreq_get_efuse(struct ti_cpufreq_data *opp_data,
u32 *efuse_value)
{ … }
static int ti_cpufreq_get_rev(struct ti_cpufreq_data *opp_data,
u32 *revision_value)
{ … }
static int ti_cpufreq_setup_syscon_register(struct ti_cpufreq_data *opp_data)
{ … }
static const struct of_device_id ti_cpufreq_of_match[] __maybe_unused = …;
static const struct of_device_id *ti_cpufreq_match_node(void)
{ … }
static int ti_cpufreq_probe(struct platform_device *pdev)
{ … }
static int __init ti_cpufreq_init(void)
{ … }
module_init(…) …;
static struct platform_driver ti_cpufreq_driver = …;
builtin_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;