Skip to content

Commit 96d3cd0

Browse files
committed
cavs: fix invalid expressions
CONFIG_BOOTLOADER_MCUBOOT is never defined in cAVS builds, code, built only when that option is enabled, contains invalid expressions. Fix them. Signed-off-by: Guennadi Liakhovetski <[email protected]>
1 parent a6c7786 commit 96d3cd0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

soc/xtensa/intel_adsp/cavs_v15/include/soc/memory.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#define L2_SRAM_SIZE (DT_REG_SIZE(DT_NODELABEL(sram0)))
1919

2020
#ifdef CONFIG_BOOTLOADER_MCUBOOT
21-
#define SRAM_BASE (L2_SRAM_BASE + CONFIG_BOOTLOADER_SRAM_SIZE * 1K)
22-
#define SRAM_SIZE (L2_SRAM_SIZE - CONFIG_BOOTLOADER_SRAM_SIZE * 1K)
21+
#define SRAM_BASE (L2_SRAM_BASE + CONFIG_BOOTLOADER_SRAM_SIZE * 1024)
22+
#define SRAM_SIZE (L2_SRAM_SIZE - CONFIG_BOOTLOADER_SRAM_SIZE * 1024)
2323
#else
2424
#define SRAM_BASE (L2_SRAM_BASE)
2525
#define SRAM_SIZE (L2_SRAM_SIZE)

soc/xtensa/intel_adsp/cavs_v18/include/soc/memory.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
#define L2_SRAM_SIZE (DT_REG_SIZE(DT_NODELABEL(sram0)))
1616

1717
#ifdef CONFIG_BOOTLOADER_MCUBOOT
18-
#define SRAM_BASE (L2_SRAM_BASE + CONFIG_BOOTLOADER_SRAM_SIZE * 1K)
19-
#define SRAM_SIZE (L2_SRAM_SIZE - CONFIG_BOOTLOADER_SRAM_SIZE * 1K)
18+
#define SRAM_BASE (L2_SRAM_BASE + CONFIG_BOOTLOADER_SRAM_SIZE * 1024)
19+
#define SRAM_SIZE (L2_SRAM_SIZE - CONFIG_BOOTLOADER_SRAM_SIZE * 1024)
2020
#else
2121
#define SRAM_BASE (L2_SRAM_BASE)
2222
#define SRAM_SIZE (L2_SRAM_SIZE)

soc/xtensa/intel_adsp/cavs_v20/include/soc/memory.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
#define L2_SRAM_SIZE (DT_REG_SIZE(DT_NODELABEL(sram0)))
1616

1717
#ifdef CONFIG_BOOTLOADER_MCUBOOT
18-
#define SRAM_BASE (L2_SRAM_BASE + CONFIG_BOOTLOADER_SRAM_SIZE * 1K)
19-
#define SRAM_SIZE (L2_SRAM_SIZE - CONFIG_BOOTLOADER_SRAM_SIZE * 1K)
18+
#define SRAM_BASE (L2_SRAM_BASE + CONFIG_BOOTLOADER_SRAM_SIZE * 1024)
19+
#define SRAM_SIZE (L2_SRAM_SIZE - CONFIG_BOOTLOADER_SRAM_SIZE * 1024)
2020
#else
2121
#define SRAM_BASE (L2_SRAM_BASE)
2222
#define SRAM_SIZE (L2_SRAM_SIZE)

soc/xtensa/intel_adsp/cavs_v25/include/soc/memory.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
#define L2_SRAM_SIZE (DT_REG_SIZE(DT_NODELABEL(sram0)))
1616

1717
#ifdef CONFIG_BOOTLOADER_MCUBOOT
18-
#define SRAM_BASE (L2_SRAM_BASE + CONFIG_BOOTLOADER_SRAM_SIZE * 1K)
19-
#define SRAM_SIZE (L2_SRAM_SIZE - CONFIG_BOOTLOADER_SRAM_SIZE * 1K)
18+
#define SRAM_BASE (L2_SRAM_BASE + CONFIG_BOOTLOADER_SRAM_SIZE * 1024)
19+
#define SRAM_SIZE (L2_SRAM_SIZE - CONFIG_BOOTLOADER_SRAM_SIZE * 1024)
2020
#else
2121
#define SRAM_BASE (L2_SRAM_BASE)
2222
#define SRAM_SIZE (L2_SRAM_SIZE)

0 commit comments

Comments
 (0)