for (i = 0; i < seq_size; i++) {
pmucal_rae_shub_seq_idx = i;
- pr_info("%s: shub reset sequence %d pa: 0x%llx / va: 0x%llx\n",
- __func__, i,
- (unsigned long long int)seq[i].base_pa + seq[i].offset,
- (unsigned long long int)seq[i].base_va + seq[i].offset);
+
switch (seq[i].access_type) {
case PMUCAL_READ:
pmucal_rae_read(&seq[i]);
- pr_info("%s%s %s = 0x%08x\n", PMUCAL_PREFIX, "raw_read", seq[i].sfr_name,
- __raw_readl(seq[i].base_va + seq[i].offset));
break;
case PMUCAL_WRITE:
reg = __raw_readl(seq[i].base_va + seq[i].offset);
reg = (reg & ~seq[i].mask) | seq[i].value;
- pr_info("%s%s %s = 0x%08x\n", PMUCAL_PREFIX,
- "raw_write ", seq[i].sfr_name, reg);
pmucal_rae_write(&seq[i]);
- pr_info("%s%s %s = 0x%08x\n", PMUCAL_PREFIX, "raw_read(check)",
- seq[i].sfr_name, __raw_readl(seq[i].base_va + seq[i].offset));
break;
case PMUCAL_COND_READ:
if (pmucal_rae_check_condition(&seq[i]))
ret = pmucal_rae_wait(&seq[i]);
if (ret)
return ret;
- pr_info("%s%s\t%s = 0x%08x\n", PMUCAL_PREFIX, "raw_read(wait)",
- seq[i].sfr_name,
- __raw_readl(seq[i].base_va + seq[i].offset) & seq[i].mask);
break;
case PMUCAL_DELAY:
udelay(seq[i].value);
return ret;
}
+ pr_info("%s done\n", __func__);
return 0;
}
PMUCAL_PREFIX, __func__);
return ret;
}
+
+ pr_info("%s doing\n", __func__);
return 0;
}
int pmucal_shub_reset_release(void)
return ret;
}
+ pr_info("%s done\n", __func__);
return 0;
}