ARM: tegra11: clock: Add gpu sysfs floor
Alex Frid [Thu, 18 Jul 2013 06:45:45 +0000 (23:45 -0700)]
Change-Id: Id1df835e0b60da703b67fc289b2ed21087f2c0c3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/250928
(cherry picked from commit dff57ab9fba624e009ddc4763dd371c8835561ab)
Reviewed-on: http://git-master/r/254752
(cherry picked from commit 601df453fb0e338df66d799cc2dd495765c13254)
Reviewed-on: http://git-master/r/264677
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

arch/arm/mach-tegra/tegra11_clocks.c
arch/arm/mach-tegra/tegra11_dvfs.c

index 437d2ae..050b63e 100644 (file)
@@ -6991,6 +6991,7 @@ struct clk tegra_list_clks[] = {
        SHARED_CLK("edp.c2bus",         "edp.c2bus",            NULL,   &tegra_clk_c2bus, NULL,  0, SHARED_CEILING),
        SHARED_CLK("battery.c2bus",     "battery_edp",          "gpu",  &tegra_clk_c2bus, NULL,  0, SHARED_CEILING),
        SHARED_CLK("cap.profile.c2bus", "profile.c2bus",        NULL,   &tegra_clk_c2bus, NULL,  0, SHARED_CEILING),
+       SHARED_CLK("floor.profile.c2bus", "profile.c2bus",      NULL,   &tegra_clk_c2bus, NULL,  0, 0),
 
        DUAL_CBUS_CLK("msenc.cbus",     "tegra_msenc",          "msenc",  &tegra_clk_c3bus, "msenc", 0, 0),
        DUAL_CBUS_CLK("tsec.cbus",      "tegra_tsec",           "tsec",   &tegra_clk_c3bus, "tsec", 0, 0),
@@ -7015,6 +7016,7 @@ struct clk tegra_list_clks[] = {
        SHARED_CLK("edp.cbus",  "edp.cbus",             NULL,   &tegra_clk_cbus, NULL,  0, SHARED_CEILING),
        SHARED_CLK("battery.cbus", "battery_edp",       "gpu",  &tegra_clk_cbus, NULL,  0, SHARED_CEILING),
        SHARED_CLK("cap.profile.cbus", "profile.cbus",  NULL,   &tegra_clk_cbus, NULL,  0, SHARED_CEILING),
+       SHARED_CLK("floor.profile.cbus", "profile.cbus", NULL,  &tegra_clk_cbus, NULL,  0, 0),
 #endif
        SHARED_CLK("nv.host1x", "tegra_host1x",         "host1x", &tegra_clk_host1x, NULL,  0, 0),
        SHARED_CLK("vi.host1x", "tegra_vi",             "host1x", &tegra_clk_host1x, NULL,  0, 0),
index 08736f7..a7955ac 100644 (file)
@@ -918,6 +918,17 @@ static struct core_bus_floor_table tegra11_bus_floor_table[] = {
          .refcnt_attr = {.attr = {.name = "emc_floor_state", .mode = 0644} },
          .level_attr  = {.attr = {.name = "emc_floor_level", .mode = 0644} },
        },
+#ifdef CONFIG_TEGRA_DUAL_CBUS
+       { .floor_name = "floor.profile.c2bus",
+         .refcnt_attr = {.attr = {.name = "cbus_floor_state", .mode = 0644} },
+         .level_attr  = {.attr = {.name = "cbus_floor_level", .mode = 0644} },
+       },
+#else
+       { .floor_name = "floor.profile.cbus",
+         .refcnt_attr = {.attr = {.name = "cbus_floor_state", .mode = 0644} },
+         .level_attr  = {.attr = {.name = "cbus_floor_level", .mode = 0644} },
+       },
+#endif
 };
 
 static int __init tegra11_dvfs_init_core_limits(void)