summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/staging/nmf-cm/configuration.h10
-rw-r--r--drivers/staging/nmf-cm/osal-kernel.c2
2 files changed, 7 insertions, 5 deletions
diff --git a/drivers/staging/nmf-cm/configuration.h b/drivers/staging/nmf-cm/configuration.h
index 8f1b88bc23f..35072831a13 100644
--- a/drivers/staging/nmf-cm/configuration.h
+++ b/drivers/staging/nmf-cm/configuration.h
@@ -19,11 +19,15 @@
#include <linux/autoconf.h>
#endif
-/** Nomadik embedded Static RAM base address*/
+/* Embedded Static RAM base address */
#define ESRAM_BASE (U8500_ESRAM_BASE + 0x10000) // V1/V2 config: 0-64k: secure;
-/** Nomadik embedded ram size for CM (in Kb) */
-#define ESRAM_SIZE 576
+/*
+ * Embedded ram size for CM (in Kb)
+ * 5 banks of 128k: skip the first half bank (secure) and the last
+ * one (used for MCDE/B2R2), but include DMA part (4k after the secure part)
+ */
+#define ESRAM_SIZE 448
enum {
ESRAM_12,
ESRAM_34,
diff --git a/drivers/staging/nmf-cm/osal-kernel.c b/drivers/staging/nmf-cm/osal-kernel.c
index 4ab3552bd75..f792312e940 100644
--- a/drivers/staging/nmf-cm/osal-kernel.c
+++ b/drivers/staging/nmf-cm/osal-kernel.c
@@ -89,8 +89,6 @@ int remapRegions(void)
pr_err("%s: could not remap ESRAM Base\n", __func__);
return -ENOMEM;
}
- memset(osalEnv.esram_base, 0x0, cfgESRAMSize*ONE_KB);
-
/* Allocate code and data sections for MPC (SVA, SIA) */
for (i=0; i<NB_MPC; i++) {