Skip to content

Commit

Permalink
Merge pull request zephyrproject-rtos#31 from dcpleung/sof/bootloader…
Browse files Browse the repository at this point in the history
…_fixes

up_squared_adsp: some misc bootloader fixes
  • Loading branch information
jhedberg authored Dec 9, 2019
2 parents 7a8f93c + 9e4d24c commit 897ea9c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions boards/xtensa/up_squared_adsp/bootloader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ target_compile_options(bootloader PUBLIC -fno-inline-functions -mlongcalls -mtex
target_link_libraries(bootloader PUBLIC -Wl,--no-check-sections -ucall_user_start -Wl,-static -nostdlib)
target_link_libraries(bootloader PRIVATE -lhal -L${zephyr_sdk}/xtensa/intel_apl_adsp/xtensa-zephyr-elf/lib)
target_link_libraries(bootloader PRIVATE -T${BOARD_DIR}/bootloader/boot_ldr.x)

if(CONFIG_XTENSA_HAL)
target_link_libraries(bootloader PRIVATE XTENSA_HAL)
endif()
3 changes: 3 additions & 0 deletions boards/xtensa/up_squared_adsp/bootloader/boot_ldr.x
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ SECTIONS
__stack = 0xBE000000 + (1 * 0x1000);
__wnd0 = ((((((0xBE000000 + 0x8000) + 0x2000) + 0x800) + 0x800) + 0x1000) + 0x2000);
__wnd0_size = (0x1000 + 0x1000);
.comment 0 : { *(.comment) }
.debug 0 : { *(.debug) }
.line 0 : { *(.line) }
.debug_srcinfo 0 : { *(.debug_srcinfo) }
Expand All @@ -170,6 +171,8 @@ SECTIONS
.debug_funcnames 0 : { *(.debug_funcnames) }
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
.debug_ranges 0 : { *(.debug_ranges) }
.xtensa.info 0 : { *(.xtensa.info) }
.xt.insn 0 :
{
KEEP (*(.xt.insn))
Expand Down
2 changes: 1 addition & 1 deletion boards/xtensa/up_squared_adsp/bootloader/boot_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern void _ResetVector();
static inline void idelay(int n)
{
while (n--) {
asm volatile("nop");
__asm__ volatile("nop");
}
}

Expand Down

0 comments on commit 897ea9c

Please sign in to comment.