5858#include <string.h>
5959#include <version.h>
6060
61- #if defined(CONFIG_APOLLOLAKE )
62- #define SSP_CLOCK_FREQUENCY 19200000
63- #elif defined(CONFIG_CANNONLAKE ) || defined(CONFIG_SUECREEK )
64- #define SSP_CLOCK_FREQUENCY 24000000
65- #elif defined(CONFIG_ICELAKE )
66- #define SSP_CLOCK_FREQUENCY 38400000
67- #endif
68-
6961static const struct sof_ipc_fw_ready ready = {
7062 .hdr = {
7163 .cmd = SOF_IPC_FW_READY ,
@@ -82,7 +74,7 @@ static const struct sof_ipc_fw_ready ready = {
8274 },
8375};
8476
85- #if ! defined(CONFIG_SUECREEK )
77+ #if defined(CONFIG_MEM_WND )
8678#define SRAM_WINDOW_HOST_OFFSET (x ) (0x80000 + x * 0x20000)
8779
8880#define NUM_WINDOWS 7
@@ -202,39 +194,30 @@ struct work_queue_timesource platform_generic_queue[] = {
202194struct timer * platform_timer =
203195 & platform_generic_queue [PLATFORM_MASTER_CORE_ID ].timer ;
204196
205- #if defined(CONFIG_SUECREEK )
206- int platform_boot_complete (uint32_t boot_message )
207- {
208- mailbox_dspbox_write (0 , & ready , sizeof (ready ));
209- return 0 ;
210- }
211-
212- #else
213-
214197int platform_boot_complete (uint32_t boot_message )
215198{
216199 mailbox_dspbox_write (0 , & ready , sizeof (ready ));
200+ #if defined(CONFIG_MEM_WND )
217201 mailbox_dspbox_write (sizeof (ready ), & sram_window ,
218202 sram_window .ext_hdr .hdr .size );
203+ #endif // defined(CONFIG_MEM_WND)
219204
220- #if defined(CONFIG_APOLLOLAKE )
205+ #if defined(CONFIG_APOLLOLAKE )
221206 /* boot now complete so we can relax the CPU */
222207 clock_set_freq (CLK_CPU (cpu_get_id ()), CLK_DEFAULT_CPU_HZ );
223208
224209 /* tell host we are ready */
225210 ipc_write (IPC_DIPCIE , SRAM_WINDOW_HOST_OFFSET (0 ) >> 12 );
226211 ipc_write (IPC_DIPCI , 0x80000000 | SOF_IPC_FW_READY );
227- #elif defined(CONFIG_CANNONLAKE ) || defined(CONFIG_ICELAKE )
212+ #elif defined(CONFIG_CANNONLAKE ) || defined(CONFIG_ICELAKE )
228213 /* tell host we are ready */
229214 ipc_write (IPC_DIPCIDD , SRAM_WINDOW_HOST_OFFSET (0 ) >> 12 );
230215 ipc_write (IPC_DIPCIDR , 0x80000000 | SOF_IPC_FW_READY );
231- #endif
232-
216+ #endif
233217 return 0 ;
234218}
235- #endif
236219
237- #if ! defined(CONFIG_SUECREEK )
220+ #if defined(CONFIG_MEM_WND )
238221static void platform_memory_windows_init (void )
239222{
240223 /* window0, for fw status & outbox/uplink mbox */
@@ -304,7 +287,7 @@ int platform_init(struct sof *sof)
304287
305288 trace_point (TRACE_BOOT_PLATFORM_MBOX );
306289
307- #if ! defined(CONFIG_SUECREEK )
290+ #if defined(CONFIG_MEM_WND )
308291 platform_memory_windows_init ();
309292#endif
310293 trace_point (TRACE_BOOT_PLATFORM_SHIM );
0 commit comments