#include <configs/socfpga_agilex5_defconfig>

CONFIG_ARM=y
CONFIG_ARCH_SOCFPGA=y
CONFIG_DEFAULT_DEVICE_TREE="socfpga_agilex5_socdk"
CONFIG_BOOTARGS="earlycon panic=-1 root=${nandroot} rw rootwait rootfstype=ubifs ubi.mtd=1"
CONFIG_TARGET_SOCFPGA_AGILEX5_NAND2=y
CONFIG_PHY_CADENCE_COMBOPHY=n
CONFIG_SPL_PHY_CADENCE_COMBOPHY=n
# CONFIG_MMC_DW is not set
CONFIG_SPL_MTD=y
CONFIG_CMD_NAND_TRIMFFS=y
CONFIG_CMD_NAND_LOCK_UNLOCK=y
CONFIG_SPL_MTD_SUPPORT=y
CONFIG_MTDIDS_DEFAULT="nand0=10b80000.nand.0"
CONFIG_MTDPARTS_DEFAULT="mtdparts=10b80000.nand.0:2m(u-boot),-(root)"
CONFIG_CMD_UBIFS=y
CONFIG_MTD_UBI=y
CONFIG_MTD_UBI_WL_THRESHOLD=4096
CONFIG_MTD_UBI_BEB_LIMIT=20
CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y
CONFIG_SYS_NAND_U_BOOT_OFFS=0x0
CONFIG_SYS_NAND_U_BOOT_OFFS_REDUND=0x100000
CONFIG_UBI_SILENCE_MSG=y
CONFIG_MTD_RAW_NAND=y
CONFIG_NAND_CADENCE=y
CONFIG_SPL_NAND_SUPPORT=y
CONFIG_SPL_NAND_CADENCE=y
CONFIG_SYS_NAND_ONFI_DETECTION=y
CONFIG_SYS_NAND_BLOCK_SIZE=0x20000
CONFIG_SYS_NAND_PAGE_SIZE=0x800
