platform/target: msm8909: Define IRQ and IOMAP regs for SMD and init/uninit SMD
Define IRQ and IOMAP regs for SMD.Also, add target specific functions for SMD which
intializes the SMD interface, using which RPM is notified.
Change-Id: Ia1cdb69beee6908eb76641cf60d04bc7d0c641fb
diff --git a/platform/msm8909/include/platform/iomap.h b/platform/msm8909/include/platform/iomap.h
index 4f59eff..e7b0d89 100644
--- a/platform/msm8909/include/platform/iomap.h
+++ b/platform/msm8909/include/platform/iomap.h
@@ -52,6 +52,7 @@
#define MSM_GIC_CPU_BASE (APPS_SS_BASE + 0x2000)
#define APPS_APCS_QTMR_AC_BASE (APPS_SS_BASE + 0x00020000)
#define APPS_APCS_F0_QTMR_V1_BASE (APPS_SS_BASE + 0x00021000)
+#define APCS_ALIAS0_IPC_INTERRUPT (APPS_SS_BASE + 0x00011008)
#define QTMR_BASE APPS_APCS_F0_QTMR_V1_BASE
#define PERIPH_SS_BASE 0x07800000
diff --git a/platform/msm8909/include/platform/irqs.h b/platform/msm8909/include/platform/irqs.h
index 1875b8a..3ef97b1 100644
--- a/platform/msm8909/include/platform/irqs.h
+++ b/platform/msm8909/include/platform/irqs.h
@@ -50,6 +50,8 @@
#define SDCC1_PWRCTL_IRQ (GIC_SPI_START + 138)
#define SDCC2_PWRCTL_IRQ (GIC_SPI_START + 221)
+#define SMD_IRQ (GIC_SPI_START + 168)
+
/* Retrofit universal macro names */
#define INT_USB_HS USB1_HS_IRQ
diff --git a/target/msm8909/init.c b/target/msm8909/init.c
index e9d60a0..a3e9c0b 100644
--- a/target/msm8909/init.c
+++ b/target/msm8909/init.c
@@ -47,6 +47,7 @@
#include <partition_parser.h>
#include <stdlib.h>
#include <gpio.h>
+#include <rpm-smd.h>
#if LONG_PRESS_POWER_ON
#include <shutdown_detect.h>
@@ -222,6 +223,8 @@
if (target_use_signed_kernel())
target_crypto_init_params();
+
+ rpm_smd_init();
}
void target_serialno(unsigned char *buf)
@@ -458,6 +461,8 @@
if (target_is_ssd_enabled())
clock_ce_disable(CE1_INSTANCE);
+
+ rpm_smd_uninit();
}
/* Do any target specific intialization needed before entering fastboot mode */