Commit bad90159 authored by AlaskaLinuxUser's avatar AlaskaLinuxUser

Added volt cntrl for little cores.

parent 8c2914d9
......@@ -6,5 +6,6 @@ It is my goal to modify this kernel. Here are the modifications thus far:
+ Added FIOPS IO scheduler.
+ Added GPU Overclock from 450 to 500 MHz.
+ Added autoSMP hotplug.
+ Added CPU voltage control.
+ Added CPU voltage control for big cores.
+ Added Sweep2Wake and DoubleTap2Wake - May not be fully functional, my prox sensor is smashed.
+ Added Little CPU core voltage control.
......@@ -252,6 +252,17 @@ ssize_t cpu_clock_get_vdd(char *buf)
uv / 1000);
}
for (i = 1; i < a53_lc_clk.c.num_fmax; i++) {
uv = cpr_regulator_get_corner_voltage(
a53_lc_clk.c.vdd_class->regulator[0],
a53_lc_clk.c.vdd_class->vdd_uv[i]);
if (uv < 0)
return 0;
count += sprintf(buf + count, "A53_%lumhz: %d mV\n",
a53_lc_clk.c.fmax[i] / 1000000,
uv / 1000);
}
return count;
}
......@@ -279,6 +290,21 @@ ssize_t cpu_clock_set_vdd(const char *buf, size_t count)
buf += strlen(line) + 1;
}
for (i = 1; i < a53_lc_clk.c.num_fmax; i++) {
ret = sscanf(buf, "%d", &mv);
if (ret != 1)
return -EINVAL;
ret = cpr_regulator_set_corner_voltage(
a53_lc_clk.c.vdd_class->regulator[0],
a53_lc_clk.c.vdd_class->vdd_uv[i],
mv * 1000);
if (ret < 0)
return ret;
ret = sscanf(buf, "%s", line);
buf += strlen(line) + 1;
}
return count;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment