Skip to content

Commit 0d75e62

Browse files
committed
Subaru EG33: hide serial flash from OpenBLT
1 parent 0ee0db3 commit 0d75e62

1 file changed

Lines changed: 17 additions & 15 deletions

File tree

  • firmware/config/boards/subaru_eg33

firmware/config/boards/subaru_eg33/board.mk

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,20 @@ DDEFS += -DEFI_EMBED_INI_MSD=TRUE
3131
# Shared variables
3232
ALLINC += $(BOARDINC)
3333

34-
# this board has external QSPI NOR flash
35-
# see also *STM32_WSPI*
36-
DDEFS += -DHAL_USE_WSPI=TRUE
37-
DDEFS += -DSNOR_SHARED_BUS=FALSE
38-
DDEFS += -DWSPI_USE_MUTUAL_EXCLUSION=FALSE
39-
40-
# This board uses ChibiOS MFS driver on internal flash
41-
include $(PROJECT_DIR)/hw_layer/ports/stm32/use_higher_level_flash_api.mk
42-
# We have cache
43-
DDEFS += -DSNOR_SPI_WORKAROUND_CACHE=TRUE
44-
# We want big intermediate buffer
45-
DDEFS += -DSNOR_BUFFER_SIZE=512
46-
47-
#Serial flash driver
48-
include $(PROJECT_DIR)/hw_layer/drivers/flash/sst26f/sst26f_jedec.mk
34+
ifeq (,$(findstring EFI_BOOTLOADER,$(DDEFS)))
35+
# this board has external QSPI NOR flash
36+
# see also *STM32_WSPI*
37+
DDEFS += -DHAL_USE_WSPI=TRUE
38+
DDEFS += -DSNOR_SHARED_BUS=FALSE
39+
DDEFS += -DWSPI_USE_MUTUAL_EXCLUSION=FALSE
40+
41+
# This board uses ChibiOS MFS driver on internal flash
42+
include $(PROJECT_DIR)/hw_layer/ports/stm32/use_higher_level_flash_api.mk
43+
# We have cache
44+
DDEFS += -DSNOR_SPI_WORKAROUND_CACHE=TRUE
45+
# We want big intermediate buffer
46+
DDEFS += -DSNOR_BUFFER_SIZE=512
47+
48+
#Serial flash driver
49+
include $(PROJECT_DIR)/hw_layer/drivers/flash/sst26f/sst26f_jedec.mk
50+
endif

0 commit comments

Comments
 (0)