|
Lines 14-20
Link Here
|
| 14 |
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
14 |
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| 15 |
|
15 |
|
| 16 |
#include <linux/clk.h> |
16 |
#include <linux/clk.h> |
| 17 |
#include <linux/cpufreq-dt.h> |
|
|
| 18 |
#include <linux/err.h> |
17 |
#include <linux/err.h> |
| 19 |
#include <linux/init.h> |
18 |
#include <linux/init.h> |
| 20 |
#include <linux/kernel.h> |
19 |
#include <linux/kernel.h> |
|
Lines 69-78
static void tegra124_cpu_switch_to_pllx(struct tegra124_cpufreq_priv *priv)
Link Here
|
| 69 |
clk_set_parent(priv->cpu_clk, priv->pllx_clk); |
68 |
clk_set_parent(priv->cpu_clk, priv->pllx_clk); |
| 70 |
} |
69 |
} |
| 71 |
|
70 |
|
| 72 |
static struct cpufreq_dt_platform_data cpufreq_dt_pd = { |
|
|
| 73 |
.independent_clocks = false, |
| 74 |
}; |
| 75 |
|
| 76 |
static int tegra124_cpufreq_probe(struct platform_device *pdev) |
71 |
static int tegra124_cpufreq_probe(struct platform_device *pdev) |
| 77 |
{ |
72 |
{ |
| 78 |
struct tegra124_cpufreq_priv *priv; |
73 |
struct tegra124_cpufreq_priv *priv; |
|
Lines 129-136
static int tegra124_cpufreq_probe(struct platform_device *pdev)
Link Here
|
| 129 |
|
124 |
|
| 130 |
cpufreq_dt_devinfo.name = "cpufreq-dt"; |
125 |
cpufreq_dt_devinfo.name = "cpufreq-dt"; |
| 131 |
cpufreq_dt_devinfo.parent = &pdev->dev; |
126 |
cpufreq_dt_devinfo.parent = &pdev->dev; |
| 132 |
cpufreq_dt_devinfo.data = &cpufreq_dt_pd; |
|
|
| 133 |
cpufreq_dt_devinfo.size_data = sizeof(cpufreq_dt_pd); |
| 134 |
|
127 |
|
| 135 |
priv->cpufreq_dt_pdev = |
128 |
priv->cpufreq_dt_pdev = |
| 136 |
platform_device_register_full(&cpufreq_dt_devinfo); |
129 |
platform_device_register_full(&cpufreq_dt_devinfo); |
| 137 |
- |
|
|