Skip to content

Commit

Permalink
Merge branch 'fix-device-config-bsp' into 'dev'
Browse files Browse the repository at this point in the history
Fix: full device config support BSP

Closes zephyrproject-rtos#25

See merge request blik/embedded/zephyr!31
  • Loading branch information
frasa committed Jul 12, 2018
2 parents d54a79d + bd7d011 commit 6f9c33d
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 2 deletions.
5 changes: 5 additions & 0 deletions boards/arm/akita_gen2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
zephyr_library()
zephyr_library_sources(pinmux.c)
zephyr_library_include_directories(${PROJECT_SOURCE_DIR}/drivers)

zephyr_compile_definitions(
-DFLASH_AREA_NFFS_OFFSET=0
-DFLASH_AREA_NFFS_SIZE=8192
)
53 changes: 52 additions & 1 deletion boards/arm/akita_gen2/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,64 @@ config ADC_0

endif # ADC


if SPI

config SPI_0
def_bool y
def_bool n

config SPI_0_IRQ_PRI
default 10

endif # SPI


if FLASH
config SPI
def_bool y
config SPI_0
def_bool y
config SPI_MCUX_DSPI
def_bool y
config SPI_FLASH_W25QXXXX
def_bool y
config SPI_FLASH_W25QXXXX_SPI_NAME
default "SPI_0"
choice SPI_FLASH_W25QXXXX_DEVICE
default SPI_FLASH_W25QXXXX_DEVICE_W25QXXFW
endchoice
config SPI_FLASH_W25QXXXX_SPI_FREQ_0
default 500000
config SPI_FLASH_W25QXXXX_SPI_SLAVE
default 0

endif # FLASH


if FILE_SYSTEM_NFFS

config FS_NFFS_FLASH_DEV_NAME
default "W25QXXXX"
config FS_NFFS_NUM_INODES
default 100
config FS_NFFS_NUM_BLOCKS
default 100
config FS_NFFS_NUM_FILES
default 4
config FS_NFFS_NUM_DIRS
default 4
config FS_NFFS_NUM_CACHE_INODES
default 1
config FS_NFFS_NUM_CACHE_BLOCKS
default 1
config NFFS_FILESYSTEM_MAX_AREAS
default 8
config NFFS_FILESYSTEM_MAX_BLOCK_SIZE
default 256

endif # FILE_SYSTEM_NFFS


if LIS3DH

config LIS3DH_GPIO_NAME
Expand Down
4 changes: 3 additions & 1 deletion boards/arm/akita_gen2_devboard/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ endif # ADC


if FLASH
config SPI
def_bool y
config SPI_1
def_bool y
config SPI_MCUX_DSPI
Expand All @@ -95,7 +97,7 @@ if FLASH
choice SPI_FLASH_W25QXXXX_DEVICE
default SPI_FLASH_W25QXXXX_DEVICE_W25QXXFW
endchoice
config CONFIG_SPI_FLASH_W25QXXXX_SPI_FREQ_0
config SPI_FLASH_W25QXXXX_SPI_FREQ_0
default 500000
config SPI_FLASH_W25QXXXX_SPI_SLAVE
default 0
Expand Down

0 comments on commit 6f9c33d

Please sign in to comment.