platform: msm8226: Add support for boot timestamps
Boot timestamps are added at various points and made
available to kernel through shared memory.
Change-Id: I80dccacc6c28b01fb677faa83cded58037d9ced7
diff --git a/platform/msm8226/platform.c b/platform/msm8226/platform.c
index 3a44db4..1b97cbc 100644
--- a/platform/msm8226/platform.c
+++ b/platform/msm8226/platform.c
@@ -36,6 +36,7 @@
#include <arch/arm/mmu.h>
#include <smem.h>
#include <board.h>
+#include <boot_stats.h>
#define MB (1024*1024)
@@ -75,6 +76,16 @@
qtimer_uninit();
}
+uint32_t platform_get_sclk_count(void)
+{
+ return readl(MPM2_MPM_SLEEP_TIMETICK_COUNT_VAL);
+}
+
+addr_t get_bs_info_addr()
+{
+ return ((addr_t)BS_INFO_ADDR);
+}
+
/* Setup memory for this platform */
void platform_init_mmu_mappings(void)
{