1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2020 - 2022, NVIDIA CORPORATION. All rights reserved
7 #include <linux/cpufreq.h>
8 #include <linux/delay.h>
9 #include <linux/dma-mapping.h>
10 #include <linux/module.h>
12 #include <linux/of_platform.h>
13 #include <linux/platform_device.h>
14 #include <linux/slab.h>
15 #include <linux/units.h>
17 #include <asm/smp_plat.h>
19 #include <soc/tegra/bpmp.h>
20 #include <soc/tegra/bpmp-abi.h>
23 #define REF_CLK_MHZ 408 /* 408 MHz */
25 #define CPUFREQ_TBL_STEP_HZ (50 * KHZ * KHZ)
28 #define NDIV_MASK 0x1FF
30 #define CORE_OFFSET(cpu) (cpu * 8)
31 #define CMU_CLKS_BASE 0x2000
32 #define SCRATCH_FREQ_CORE_REG(data, cpu) (data->regs + CMU_CLKS_BASE + CORE_OFFSET(cpu))
34 #define MMCRAB_CLUSTER_BASE(cl) (0x30000 + (cl * 0x10000))
35 #define CLUSTER_ACTMON_BASE(data, cl) \
36 (data->regs + (MMCRAB_CLUSTER_BASE(cl) + data->soc->actmon_cntr_base))
37 #define CORE_ACTMON_CNTR_REG(data, cl, cpu) (CLUSTER_ACTMON_BASE(data, cl) + CORE_OFFSET(cpu))
39 /* cpufreq transisition latency */
40 #define TEGRA_CPUFREQ_TRANSITION_LATENCY (300 * 1000) /* unit in nanoseconds */
42 struct tegra_cpu_ctr {
44 u32 coreclk_cnt, last_coreclk_cnt;
45 u32 refclk_cnt, last_refclk_cnt;
48 struct read_counters_work {
49 struct work_struct work;
50 struct tegra_cpu_ctr c;
53 struct tegra_cpufreq_ops {
54 void (*read_counters)(struct tegra_cpu_ctr *c);
55 void (*set_cpu_ndiv)(struct cpufreq_policy *policy, u64 ndiv);
56 void (*get_cpu_cluster_id)(u32 cpu, u32 *cpuid, u32 *clusterid);
57 int (*get_cpu_ndiv)(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv);
60 struct tegra_cpufreq_soc {
61 struct tegra_cpufreq_ops *ops;
62 int maxcpus_per_cluster;
63 unsigned int num_clusters;
64 phys_addr_t actmon_cntr_base;
67 struct tegra194_cpufreq_data {
69 struct cpufreq_frequency_table **bpmp_luts;
70 const struct tegra_cpufreq_soc *soc;
71 bool icc_dram_bw_scaling;
74 static struct workqueue_struct *read_counters_wq;
76 static int tegra_cpufreq_set_bw(struct cpufreq_policy *policy, unsigned long freq_khz)
78 struct tegra194_cpufreq_data *data = cpufreq_get_driver_data();
79 struct dev_pm_opp *opp;
83 dev = get_cpu_device(policy->cpu);
87 opp = dev_pm_opp_find_freq_exact(dev, freq_khz * KHZ, true);
91 ret = dev_pm_opp_set_opp(dev, opp);
93 data->icc_dram_bw_scaling = false;
99 static void tegra_get_cpu_mpidr(void *mpidr)
101 *((u64 *)mpidr) = read_cpuid_mpidr() & MPIDR_HWID_BITMASK;
104 static void tegra234_get_cpu_cluster_id(u32 cpu, u32 *cpuid, u32 *clusterid)
108 smp_call_function_single(cpu, tegra_get_cpu_mpidr, &mpidr, true);
111 *cpuid = MPIDR_AFFINITY_LEVEL(mpidr, 1);
113 *clusterid = MPIDR_AFFINITY_LEVEL(mpidr, 2);
116 static int tegra234_get_cpu_ndiv(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv)
118 struct tegra194_cpufreq_data *data = cpufreq_get_driver_data();
119 void __iomem *freq_core_reg;
122 /* use physical id to get address of per core frequency register */
123 mpidr_id = (clusterid * data->soc->maxcpus_per_cluster) + cpuid;
124 freq_core_reg = SCRATCH_FREQ_CORE_REG(data, mpidr_id);
126 *ndiv = readl(freq_core_reg) & NDIV_MASK;
131 static void tegra234_set_cpu_ndiv(struct cpufreq_policy *policy, u64 ndiv)
133 struct tegra194_cpufreq_data *data = cpufreq_get_driver_data();
134 void __iomem *freq_core_reg;
135 u32 cpu, cpuid, clusterid;
138 for_each_cpu_and(cpu, policy->cpus, cpu_online_mask) {
139 data->soc->ops->get_cpu_cluster_id(cpu, &cpuid, &clusterid);
141 /* use physical id to get address of per core frequency register */
142 mpidr_id = (clusterid * data->soc->maxcpus_per_cluster) + cpuid;
143 freq_core_reg = SCRATCH_FREQ_CORE_REG(data, mpidr_id);
145 writel(ndiv, freq_core_reg);
150 * This register provides access to two counter values with a single
151 * 64-bit read. The counter values are used to determine the average
152 * actual frequency a core has run at over a period of time.
153 * [63:32] PLLP counter: Counts at fixed frequency (408 MHz)
154 * [31:0] Core clock counter: Counts on every core clock cycle
156 static void tegra234_read_counters(struct tegra_cpu_ctr *c)
158 struct tegra194_cpufreq_data *data = cpufreq_get_driver_data();
159 void __iomem *actmon_reg;
160 u32 cpuid, clusterid;
163 data->soc->ops->get_cpu_cluster_id(c->cpu, &cpuid, &clusterid);
164 actmon_reg = CORE_ACTMON_CNTR_REG(data, clusterid, cpuid);
166 val = readq(actmon_reg);
167 c->last_refclk_cnt = upper_32_bits(val);
168 c->last_coreclk_cnt = lower_32_bits(val);
170 val = readq(actmon_reg);
171 c->refclk_cnt = upper_32_bits(val);
172 c->coreclk_cnt = lower_32_bits(val);
175 static struct tegra_cpufreq_ops tegra234_cpufreq_ops = {
176 .read_counters = tegra234_read_counters,
177 .get_cpu_cluster_id = tegra234_get_cpu_cluster_id,
178 .get_cpu_ndiv = tegra234_get_cpu_ndiv,
179 .set_cpu_ndiv = tegra234_set_cpu_ndiv,
182 static const struct tegra_cpufreq_soc tegra234_cpufreq_soc = {
183 .ops = &tegra234_cpufreq_ops,
184 .actmon_cntr_base = 0x9000,
185 .maxcpus_per_cluster = 4,
189 static const struct tegra_cpufreq_soc tegra239_cpufreq_soc = {
190 .ops = &tegra234_cpufreq_ops,
191 .actmon_cntr_base = 0x4000,
192 .maxcpus_per_cluster = 8,
196 static void tegra194_get_cpu_cluster_id(u32 cpu, u32 *cpuid, u32 *clusterid)
200 smp_call_function_single(cpu, tegra_get_cpu_mpidr, &mpidr, true);
203 *cpuid = MPIDR_AFFINITY_LEVEL(mpidr, 0);
205 *clusterid = MPIDR_AFFINITY_LEVEL(mpidr, 1);
209 * Read per-core Read-only system register NVFREQ_FEEDBACK_EL1.
210 * The register provides frequency feedback information to
211 * determine the average actual frequency a core has run at over
213 * [31:0] PLLP counter: Counts at fixed frequency (408 MHz)
214 * [63:32] Core clock counter: counts on every core clock cycle
215 * where the core is architecturally clocking
217 static u64 read_freq_feedback(void)
221 asm volatile("mrs %0, s3_0_c15_c0_5" : "=r" (val) : );
226 static inline u32 map_ndiv_to_freq(struct mrq_cpu_ndiv_limits_response
229 return nltbl->ref_clk_hz / KHZ * ndiv / (nltbl->pdiv * nltbl->mdiv);
232 static void tegra194_read_counters(struct tegra_cpu_ctr *c)
236 val = read_freq_feedback();
237 c->last_refclk_cnt = lower_32_bits(val);
238 c->last_coreclk_cnt = upper_32_bits(val);
240 val = read_freq_feedback();
241 c->refclk_cnt = lower_32_bits(val);
242 c->coreclk_cnt = upper_32_bits(val);
245 static void tegra_read_counters(struct work_struct *work)
247 struct tegra194_cpufreq_data *data = cpufreq_get_driver_data();
248 struct read_counters_work *read_counters_work;
249 struct tegra_cpu_ctr *c;
252 * ref_clk_counter(32 bit counter) runs on constant clk,
254 * It will take = 2 ^ 32 / 408 MHz to overflow ref clk counter
255 * = 10526880 usec = 10.527 sec to overflow
257 * Like wise core_clk_counter(32 bit counter) runs on core clock.
258 * It's synchronized to crab_clk (cpu_crab_clk) which runs at
259 * freq of cluster. Assuming max cluster clock ~2000MHz,
260 * It will take = 2 ^ 32 / 2000 MHz to overflow core clk counter
261 * = ~2.147 sec to overflow
263 read_counters_work = container_of(work, struct read_counters_work,
265 c = &read_counters_work->c;
267 data->soc->ops->read_counters(c);
271 * Return instantaneous cpu speed
272 * Instantaneous freq is calculated as -
273 * -Takes sample on every query of getting the freq.
274 * - Read core and ref clock counters;
276 * - Read above cycle counters again
277 * - Calculates freq by subtracting current and previous counters
278 * divided by the delay time or eqv. of ref_clk_counter in delta time
279 * - Return Kcycles/second, freq in KHz
281 * delta time period = x sec
282 * = delta ref_clk_counter / (408 * 10^6) sec
283 * freq in Hz = cycles/sec
284 * = (delta cycles / x sec
285 * = (delta cycles * 408 * 10^6) / delta ref_clk_counter
286 * in KHz = (delta cycles * 408 * 10^3) / delta ref_clk_counter
288 * @cpu - logical cpu whose freq to be updated
289 * Returns freq in KHz on success, 0 if cpu is offline
291 static unsigned int tegra194_calculate_speed(u32 cpu)
293 struct read_counters_work read_counters_work;
294 struct tegra_cpu_ctr c;
300 * udelay() is required to reconstruct cpu frequency over an
301 * observation window. Using workqueue to call udelay() with
302 * interrupts enabled.
304 read_counters_work.c.cpu = cpu;
305 INIT_WORK_ONSTACK(&read_counters_work.work, tegra_read_counters);
306 queue_work_on(cpu, read_counters_wq, &read_counters_work.work);
307 flush_work(&read_counters_work.work);
308 c = read_counters_work.c;
310 if (c.coreclk_cnt < c.last_coreclk_cnt)
311 delta_ccnt = c.coreclk_cnt + (MAX_CNT - c.last_coreclk_cnt);
313 delta_ccnt = c.coreclk_cnt - c.last_coreclk_cnt;
317 /* ref clock is 32 bits */
318 if (c.refclk_cnt < c.last_refclk_cnt)
319 delta_refcnt = c.refclk_cnt + (MAX_CNT - c.last_refclk_cnt);
321 delta_refcnt = c.refclk_cnt - c.last_refclk_cnt;
323 pr_debug("cpufreq: %d is idle, delta_refcnt: 0\n", cpu);
326 rate_mhz = ((unsigned long)(delta_ccnt * REF_CLK_MHZ)) / delta_refcnt;
328 return (rate_mhz * KHZ); /* in KHz */
331 static void tegra194_get_cpu_ndiv_sysreg(void *ndiv)
335 asm volatile("mrs %0, s3_0_c15_c0_4" : "=r" (ndiv_val) : );
337 *(u64 *)ndiv = ndiv_val;
340 static int tegra194_get_cpu_ndiv(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv)
342 return smp_call_function_single(cpu, tegra194_get_cpu_ndiv_sysreg, &ndiv, true);
345 static void tegra194_set_cpu_ndiv_sysreg(void *data)
347 u64 ndiv_val = *(u64 *)data;
349 asm volatile("msr s3_0_c15_c0_4, %0" : : "r" (ndiv_val));
352 static void tegra194_set_cpu_ndiv(struct cpufreq_policy *policy, u64 ndiv)
354 on_each_cpu_mask(policy->cpus, tegra194_set_cpu_ndiv_sysreg, &ndiv, true);
357 static unsigned int tegra194_get_speed(u32 cpu)
359 struct tegra194_cpufreq_data *data = cpufreq_get_driver_data();
360 struct cpufreq_frequency_table *pos;
361 u32 cpuid, clusterid;
366 data->soc->ops->get_cpu_cluster_id(cpu, &cpuid, &clusterid);
368 /* reconstruct actual cpu freq using counters */
369 rate = tegra194_calculate_speed(cpu);
371 /* get last written ndiv value */
372 ret = data->soc->ops->get_cpu_ndiv(cpu, cpuid, clusterid, &ndiv);
373 if (WARN_ON_ONCE(ret))
377 * If the reconstructed frequency has acceptable delta from
378 * the last written value, then return freq corresponding
379 * to the last written ndiv value from freq_table. This is
380 * done to return consistent value.
382 cpufreq_for_each_valid_entry(pos, data->bpmp_luts[clusterid]) {
383 if (pos->driver_data != ndiv)
386 if (abs(pos->frequency - rate) > 115200) {
387 pr_warn("cpufreq: cpu%d,cur:%u,set:%u,set ndiv:%llu\n",
388 cpu, rate, pos->frequency, ndiv);
390 rate = pos->frequency;
397 static int tegra_cpufreq_init_cpufreq_table(struct cpufreq_policy *policy,
398 struct cpufreq_frequency_table *bpmp_lut,
399 struct cpufreq_frequency_table **opp_table)
401 struct tegra194_cpufreq_data *data = cpufreq_get_driver_data();
402 struct cpufreq_frequency_table *freq_table = NULL;
403 struct cpufreq_frequency_table *pos;
404 struct device *cpu_dev;
405 struct dev_pm_opp *opp;
410 cpu_dev = get_cpu_device(policy->cpu);
412 pr_err("%s: failed to get cpu%d device\n", __func__, policy->cpu);
416 /* Initialize OPP table mentioned in operating-points-v2 property in DT */
417 ret = dev_pm_opp_of_add_table_indexed(cpu_dev, 0);
419 max_opps = dev_pm_opp_get_opp_count(cpu_dev);
421 dev_err(cpu_dev, "Failed to add OPPs\n");
425 /* Disable all opps and cross-validate against LUT later */
426 for (rate = 0; ; rate++) {
427 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &rate);
432 dev_pm_opp_disable(cpu_dev, rate);
435 dev_err(cpu_dev, "Invalid or empty opp table in device tree\n");
436 data->icc_dram_bw_scaling = false;
440 freq_table = kcalloc((max_opps + 1), sizeof(*freq_table), GFP_KERNEL);
445 * Cross check the frequencies from BPMP-FW LUT against the OPP's present in DT.
446 * Enable only those DT OPP's which are present in LUT also.
448 cpufreq_for_each_valid_entry(pos, bpmp_lut) {
449 opp = dev_pm_opp_find_freq_exact(cpu_dev, pos->frequency * KHZ, false);
453 ret = dev_pm_opp_enable(cpu_dev, pos->frequency * KHZ);
457 freq_table[j].driver_data = pos->driver_data;
458 freq_table[j].frequency = pos->frequency;
462 freq_table[j].driver_data = pos->driver_data;
463 freq_table[j].frequency = CPUFREQ_TABLE_END;
465 *opp_table = &freq_table[0];
467 dev_pm_opp_set_sharing_cpus(cpu_dev, policy->cpus);
472 static int tegra194_cpufreq_init(struct cpufreq_policy *policy)
474 struct tegra194_cpufreq_data *data = cpufreq_get_driver_data();
475 int maxcpus_per_cluster = data->soc->maxcpus_per_cluster;
476 struct cpufreq_frequency_table *freq_table;
477 struct cpufreq_frequency_table *bpmp_lut;
482 data->soc->ops->get_cpu_cluster_id(policy->cpu, NULL, &clusterid);
483 if (clusterid >= data->soc->num_clusters || !data->bpmp_luts[clusterid])
486 start_cpu = rounddown(policy->cpu, maxcpus_per_cluster);
487 /* set same policy for all cpus in a cluster */
488 for (cpu = start_cpu; cpu < (start_cpu + maxcpus_per_cluster); cpu++) {
489 if (cpu_possible(cpu))
490 cpumask_set_cpu(cpu, policy->cpus);
492 policy->cpuinfo.transition_latency = TEGRA_CPUFREQ_TRANSITION_LATENCY;
494 bpmp_lut = data->bpmp_luts[clusterid];
496 if (data->icc_dram_bw_scaling) {
497 ret = tegra_cpufreq_init_cpufreq_table(policy, bpmp_lut, &freq_table);
499 policy->freq_table = freq_table;
504 data->icc_dram_bw_scaling = false;
505 policy->freq_table = bpmp_lut;
506 pr_info("OPP tables missing from DT, EMC frequency scaling disabled\n");
511 static int tegra194_cpufreq_set_target(struct cpufreq_policy *policy,
514 struct cpufreq_frequency_table *tbl = policy->freq_table + index;
515 struct tegra194_cpufreq_data *data = cpufreq_get_driver_data();
518 * Each core writes frequency in per core register. Then both cores
519 * in a cluster run at same frequency which is the maximum frequency
520 * request out of the values requested by both cores in that cluster.
522 data->soc->ops->set_cpu_ndiv(policy, (u64)tbl->driver_data);
524 if (data->icc_dram_bw_scaling)
525 tegra_cpufreq_set_bw(policy, tbl->frequency);
530 static struct cpufreq_driver tegra194_cpufreq_driver = {
532 .flags = CPUFREQ_CONST_LOOPS | CPUFREQ_NEED_INITIAL_FREQ_CHECK |
533 CPUFREQ_IS_COOLING_DEV,
534 .verify = cpufreq_generic_frequency_table_verify,
535 .target_index = tegra194_cpufreq_set_target,
536 .get = tegra194_get_speed,
537 .init = tegra194_cpufreq_init,
538 .attr = cpufreq_generic_attr,
541 static struct tegra_cpufreq_ops tegra194_cpufreq_ops = {
542 .read_counters = tegra194_read_counters,
543 .get_cpu_cluster_id = tegra194_get_cpu_cluster_id,
544 .get_cpu_ndiv = tegra194_get_cpu_ndiv,
545 .set_cpu_ndiv = tegra194_set_cpu_ndiv,
548 static const struct tegra_cpufreq_soc tegra194_cpufreq_soc = {
549 .ops = &tegra194_cpufreq_ops,
550 .maxcpus_per_cluster = 2,
554 static void tegra194_cpufreq_free_resources(void)
556 destroy_workqueue(read_counters_wq);
559 static struct cpufreq_frequency_table *
560 tegra_cpufreq_bpmp_read_lut(struct platform_device *pdev, struct tegra_bpmp *bpmp,
561 unsigned int cluster_id)
563 struct cpufreq_frequency_table *freq_table;
564 struct mrq_cpu_ndiv_limits_response resp;
565 unsigned int num_freqs, ndiv, delta_ndiv;
566 struct mrq_cpu_ndiv_limits_request req;
567 struct tegra_bpmp_message msg;
568 u16 freq_table_step_size;
571 memset(&req, 0, sizeof(req));
572 req.cluster_id = cluster_id;
574 memset(&msg, 0, sizeof(msg));
575 msg.mrq = MRQ_CPU_NDIV_LIMITS;
577 msg.tx.size = sizeof(req);
579 msg.rx.size = sizeof(resp);
581 err = tegra_bpmp_transfer(bpmp, &msg);
584 if (msg.rx.ret == -BPMP_EINVAL) {
585 /* Cluster not available */
589 return ERR_PTR(-EINVAL);
592 * Make sure frequency table step is a multiple of mdiv to match
593 * vhint table granularity.
595 freq_table_step_size = resp.mdiv *
596 DIV_ROUND_UP(CPUFREQ_TBL_STEP_HZ, resp.ref_clk_hz);
598 dev_dbg(&pdev->dev, "cluster %d: frequency table step size: %d\n",
599 cluster_id, freq_table_step_size);
601 delta_ndiv = resp.ndiv_max - resp.ndiv_min;
603 if (unlikely(delta_ndiv == 0)) {
606 /* We store both ndiv_min and ndiv_max hence the +1 */
607 num_freqs = delta_ndiv / freq_table_step_size + 1;
610 num_freqs += (delta_ndiv % freq_table_step_size) ? 1 : 0;
612 freq_table = devm_kcalloc(&pdev->dev, num_freqs + 1,
613 sizeof(*freq_table), GFP_KERNEL);
615 return ERR_PTR(-ENOMEM);
617 for (index = 0, ndiv = resp.ndiv_min;
618 ndiv < resp.ndiv_max;
619 index++, ndiv += freq_table_step_size) {
620 freq_table[index].driver_data = ndiv;
621 freq_table[index].frequency = map_ndiv_to_freq(&resp, ndiv);
624 freq_table[index].driver_data = resp.ndiv_max;
625 freq_table[index++].frequency = map_ndiv_to_freq(&resp, resp.ndiv_max);
626 freq_table[index].frequency = CPUFREQ_TABLE_END;
631 static int tegra194_cpufreq_probe(struct platform_device *pdev)
633 const struct tegra_cpufreq_soc *soc;
634 struct tegra194_cpufreq_data *data;
635 struct tegra_bpmp *bpmp;
636 struct device *cpu_dev;
639 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
643 soc = of_device_get_match_data(&pdev->dev);
645 if (soc->ops && soc->maxcpus_per_cluster && soc->num_clusters) {
648 dev_err(&pdev->dev, "soc data missing\n");
652 data->bpmp_luts = devm_kcalloc(&pdev->dev, data->soc->num_clusters,
653 sizeof(*data->bpmp_luts), GFP_KERNEL);
654 if (!data->bpmp_luts)
657 if (soc->actmon_cntr_base) {
658 /* mmio registers are used for frequency request and re-construction */
659 data->regs = devm_platform_ioremap_resource(pdev, 0);
660 if (IS_ERR(data->regs))
661 return PTR_ERR(data->regs);
664 platform_set_drvdata(pdev, data);
666 bpmp = tegra_bpmp_get(&pdev->dev);
668 return PTR_ERR(bpmp);
670 read_counters_wq = alloc_workqueue("read_counters_wq", __WQ_LEGACY, 1);
671 if (!read_counters_wq) {
672 dev_err(&pdev->dev, "fail to create_workqueue\n");
677 for (i = 0; i < data->soc->num_clusters; i++) {
678 data->bpmp_luts[i] = tegra_cpufreq_bpmp_read_lut(pdev, bpmp, i);
679 if (IS_ERR(data->bpmp_luts[i])) {
680 err = PTR_ERR(data->bpmp_luts[i]);
685 tegra194_cpufreq_driver.driver_data = data;
687 /* Check for optional OPPv2 and interconnect paths on CPU0 to enable ICC scaling */
688 cpu_dev = get_cpu_device(0);
694 if (dev_pm_opp_of_get_opp_desc_node(cpu_dev)) {
695 err = dev_pm_opp_of_find_icc_paths(cpu_dev, NULL);
697 data->icc_dram_bw_scaling = true;
700 err = cpufreq_register_driver(&tegra194_cpufreq_driver);
705 tegra194_cpufreq_free_resources();
707 tegra_bpmp_put(bpmp);
711 static int tegra194_cpufreq_remove(struct platform_device *pdev)
713 cpufreq_unregister_driver(&tegra194_cpufreq_driver);
714 tegra194_cpufreq_free_resources();
719 static const struct of_device_id tegra194_cpufreq_of_match[] = {
720 { .compatible = "nvidia,tegra194-ccplex", .data = &tegra194_cpufreq_soc },
721 { .compatible = "nvidia,tegra234-ccplex-cluster", .data = &tegra234_cpufreq_soc },
722 { .compatible = "nvidia,tegra239-ccplex-cluster", .data = &tegra239_cpufreq_soc },
725 MODULE_DEVICE_TABLE(of, tegra194_cpufreq_of_match);
727 static struct platform_driver tegra194_ccplex_driver = {
729 .name = "tegra194-cpufreq",
730 .of_match_table = tegra194_cpufreq_of_match,
732 .probe = tegra194_cpufreq_probe,
733 .remove = tegra194_cpufreq_remove,
735 module_platform_driver(tegra194_ccplex_driver);
737 MODULE_AUTHOR("Mikko Perttunen <mperttunen@nvidia.com>");
738 MODULE_AUTHOR("Sumit Gupta <sumitg@nvidia.com>");
739 MODULE_DESCRIPTION("NVIDIA Tegra194 cpufreq driver");
740 MODULE_LICENSE("GPL v2");