mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 00:49:43 +00:00
731fd50e27
The AV96 board does exist in multiple variants. To cater for all of them, implement board code handling. There are two GPIOs which code the type of the board, read them out and use the value to pick the correct device tree from an fitImage. Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Marek Vasut <marex@denx.de> Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Cc: Patrick Delaunay <patrick.delaunay@st.com> Cc: Patrice Chotard <patrice.chotard@st.com> Change-Id: Iddb330b9a66500495885457cbe17edc0eacaaf43
142 lines
3.6 KiB
Text
142 lines
3.6 KiB
Text
CONFIG_ARM=y
|
|
CONFIG_ARCH_STM32MP=y
|
|
CONFIG_SYS_MALLOC_F_LEN=0x3000
|
|
CONFIG_ENV_SIZE=0x4000
|
|
CONFIG_SYS_SPI_U_BOOT_OFFS=0x80000
|
|
CONFIG_SPL_MMC_SUPPORT=y
|
|
CONFIG_SPL=y
|
|
CONFIG_TARGET_DH_STM32MP1_PDK2=y
|
|
CONFIG_SPL_SPI_FLASH_SUPPORT=y
|
|
CONFIG_SPL_SPI_SUPPORT=y
|
|
# CONFIG_ARMV7_VIRT is not set
|
|
CONFIG_SPL_TEXT_BASE=0x2FFC2500
|
|
CONFIG_DISTRO_DEFAULTS=y
|
|
CONFIG_FIT=y
|
|
CONFIG_SPL_LOAD_FIT=y
|
|
CONFIG_SPL_FIT_SOURCE="board/dhelectronics/dh_stm32mp1/u-boot-dhcor.its"
|
|
CONFIG_BOOTCOMMAND="run bootcmd_stm32mp"
|
|
CONFIG_BOARD_EARLY_INIT_F=y
|
|
CONFIG_SPL_LEGACY_IMAGE_SUPPORT=y
|
|
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION=y
|
|
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION=3
|
|
CONFIG_SPL_I2C_SUPPORT=y
|
|
CONFIG_SPL_MTD_SUPPORT=y
|
|
CONFIG_SPL_POWER_SUPPORT=y
|
|
CONFIG_SYS_PROMPT="STM32MP> "
|
|
# CONFIG_CMD_ELF is not set
|
|
# CONFIG_CMD_EXPORTENV is not set
|
|
CONFIG_CMD_EEPROM=y
|
|
CONFIG_CMD_MEMINFO=y
|
|
CONFIG_CMD_MEMTEST=y
|
|
CONFIG_CMD_ADC=y
|
|
CONFIG_CMD_CLK=y
|
|
CONFIG_CMD_DFU=y
|
|
CONFIG_CMD_FUSE=y
|
|
CONFIG_CMD_GPIO=y
|
|
CONFIG_CMD_GPT=y
|
|
CONFIG_CMD_I2C=y
|
|
CONFIG_CMD_MMC=y
|
|
CONFIG_CMD_MTD=y
|
|
CONFIG_CMD_REMOTEPROC=y
|
|
CONFIG_CMD_SPI=y
|
|
CONFIG_CMD_USB=y
|
|
CONFIG_CMD_USB_MASS_STORAGE=y
|
|
CONFIG_CMD_BMP=y
|
|
CONFIG_CMD_CACHE=y
|
|
CONFIG_CMD_TIME=y
|
|
CONFIG_CMD_TIMER=y
|
|
CONFIG_CMD_PMIC=y
|
|
CONFIG_CMD_REGULATOR=y
|
|
CONFIG_CMD_EXT4_WRITE=y
|
|
CONFIG_CMD_MTDPARTS=y
|
|
# CONFIG_SPL_DOS_PARTITION is not set
|
|
CONFIG_DEFAULT_DEVICE_TREE="stm32mp15xx-dhcor-avenger96"
|
|
CONFIG_OF_SPL_REMOVE_PROPS="interrupts interrupt-names interrupts-extended interrupt-controller \\\#interrupt-cells interrupt-parent dmas dma-names assigned-clocks assigned-clock-rates assigned-clock-parents hwlocks"
|
|
CONFIG_ENV_IS_IN_SPI_FLASH=y
|
|
CONFIG_USE_ENV_SPI_BUS=y
|
|
CONFIG_ENV_SPI_BUS=0
|
|
CONFIG_USE_ENV_SPI_CS=y
|
|
CONFIG_ENV_SPI_CS=0
|
|
CONFIG_USE_ENV_SPI_MAX_HZ=y
|
|
CONFIG_ENV_SPI_MAX_HZ=10000000
|
|
CONFIG_USE_ENV_SPI_MODE=y
|
|
CONFIG_ENV_SPI_MODE=0x0
|
|
CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
|
|
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
|
CONFIG_NET_RANDOM_ETHADDR=y
|
|
CONFIG_IP_DEFRAG=y
|
|
CONFIG_TFTP_BLOCKSIZE=1536
|
|
CONFIG_STM32_ADC=y
|
|
CONFIG_SPL_BLOCK_CACHE=y
|
|
CONFIG_DFU_MMC=y
|
|
CONFIG_DFU_RAM=y
|
|
CONFIG_DFU_VIRT=y
|
|
CONFIG_DM_HWSPINLOCK=y
|
|
CONFIG_HWSPINLOCK_STM32=y
|
|
CONFIG_DM_I2C=y
|
|
CONFIG_SYS_I2C_STM32F7=y
|
|
CONFIG_LED=y
|
|
CONFIG_LED_GPIO=y
|
|
CONFIG_DM_MAILBOX=y
|
|
CONFIG_STM32_IPCC=y
|
|
CONFIG_I2C_EEPROM=y
|
|
CONFIG_SYS_I2C_EEPROM_ADDR=0x53
|
|
CONFIG_SYS_I2C_EEPROM_BUS=2
|
|
CONFIG_DM_MMC=y
|
|
CONFIG_SUPPORT_EMMC_BOOT=y
|
|
CONFIG_STM32_SDMMC2=y
|
|
CONFIG_MTD=y
|
|
CONFIG_DM_SPI_FLASH=y
|
|
CONFIG_SPI_FLASH_MACRONIX=y
|
|
CONFIG_SPI_FLASH_SPANSION=y
|
|
CONFIG_SPI_FLASH_STMICRO=y
|
|
CONFIG_SPI_FLASH_WINBOND=y
|
|
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
|
|
CONFIG_SPI_FLASH_MTD=y
|
|
CONFIG_SPL_SPI_FLASH_MTD=y
|
|
CONFIG_DM_ETH=y
|
|
CONFIG_DWC_ETH_QOS=y
|
|
CONFIG_KS8851_MLL=y
|
|
CONFIG_PHY=y
|
|
CONFIG_PHY_STM32_USBPHYC=y
|
|
CONFIG_PINCONF=y
|
|
# CONFIG_SPL_PINCTRL_FULL is not set
|
|
CONFIG_PINCTRL_STMFX=y
|
|
CONFIG_DM_PMIC=y
|
|
# CONFIG_SPL_PMIC_CHILDREN is not set
|
|
CONFIG_PMIC_STPMIC1=y
|
|
CONFIG_DM_REGULATOR_FIXED=y
|
|
CONFIG_DM_REGULATOR_GPIO=y
|
|
CONFIG_DM_REGULATOR_STM32_VREFBUF=y
|
|
CONFIG_DM_REGULATOR_STPMIC1=y
|
|
CONFIG_REMOTEPROC_STM32_COPRO=y
|
|
CONFIG_DM_RTC=y
|
|
CONFIG_RTC_STM32=y
|
|
CONFIG_SERIAL_RX_BUFFER=y
|
|
CONFIG_SPI=y
|
|
CONFIG_DM_SPI=y
|
|
CONFIG_STM32_QSPI=y
|
|
CONFIG_STM32_SPI=y
|
|
CONFIG_USB=y
|
|
CONFIG_DM_USB=y
|
|
CONFIG_DM_USB_GADGET=y
|
|
CONFIG_USB_EHCI_HCD=y
|
|
CONFIG_USB_EHCI_GENERIC=y
|
|
CONFIG_USB_GADGET=y
|
|
CONFIG_USB_GADGET_MANUFACTURER="dh"
|
|
CONFIG_USB_GADGET_VENDOR_NUM=0x0483
|
|
CONFIG_USB_GADGET_PRODUCT_NUM=0x5720
|
|
CONFIG_USB_GADGET_DWC2_OTG=y
|
|
CONFIG_USB_GADGET_DOWNLOAD=y
|
|
CONFIG_USB_HOST_ETHER=y
|
|
CONFIG_USB_ETHER_ASIX=y
|
|
CONFIG_DM_VIDEO=y
|
|
CONFIG_BACKLIGHT_GPIO=y
|
|
CONFIG_VIDEO_LCD_ORISETECH_OTM8009A=y
|
|
CONFIG_VIDEO_LCD_RAYDIUM_RM68200=y
|
|
CONFIG_VIDEO_STM32=y
|
|
CONFIG_VIDEO_STM32_DSI=y
|
|
CONFIG_VIDEO_STM32_MAX_XRES=1280
|
|
CONFIG_VIDEO_STM32_MAX_YRES=800
|
|
CONFIG_LZO=y
|
|
CONFIG_FDT_FIXUP_PARTITIONS=y
|