summaryrefslogtreecommitdiff
path: root/gxp-tmp.h
diff options
context:
space:
mode:
Diffstat (limited to 'gxp-tmp.h')
-rw-r--r--gxp-tmp.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/gxp-tmp.h b/gxp-tmp.h
index 1e92420..088dcdf 100644
--- a/gxp-tmp.h
+++ b/gxp-tmp.h
@@ -9,8 +9,17 @@
/* TODO (b/176979630): Delete gxp.tmp.h. Move definitions to gxp-config.h */
-#define AURORA_SCRATCHPAD_OFF 0x00F00000 /* Last 1M of ELF load region */
-#define AURORA_SCRATCHPAD_LEN 0x00100000 /* 1M */
+#if !IS_ENABLED(CONFIG_GXP_TEST)
+
+#define AURORA_SCRATCHPAD_OFF 0x00F00000 /* Last 1M of ELF load region */
+#define AURORA_SCRATCHPAD_LEN 0x00100000 /* 1M */
+
+#else /* CONFIG_GXP_TEST */
+/* Firmware memory is shrinked in unit tests. */
+#define AURORA_SCRATCHPAD_OFF 0x000F0000
+#define AURORA_SCRATCHPAD_LEN 0x00010000
+
+#endif /* CONFIG_GXP_TEST */
#define Q7_ALIVE_MAGIC 0x55555555