2eff5a6c63
Kconfig files. Repartition some functionality. Bootloader support will need to be provided in logic under arch/z80/src/ez80 so the critical configuration selections were moved the Kconfig file there. arch/z80/src/ez80/ez80_i2c.h: Rename arch/z80/src/ez80/ez80f91_i2c.h. It is sharable by both ez80f91 and ez80f92. arch/z80/src/ez80/: Add logic to perform an additional level of interrupt redirection. This is necessary because the the interrupt handling is part of the loader FLASH-based logic. In order to share interrupts with the program loaded into RAM by the loader, another layer or redirection is required to get control to the interrupt handlers in the loaded program. See ez809f2_loader.asm and ez80f92_program.asm boards/z80/ez80/z20x/scripts: Reduce size of the interrupt re-direction buffer from 1Kb to 512b.
95 lines
2.3 KiB
Plaintext
95 lines
2.3 KiB
Plaintext
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
if ARCH_BOARD_Z20X
|
|
|
|
choice
|
|
prompt "Build selection"
|
|
default Z20X_PROGRAM
|
|
|
|
config Z20X_SDBOOT
|
|
bool "SD boot loader"
|
|
select LIB_HEX2BIN
|
|
select EZ80_BOOTLOADER
|
|
depends on EZ80_SPI && MMCSD_SPI
|
|
---help---
|
|
Select this option only with the boards/z20x/sdboot
|
|
configuration. This will enable the components needed only by the
|
|
boot loader.
|
|
|
|
config Z20X_W25BOOT
|
|
bool "W25 boot loader"
|
|
select Z20X_W25_CHARDEV
|
|
select LIB_HEX2BIN
|
|
select EZ80_BOOTLOADER
|
|
depends on EZ80_SPI && MTD_W25
|
|
---help---
|
|
Select this option only with the boards/z20x/w25boot
|
|
configuration. This will enable the components needed only by the
|
|
boot loader.
|
|
|
|
config Z20X_PROGRAM
|
|
bool "Loadable program"
|
|
select EZ80_PROGRAM
|
|
---help---
|
|
Normal program that resides on SD card or in W25 FLASH and is
|
|
loaded into RAM by a bootloader.
|
|
|
|
config Z20X_STANDALONE
|
|
bool "Standalone FLASH progroam"
|
|
select BOOT_RUNFROMFLASH
|
|
---help---
|
|
Select this option only to build a small program that executes
|
|
from z20x FLASH memory.
|
|
|
|
config Z20X_COPYTORAM
|
|
bool "Copy to RAM"
|
|
select BOOT_RUNFROMEXTSRAM
|
|
---help---
|
|
This option is available only when running from external SRAM
|
|
(CONFIG_BOOT_RUNFROMEXTSRAM). In that case there are two possible
|
|
options: (1) The configuration runs entirely out of SRAM and must
|
|
be copied into SRAM by a boot loader. Or (2) The configuration
|
|
boots out of FLASH, copies itself to SRAM, and runs from SRAM. This
|
|
configuration setting selects that latter option.
|
|
|
|
endchoice
|
|
|
|
config Z20X_W25_PROGSIZE
|
|
int "W25 partition size"
|
|
default 262144
|
|
range 131072 524288
|
|
depends on Z20X_W25BOOT
|
|
---help---
|
|
This is the size of the partition at the beginning to the W25
|
|
serial FLASH that will be used to hold the boot program. Since
|
|
this program must run from SRAM, there would be no purpose int
|
|
making this size any larger than the size of the internal SRAM.
|
|
|
|
choice
|
|
prompt "Winbond W25 Usage"
|
|
default Z20X_W25_CHARDEV
|
|
depends on EZ80_SPI && MTD_W25
|
|
|
|
config Z20X_W25_CHARDEV
|
|
bool "Character device"
|
|
select BCH
|
|
|
|
config Z20X_W25_BLOCKDEV
|
|
bool "Block device"
|
|
|
|
config Z20X_W25_MTDDEV
|
|
bool "MTD device"
|
|
|
|
endchoice
|
|
|
|
config Z20X_W25_MINOR
|
|
int "W25 device minor number"
|
|
default 0
|
|
range 0 255
|
|
depends on Z20X_W25_CHARDEV
|
|
|
|
endif # ARCH_BOARD_Z20X
|