]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
soc: tegra: Port DVFS table version from K3.10
authorAlex Frid <afrid@nvidia.com>
Wed, 26 Apr 2017 03:06:54 +0000 (20:06 -0700)
committerBharat Nihalani <bnihalani@nvidia.com>
Tue, 31 Oct 2017 13:30:52 +0000 (06:30 -0700)
Bug 200269751

Change-Id: Ie316c6598cb93dd1fd7e85f0e8616e4650311f16
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/1470055
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
(cherry picked from commit a9a5546d4e3780ef4452e5a4b084e9d3962c86c6)

drivers/soc/tegra/tegra-dvfs.c
include/soc/tegra/tegra-dvfs.h

index c9533215fed223141aacb49f31109ef8227a5aca..7b21d2116efa881448da96de387a1b306ec0a15c 100644 (file)
@@ -2019,6 +2019,11 @@ static int dvfs_table_show(struct seq_file *s, void *data)
 
        mutex_lock(&dvfs_lock);
 
+       list_for_each_entry(rail, &dvfs_rail_list, node) {
+               seq_printf(s, "%-8s table version: %s\n",
+                          rail->reg_id, rail->nvver ? : "N/A");
+       }
+
        list_for_each_entry(rail, &dvfs_rail_list, node) {
                list_for_each_entry(d, &rail->dvfs, reg_node) {
                        bool mv_done = false;
index 5cda646922488b08033ce654326ed755bfeaf35f..d595ea5d8f9d3dc2984157deab686b382a1891e7 100644 (file)
@@ -129,6 +129,8 @@ struct dvfs_rail {
        struct dvfs_therm_limits *therm_caps;
        int therm_caps_size;
        int therm_cap_idx;
+
+       char *nvver;
 };
 
 enum dfll_range {