bool "Support Turris 1.x"
select SUPPORT_SPL
select ARCH_P2020
+ select BOARD_EARLY_INIT_F
+ select BOARD_EARLY_INIT_R
+ select LAST_STAGE_INIT
+ select OF_BOARD_SETUP
select SYS_L2_SIZE_512KB
config TARGET_P2041RDB
config DEFAULT_DEVICE_TREE
default "turris1x"
-# Board functions
-config ATSHA204A
- default y
-config BOARD_EARLY_INIT_F
- default y
-config BOARD_EARLY_INIT_R
- default y
-config LAST_STAGE_INIT
- default y
-config MISC
- default y
-config OF_BOARD_FIXUP
- default y
-config OF_BOARD_SETUP
- default y
-
-# ENV
-config ENV_SIZE
- default 0x2000
-config ENV_SECT_SIZE
- default 0x20000
-config ENV_OVERWRITE
- default y
-config ENV_IS_IN_FLASH
- default y
-config ENV_ADDR
- default 0xeff20000 # in NOR
-config SYS_RELOC_GD_ENV_ADDR
- default y
-
-# DDR
-config DDR_CLK_FREQ
- default 66666666
-config NR_DRAM_BANKS
- default 5
-
-# UART
-config DEBUG_UART_BASE
- default 0xffe04500 if DEBUG_UART
-config DEBUG_UART_CLOCK
- default 37500000 if DEBUG_UART
-config SYS_NS16550
- default y
-
-# I2C
-config I2C_SET_DEFAULT_BUS_NUM
- default y
-config SYS_FSL_I2C_OFFSET
- default 0x3000
-config SYS_FSL_HAS_I2C2_OFFSET
- default y
-config SYS_FSL_I2C2_OFFSET
- default 0x3100
-config SYS_I2C_FSL
- default y
-
-# GPIO
-config MPC8XXX_GPIO
- default y
-
-# WDT
-config WDT_MAX6370
- default y
-
-# PCIe
-config PCI_INIT_R
- default y
-config PCIE_FSL
- default y
-
-# Ethernet
-config MII
- default y
-config PHY_FIXED
- default y
-config TSEC_ENET
- default y
-
-# USB
-config USB_EHCI_FSL
- default y
-config USB_XHCI_HCD
- default y
-config USB_XHCI_PCI
- default y
-
-# SDHC
-config FSL_ESDHC
- default y
-config SYS_FSL_ESDHC_DEFAULT_BUS_WIDTH
- default 4
-
-# NOR
-config MTD_NOR_FLASH
- default y
-config CFI_FLASH
- default y
-config FLASH_CFI_MTD
- default y
-config SYS_FLASH_USE_BUFFER_WRITE
- default y
-
-# NAND
-config MTD_RAW_NAND
- default y
-config NAND_FSL_ELBC
- default y
-config NAND_FSL_ELBC_DT
- default y
-config BCH
- default y
-config SYS_FLASH_CFI
- default y
-config NAND_ECC_BCH
- default y
-config SYS_LOAD_ADDR
- default 0x1000000
-
-if SPL
-
-config SPL_ENV_SUPPORT
- default y
-config SPL_FRAMEWORK
- default n
-config SPL_I2C
- default y
-config SPL_LIBCOMMON_SUPPORT
- default y
-config SPL_LIBGENERIC_SUPPORT
- default y
-config SPL_MPC8XXX_INIT_DDR
- default y
-config SPL_SERIAL
- default y
-config SPL_SYS_I2C_LEGACY
- default y
-
-endif
-
endif
CONFIG_PPC=y
CONFIG_TEXT_BASE=0xeff40000
CONFIG_SYS_MALLOC_F_LEN=0x1000
+CONFIG_NR_DRAM_BANKS=5
+CONFIG_ENV_SIZE=0x2000
+CONFIG_ENV_SECT_SIZE=0x20000
CONFIG_SYS_MONITOR_LEN=786432
+CONFIG_SYS_LOAD_ADDR=0x1000000
+CONFIG_ENV_ADDR=0xeff20000
CONFIG_MPC85xx=y
CONFIG_SYS_INIT_RAM_LOCK=y
# CONFIG_CMD_ERRATA is not set
CONFIG_L2_CACHE=y
CONFIG_ENABLE_36BIT_PHYS=y
CONFIG_AHCI=y
+CONFIG_OF_BOARD_FIXUP=y
CONFIG_PCIE1=y
CONFIG_PCIE2=y
CONFIG_PCIE3=y
CONFIG_USE_BOOTCOMMAND=y
CONFIG_BOOTCOMMAND="run distro_bootcmd"
CONFIG_USE_PREBOOT=y
+CONFIG_PCI_INIT_R=y
CONFIG_HUSH_PARSER=y
CONFIG_CMD_BOOTZ=y
# CONFIG_CMD_EEPROM is not set
CONFIG_CMD_FS_UUID=y
CONFIG_OF_CONTROL=y
CONFIG_OF_INITIAL_DTB_READONLY=y
+CONFIG_ENV_OVERWRITE=y
+CONFIG_ENV_IS_IN_FLASH=y
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_USE_ETHPRIME=y
CONFIG_ETHPRIME="eth2"
# CONFIG_DM_DEVICE_REMOVE is not set
CONFIG_AHCI_PCI=y
CONFIG_LBA48=y
CONFIG_SYS_64BIT_LBA=y
+CONFIG_DDR_CLK_FREQ=66666666
CONFIG_CHIP_SELECTS_PER_CTRL=2
CONFIG_SYS_BR0_PRELIM_BOOL=y
CONFIG_SYS_BR0_PRELIM=0xef001001
CONFIG_SYS_BR3_PRELIM_BOOL=y
CONFIG_SYS_BR3_PRELIM=0xffa00801
CONFIG_SYS_OR3_PRELIM=0xfffe09f7
+CONFIG_MPC8XXX_GPIO=y
CONFIG_DM_I2C=y
+CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
+CONFIG_SYS_I2C_FSL=y
+CONFIG_MISC=y
+CONFIG_ATSHA204A=y
# CONFIG_MMC_HW_PARTITIONING is not set
# CONFIG_MMC_VERBOSE is not set
+CONFIG_FSL_ESDHC=y
CONFIG_MTD=y
CONFIG_DM_MTD=y
+CONFIG_MTD_NOR_FLASH=y
+CONFIG_CFI_FLASH=y
+CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
CONFIG_SYS_FLASH_EMPTY_INFO=y
+CONFIG_FLASH_CFI_MTD=y
+CONFIG_SYS_FLASH_CFI=y
CONFIG_SYS_FLASH_QUIET_TEST=y
CONFIG_SYS_MAX_FLASH_SECT=128
+CONFIG_MTD_RAW_NAND=y
+CONFIG_NAND_FSL_ELBC=y
+CONFIG_NAND_FSL_ELBC_DT=y
CONFIG_MTD_UBI=y
+CONFIG_PHY_FIXED=y
CONFIG_DM_MDIO=y
+CONFIG_MII=y
+CONFIG_TSEC_ENET=y
CONFIG_NVME_PCI=y
+CONFIG_PCIE_FSL=y
CONFIG_SCSI=y
CONFIG_SPECIFY_CONSOLE_INDEX=y
CONFIG_DM_SERIAL=y
+CONFIG_SYS_NS16550=y
CONFIG_USB=y
+CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_XHCI_PCI=y
+CONFIG_USB_EHCI_FSL=y
CONFIG_USB_STORAGE=y
CONFIG_WDT=y
+CONFIG_WDT_MAX6370=y
+CONFIG_BCH=y
# CONFIG_BINMAN_FDT is not set
CONFIG_PPC=y
CONFIG_TEXT_BASE=0x11000000
CONFIG_SYS_MALLOC_F_LEN=0x1000
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_NR_DRAM_BANKS=5
+CONFIG_ENV_SIZE=0x2000
+CONFIG_ENV_SECT_SIZE=0x20000
CONFIG_SPL_TEXT_BASE=0xf8f80000
CONFIG_SYS_MONITOR_LEN=1048576
CONFIG_SPL_MMC=y
+CONFIG_SPL_SERIAL=y
CONFIG_SPL=y
+CONFIG_DEBUG_UART_BASE=0xffe04500
+CONFIG_DEBUG_UART_CLOCK=37500000
+CONFIG_SYS_LOAD_ADDR=0x1000000
+CONFIG_ENV_ADDR=0xeff20000
CONFIG_MPC85xx=y
CONFIG_SYS_INIT_RAM_LOCK=y
CONFIG_FSL_PREPBL_ESDHC_BOOT_SECTOR=y
CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
CONFIG_DEBUG_UART=y
CONFIG_AHCI=y
+CONFIG_OF_BOARD_FIXUP=y
CONFIG_PCIE1=y
CONFIG_PCIE2=y
CONFIG_PCIE3=y
CONFIG_BOOTDELAY=3
CONFIG_OF_STDOUT_VIA_ALIAS=y
CONFIG_USE_PREBOOT=y
+CONFIG_PCI_INIT_R=y
+# CONFIG_SPL_FRAMEWORK is not set
CONFIG_SPL_MAX_SIZE=0x80200
CONFIG_SPL_PAD_TO=0x0
CONFIG_SPL_MMC_BOOT=y
CONFIG_SPL_RELOC_MALLOC=y
CONFIG_SPL_RELOC_MALLOC_ADDR=0xf8fa5000
CONFIG_SPL_RELOC_MALLOC_SIZE=0x5b000
+CONFIG_SPL_ENV_SUPPORT=y
+CONFIG_SPL_I2C=y
+CONFIG_SPL_MPC8XXX_INIT_DDR=y
CONFIG_SPL_TARGET="u-boot-with-spl.bin"
CONFIG_CMD_BOOTZ=y
CONFIG_CMD_IMLS=y
CONFIG_CMD_FS_UUID=y
CONFIG_CMD_UBI=y
CONFIG_OF_CONTROL=y
+CONFIG_ENV_OVERWRITE=y
+CONFIG_ENV_IS_IN_FLASH=y
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_USE_ETHPRIME=y
CONFIG_ETHPRIME="eth2"
CONFIG_NETCONSOLE=y
CONFIG_AHCI_PCI=y
CONFIG_LBA48=y
CONFIG_SYS_64BIT_LBA=y
+CONFIG_DDR_CLK_FREQ=66666666
CONFIG_CHIP_SELECTS_PER_CTRL=2
CONFIG_SYS_BR0_PRELIM_BOOL=y
CONFIG_SYS_BR0_PRELIM=0xef001001
CONFIG_SYS_BR3_PRELIM=0xffa00801
CONFIG_SYS_OR3_PRELIM=0xfffe09f7
CONFIG_DM_PCA953X=y
+CONFIG_MPC8XXX_GPIO=y
CONFIG_DM_I2C=y
+CONFIG_SPL_SYS_I2C_LEGACY=y
+CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
+CONFIG_SYS_I2C_FSL=y
+CONFIG_SYS_FSL_I2C_OFFSET=0x3000
+CONFIG_SYS_FSL_HAS_I2C2_OFFSET=y
+CONFIG_SYS_FSL_I2C2_OFFSET=0x3100
+CONFIG_MISC=y
+CONFIG_ATSHA204A=y
CONFIG_SYS_I2C_EEPROM_ADDR=0x52
+CONFIG_FSL_ESDHC=y
CONFIG_MTD=y
CONFIG_DM_MTD=y
+CONFIG_MTD_NOR_FLASH=y
+CONFIG_CFI_FLASH=y
+CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
CONFIG_SYS_FLASH_EMPTY_INFO=y
+CONFIG_FLASH_CFI_MTD=y
+CONFIG_SYS_FLASH_CFI=y
CONFIG_SYS_FLASH_QUIET_TEST=y
CONFIG_SYS_MAX_FLASH_SECT=128
+CONFIG_MTD_RAW_NAND=y
+CONFIG_NAND_FSL_ELBC=y
+CONFIG_NAND_FSL_ELBC_DT=y
+CONFIG_PHY_FIXED=y
CONFIG_DM_MDIO=y
+CONFIG_MII=y
+CONFIG_TSEC_ENET=y
CONFIG_NVME_PCI=y
+CONFIG_PCIE_FSL=y
CONFIG_DM_RTC=y
CONFIG_RTC_DS1307=y
CONFIG_SCSI=y
CONFIG_DM_SPI=y
CONFIG_FSL_ESPI=y
CONFIG_USB=y
+CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_XHCI_PCI=y
+CONFIG_USB_EHCI_FSL=y
CONFIG_WDT=y
+CONFIG_WDT_MAX6370=y
CONFIG_FAT_WRITE=y
+CONFIG_BCH=y