@@ -540,7 +540,7 @@ static struct regulator_init_data tps65070_regulator_data[] = {
{
.constraints = {
.min_uV = 950000,
- .max_uV = 1320000,
+ .max_uV = 1350000,
.valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE |
REGULATOR_CHANGE_STATUS),
.boot_on = 1,
@@ -739,6 +739,7 @@ static struct edma_rsv_info *da850_edma_rsv[2] = {
static __init void da850_evm_init(void)
{
int ret;
+ unsigned int max_speed = DA850_DEFAULT_SPEED;
ret = pmic_tps65070_init();
if (ret)
@@ -836,6 +837,20 @@ static __init void da850_evm_init(void)
if (ret)
pr_warning("da850_evm_init: rtc setup failed: %d\n", ret);
+ switch (system_rev & 0xF) {
+ case 3:
+ max_speed = 456000;
+ break;
+ case 2:
+ max_speed = 408000;
+ break;
+ case 1:
+ max_speed = 372000;
+ break;
+ }
+
+ da850_set_max_speed(max_speed);
+
ret = da850_register_cpufreq("pll0_sysclk3");
if (ret)
pr_warning("da850_evm_init: cpufreq registration failed: %d\n",