summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2010-05-27 20:20:08 -0500
committerHari Kanigeri <h-kanigeri2@ti.com>2010-07-09 17:58:08 -0500
commit97fe858924f2acc477bd90d51b7b978024eb0ff2 (patch)
treef2aa50ff0ba2bbd3a3ea69cbc2a688d6221eef12 /arch/arm
parent6655367e0e440362d4ce23d14ba9730797d5eafd (diff)
SYSLINK: ipc - enable hwspinlock module.
This patch enables the gatehwspinlock module as the default configuration for gate protection between multiple cores. It includes all the fixes needed to use the gatehwspinlock module within gatemp. Signed-off-by: Suman Anna <s-anna@ti.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/plat-omap/include/syslink/gatehwspinlock.h2
-rw-r--r--arch/arm/plat-omap/include/syslink/gatempdefs.h16
2 files changed, 9 insertions, 9 deletions
diff --git a/arch/arm/plat-omap/include/syslink/gatehwspinlock.h b/arch/arm/plat-omap/include/syslink/gatehwspinlock.h
index de6ad1b609b3..afcfcbde7d45 100644
--- a/arch/arm/plat-omap/include/syslink/gatehwspinlock.h
+++ b/arch/arm/plat-omap/include/syslink/gatehwspinlock.h
@@ -147,7 +147,7 @@ int *gatehwspinlock_enter(void *handle);
void gatehwspinlock_leave(void *handle, int *key);
/* Function to return the shared memory requirement for a single instance */
-u32 gatehwspinlock_shared_mem_req(const struct igatempsupport_params *params);
+u32 gatehwspinlock_shared_mem_req(const struct gatehwspinlock_params *params);
/* Function to return the number of instances configured in the module. */
u32 gatehwspinlock_get_num_instances(void);
diff --git a/arch/arm/plat-omap/include/syslink/gatempdefs.h b/arch/arm/plat-omap/include/syslink/gatempdefs.h
index 81f790f2d5e4..d12d8f84414c 100644
--- a/arch/arm/plat-omap/include/syslink/gatempdefs.h
+++ b/arch/arm/plat-omap/include/syslink/gatempdefs.h
@@ -21,27 +21,27 @@
/* Utilities headers */
#include <gatepeterson.h>
+#include <gatehwspinlock.h>
/* Enable once ported - GateMPSupportNull may not be needed
#include <_GateMPSupportNull.h>
#include <GateMPSupportNull.h>
-#include <gatehwspinlock.h>
*/
-#if 0 /* Enable when SpinLock is available */
-#define gatemp_remote_system_proxy_params_init gate_hwspinlock_params_init
+#if 1 /* Enable when SpinLock is available */
+#define gatemp_remote_system_proxy_params_init gatehwspinlock_params_init
#define gatemp_remote_custom1_proxy_params_init gatepeterson_params_init
#define gatemp_remote_custom2_proxy_params_init gatepeterson_params_init
-#define gatemp_remote_system_proxy_create gate_hwspinlock_create
+#define gatemp_remote_system_proxy_create gatehwspinlock_create
#define gatemp_remote_custom1_proxy_create gatepeterson_create
#define gatemp_remote_custom2_proxy_create gatepeterson_create
-#define gatemp_remote_system_proxy_delete gate_hwspinlock_delete
+#define gatemp_remote_system_proxy_delete gatehwspinlock_delete
#define gatemp_remote_custom1_proxy_delete gatepeterson_delete
#define gatemp_remote_custom2_proxy_delete gatepeterson_delete
-#define gatemp_remote_system_proxy_params struct gate_hwspinlock_params
+#define gatemp_remote_system_proxy_params struct gatehwspinlock_params
#define gatemp_remote_custom1_proxy_params struct gatepeterson_params
#define gatemp_remote_custom2_proxy_params struct gatepeterson_params
#define gatemp_remote_system_proxy_shared_mem_req \
- gate_hwspinlock_shared_mem_req
+ gatehwspinlock_shared_mem_req
#define gatemp_remote_custom1_proxy_shared_mem_req \
gatepeterson_shared_mem_req
#define gatemp_remote_custom2_proxy_shared_mem_req \
@@ -58,7 +58,7 @@
#define gatemp_remote_system_proxy_handle void *
#define gatemp_remote_custom1_proxy_handle void *
#define gatemp_remote_custom2_proxy_handle void *
-#define gatemp_remote_system_proxy_open_by_addr gate_hwspinlock_open_by_addr
+#define gatemp_remote_system_proxy_open_by_addr gatehwspinlock_open_by_addr
#define gatemp_remote_custom1_proxy_open_by_addr \
gatepeterson_open_by_addr
#define gatemp_remote_custom2_proxy_open_by_addr \