platform: Add new api to get MSM_SHARED_BASE
Add a new api to get MSM_SHARED_BASE address from platform.
MSM_SHARED_BASE address is dependent on platform subtype and
hence is different for some platform variants.
Change-Id: I307d2110984e788aeeac2bcaa9f185ce2e2c92f4
diff --git a/platform/init.c b/platform/init.c
index 7efea46..1e39cfc 100644
--- a/platform/init.c
+++ b/platform/init.c
@@ -1,6 +1,8 @@
/*
* Copyright (c) 2008 Travis Geiselbrecht
*
+ * Copyright (c) 2014, The Linux Foundation. All rights reserved.
+ *
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
@@ -24,6 +26,7 @@
#include <debug.h>
#include <platform.h>
#include <boot_stats.h>
+#include <platform/iomap.h>
/*
* default implementations of these routines, if the platform code
@@ -111,3 +114,8 @@
{
return -1;
}
+
+__WEAK uint32_t platform_get_smem_base_addr()
+{
+ return (uint32_t)MSM_SHARED_BASE;
+}