Lines Matching refs:tegra

10 #define pr_fmt(fmt)	"tegra voltage-coupler: " fmt
33 static int tegra20_core_limit(struct tegra_regulator_coupler *tegra,
41 if (tegra->core_min_uV > 0)
42 return tegra->core_min_uV;
59 tegra->core_min_uV = core_max_uV;
61 pr_info("core minimum voltage limited to %duV\n", tegra->core_min_uV);
63 return tegra->core_min_uV;
87 static int tegra20_core_rtc_update(struct tegra_regulator_coupler *tegra,
113 core_min_uV = tegra20_core_limit(tegra, core_rdev);
201 static int tegra20_core_voltage_update(struct tegra_regulator_coupler *tegra,
212 return tegra20_core_rtc_update(tegra, core_rdev, rtc_rdev,
216 static int tegra20_cpu_voltage_update(struct tegra_regulator_coupler *tegra,
254 err = tegra20_core_rtc_update(tegra, core_rdev, rtc_rdev,
269 err = tegra20_core_rtc_update(tegra, core_rdev, rtc_rdev,
282 struct tegra_regulator_coupler *tegra = to_tegra_coupler(coupler);
283 struct regulator_dev *core_rdev = tegra->core_rdev;
284 struct regulator_dev *cpu_rdev = tegra->cpu_rdev;
285 struct regulator_dev *rtc_rdev = tegra->rtc_rdev;
294 return tegra20_cpu_voltage_update(tegra, cpu_rdev,
298 return tegra20_core_voltage_update(tegra, cpu_rdev,
309 struct tegra_regulator_coupler *tegra = to_tegra_coupler(coupler);
312 if (of_property_read_bool(np, "nvidia,tegra-core-regulator") &&
313 !tegra->core_rdev) {
314 tegra->core_rdev = rdev;
318 if (of_property_read_bool(np, "nvidia,tegra-rtc-regulator") &&
319 !tegra->rtc_rdev) {
320 tegra->rtc_rdev = rdev;
324 if (of_property_read_bool(np, "nvidia,tegra-cpu-regulator") &&
325 !tegra->cpu_rdev) {
326 tegra->cpu_rdev = rdev;
336 struct tegra_regulator_coupler *tegra = to_tegra_coupler(coupler);
338 if (tegra->core_rdev == rdev) {
339 tegra->core_rdev = NULL;
343 if (tegra->rtc_rdev == rdev) {
344 tegra->rtc_rdev = NULL;
348 if (tegra->cpu_rdev == rdev) {
349 tegra->cpu_rdev = NULL;