183d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 2246771b1SPatrice Chotard /* 33bc599c9SPatrice Chotard * Copyright (C) 2017, STMicroelectronics - All Rights Reserved 43bc599c9SPatrice Chotard * Author(s): Patrice Chotard, <patrice.chotard@st.com> for STMicroelectronics. 5246771b1SPatrice Chotard */ 6246771b1SPatrice Chotard 7246771b1SPatrice Chotard #ifndef __CONFIG_H 8246771b1SPatrice Chotard #define __CONFIG_H 9246771b1SPatrice Chotard 10246771b1SPatrice Chotard #include <config.h> 11246771b1SPatrice Chotard 12246771b1SPatrice Chotard #define CONFIG_SYS_FLASH_BASE 0x08000000 13ca4abdcdSPatrice Chotard #define CONFIG_SYS_INIT_SP_ADDR 0x24040000 14246771b1SPatrice Chotard 15246771b1SPatrice Chotard /* 16246771b1SPatrice Chotard * Configuration of the external SDRAM memory 17246771b1SPatrice Chotard */ 18246771b1SPatrice Chotard #define CONFIG_SYS_LOAD_ADDR 0xD0400000 19246771b1SPatrice Chotard #define CONFIG_LOADADDR 0xD0400000 20246771b1SPatrice Chotard 21246771b1SPatrice Chotard #define CONFIG_ENV_SIZE (8 << 10) 22246771b1SPatrice Chotard 23aa5e3e22SPatrice Chotard #define CONFIG_SYS_HZ_CLOCK 1000000 24246771b1SPatrice Chotard 25246771b1SPatrice Chotard #define CONFIG_CMDLINE_TAG 26246771b1SPatrice Chotard #define CONFIG_SETUP_MEMORY_TAGS 27246771b1SPatrice Chotard #define CONFIG_INITRD_TAG 28246771b1SPatrice Chotard #define CONFIG_REVISION_TAG 29246771b1SPatrice Chotard 30246771b1SPatrice Chotard #define CONFIG_SYS_MAXARGS 16 31246771b1SPatrice Chotard #define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024) 32246771b1SPatrice Chotard 33*20fc1143SPatrice Chotard #define BOOT_TARGET_DEVICES(func) \ 34*20fc1143SPatrice Chotard func(MMC, mmc, 0) 35*20fc1143SPatrice Chotard 36*20fc1143SPatrice Chotard #include <config_distro_bootcmd.h> 37*20fc1143SPatrice Chotard #define CONFIG_EXTRA_ENV_SETTINGS \ 38*20fc1143SPatrice Chotard "kernel_addr_r=0xD0008000\0" \ 39*20fc1143SPatrice Chotard "fdtfile=stm32h743i-disco.dtb\0" \ 40*20fc1143SPatrice Chotard "fdt_addr_r=0xD0700000\0" \ 41*20fc1143SPatrice Chotard "scriptaddr=0xD0800000\0" \ 42*20fc1143SPatrice Chotard "pxefile_addr_r=0xD0800000\0" \ 43*20fc1143SPatrice Chotard "fdt_high=0xffffffffffffffff\0" \ 44*20fc1143SPatrice Chotard "initrd_high=0xffffffffffffffff\0" \ 45*20fc1143SPatrice Chotard "ramdisk_addr_r=0xD0900000\0" \ 46*20fc1143SPatrice Chotard BOOTENV 47246771b1SPatrice Chotard 48246771b1SPatrice Chotard /* 49246771b1SPatrice Chotard * Command line configuration. 50246771b1SPatrice Chotard */ 51246771b1SPatrice Chotard #define CONFIG_BOARD_LATE_INIT 52246771b1SPatrice Chotard 53246771b1SPatrice Chotard #endif /* __CONFIG_H */ 54