aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/db8500-prcmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/db8500-prcmu.c')
-rw-r--r--drivers/mfd/db8500-prcmu.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c
index a25ab9c6b5af..af8e0efedbe4 100644
--- a/drivers/mfd/db8500-prcmu.c
+++ b/drivers/mfd/db8500-prcmu.c
@@ -2102,14 +2102,11 @@ static struct irq_chip prcmu_irq_chip = {
2102void __init db8500_prcmu_early_init(void) 2102void __init db8500_prcmu_early_init(void)
2103{ 2103{
2104 unsigned int i; 2104 unsigned int i;
2105 2105 if (cpu_is_u8500v2()) {
2106 if (cpu_is_u8500v1()) {
2107 tcdm_base = __io_address(U8500_PRCMU_TCDM_BASE_V1);
2108 } else if (cpu_is_u8500v2()) {
2109 void *tcpm_base = ioremap_nocache(U8500_PRCMU_TCPM_BASE, SZ_4K); 2106 void *tcpm_base = ioremap_nocache(U8500_PRCMU_TCPM_BASE, SZ_4K);
2110 2107
2111 if (tcpm_base != NULL) { 2108 if (tcpm_base != NULL) {
2112 int version; 2109 u32 version;
2113 version = readl(tcpm_base + PRCMU_FW_VERSION_OFFSET); 2110 version = readl(tcpm_base + PRCMU_FW_VERSION_OFFSET);
2114 prcmu_version.project_number = version & 0xFF; 2111 prcmu_version.project_number = version & 0xFF;
2115 prcmu_version.api_version = (version >> 8) & 0xFF; 2112 prcmu_version.api_version = (version >> 8) & 0xFF;