return 0;
}
+/*
+ * The activity counter is incremented every 256 memory transactions. However,
+ * the number of clock cycles required for each transaction varies across
+ * different SoC generations. For instance, a single transaction takes 2 EMC
+ * clocks on Tegra30, 1 EMC clock on Tegra114, and 4 EMC clocks on Tegra124.
+ */
static const struct tegra_devfreq_soc_data tegra124_soc = {
.configs = tegra124_device_configs,
-
- /*
- * Activity counter is incremented every 256 memory transactions,
- * and each transaction takes 4 EMC clocks.
- */
.count_weight = 4 * 256,
};
+static const struct tegra_devfreq_soc_data tegra114_soc = {
+ .configs = tegra124_device_configs,
+ .count_weight = 256,
+};
+
static const struct tegra_devfreq_soc_data tegra30_soc = {
.configs = tegra30_device_configs,
.count_weight = 2 * 256,
static const struct of_device_id tegra_devfreq_of_match[] = {
{ .compatible = "nvidia,tegra30-actmon", .data = &tegra30_soc, },
+ { .compatible = "nvidia,tegra114-actmon", .data = &tegra114_soc, },
{ .compatible = "nvidia,tegra124-actmon", .data = &tegra124_soc, },
{ },
};