Lines Matching refs:tegra
10 #define pr_fmt(fmt) "tegra voltage-coupler: " fmt
19 #include <soc/tegra/fuse.h>
34 static int tegra30_core_limit(struct tegra_regulator_coupler *tegra,
42 if (tegra->core_min_uV > 0)
43 return tegra->core_min_uV;
60 tegra->core_min_uV = core_max_uV;
62 pr_info("core minimum voltage limited to %duV\n", tegra->core_min_uV);
64 return tegra->core_min_uV;
96 static int tegra30_voltage_update(struct tegra_regulator_coupler *tegra,
142 core_min_uV = tegra30_core_limit(tegra, core_rdev);
257 struct tegra_regulator_coupler *tegra = to_tegra_coupler(coupler);
258 struct regulator_dev *core_rdev = tegra->core_rdev;
259 struct regulator_dev *cpu_rdev = tegra->cpu_rdev;
266 return tegra30_voltage_update(tegra, cpu_rdev, core_rdev);
272 struct tegra_regulator_coupler *tegra = to_tegra_coupler(coupler);
275 if (of_property_read_bool(np, "nvidia,tegra-core-regulator") &&
276 !tegra->core_rdev) {
277 tegra->core_rdev = rdev;
281 if (of_property_read_bool(np, "nvidia,tegra-cpu-regulator") &&
282 !tegra->cpu_rdev) {
283 tegra->cpu_rdev = rdev;
293 struct tegra_regulator_coupler *tegra = to_tegra_coupler(coupler);
295 if (tegra->core_rdev == rdev) {
296 tegra->core_rdev = NULL;
300 if (tegra->cpu_rdev == rdev) {
301 tegra->cpu_rdev = NULL;