mailbox: remove duplicated mailbox macro

Duplicates MAILBOX_SIZE

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2019-09-12 16:47:32 +01:00 committed by Tomasz Lauda
parent 049411519e
commit 39874c5f6c
3 changed files with 2 additions and 5 deletions

View File

@ -21,9 +21,6 @@
#define MAILBOX_SW_REG_BASE MAILBOX_DEBUG_BASE
#endif /* MAILBOX_SW_REG_BASE */
/* 4k should be enough for everyone ..... */
#define IPC_MAX_MAILBOX_BYTES 0x1000
#define mailbox_get_exception_base() \
MAILBOX_EXCEPTION_BASE

View File

@ -172,7 +172,7 @@ int platform_init(struct sof *sof)
/* clear mailbox for early trace and debug */
trace_point(TRACE_BOOT_PLATFORM_MBOX);
bzero((void *)MAILBOX_BASE, IPC_MAX_MAILBOX_BYTES);
bzero((void *)MAILBOX_BASE, MAILBOX_SIZE);
/* configure the shim */
trace_point(TRACE_BOOT_PLATFORM_SHIM);

View File

@ -170,7 +170,7 @@ int platform_init(struct sof *sof)
/* clear mailbox for early trace and debug */
trace_point(TRACE_BOOT_PLATFORM_MBOX);
bzero((void *)MAILBOX_BASE, IPC_MAX_MAILBOX_BYTES);
bzero((void *)MAILBOX_BASE, MAILBOX_SIZE);
trace_point(TRACE_BOOT_PLATFORM_SHIM);
platform_init_shim();