1e66c49faSVikas Manocha /* 2e66c49faSVikas Manocha * (C) Copyright 2016 3e66c49faSVikas Manocha * Vikas Manocha, <vikas.manocha@st.com> 4e66c49faSVikas Manocha * 5e66c49faSVikas Manocha * SPDX-License-Identifier: GPL-2.0+ 6e66c49faSVikas Manocha */ 7e66c49faSVikas Manocha 8e66c49faSVikas Manocha #ifndef __CONFIG_H 9e66c49faSVikas Manocha #define __CONFIG_H 10e66c49faSVikas Manocha 11e66c49faSVikas Manocha #define CONFIG_SYS_FLASH_BASE 0x08000000 12e66c49faSVikas Manocha #define CONFIG_SYS_INIT_SP_ADDR 0x20050000 13b9747696SVikas Manocha 14b9747696SVikas Manocha #ifdef CONFIG_SUPPORT_SPL 15b9747696SVikas Manocha #define CONFIG_SYS_TEXT_BASE 0xC0000000 16b9747696SVikas Manocha #else 17b9747696SVikas Manocha #define CONFIG_SYS_TEXT_BASE CONFIG_SYS_FLASH_BASE 18b9747696SVikas Manocha #endif 19e66c49faSVikas Manocha 20e66c49faSVikas Manocha /* 21e66c49faSVikas Manocha * Configuration of the external SDRAM memory 22e66c49faSVikas Manocha */ 23e66c49faSVikas Manocha #define CONFIG_NR_DRAM_BANKS 1 2425c1b135SToshifumi NISHINAGA #define CONFIG_SYS_LOAD_ADDR 0xC0400000 2525c1b135SToshifumi NISHINAGA #define CONFIG_LOADADDR 0xC0400000 26e66c49faSVikas Manocha 27adcc90b4SVikas Manocha #define CONFIG_SYS_MAX_FLASH_SECT 8 28adcc90b4SVikas Manocha #define CONFIG_SYS_MAX_FLASH_BANKS 1 29e66c49faSVikas Manocha 30e66c49faSVikas Manocha #define CONFIG_ENV_IS_NOWHERE 31e66c49faSVikas Manocha #define CONFIG_ENV_SIZE (8 << 10) 32e66c49faSVikas Manocha 33adcc90b4SVikas Manocha #define CONFIG_STM32_FLASH 34e66c49faSVikas Manocha #define CONFIG_STM32X7_SERIAL 35e66c49faSVikas Manocha 36b20b70fcSMichael Kurz #define CONFIG_DW_GMAC_DEFAULT_DMA_PBL (8) 37b20b70fcSMichael Kurz #define CONFIG_DW_ALTDESCRIPTOR 38b20b70fcSMichael Kurz #define CONFIG_MII 39fc0d3dbcSMichael Kurz #define CONFIG_PHY_SMSC 40b20b70fcSMichael Kurz 41ba0a3c16SToshifumi NISHINAGA #define CONFIG_STM32_HSE_HZ 25000000 42ba0a3c16SToshifumi NISHINAGA #define CONFIG_SYS_CLK_FREQ 200000000 /* 200 MHz */ 43e66c49faSVikas Manocha #define CONFIG_SYS_HZ_CLOCK 1000000 /* Timer is clocked at 1MHz */ 44e66c49faSVikas Manocha 45e66c49faSVikas Manocha #define CONFIG_CMDLINE_TAG 46e66c49faSVikas Manocha #define CONFIG_SETUP_MEMORY_TAGS 47e66c49faSVikas Manocha #define CONFIG_INITRD_TAG 48e66c49faSVikas Manocha #define CONFIG_REVISION_TAG 49e66c49faSVikas Manocha 50e66c49faSVikas Manocha #define CONFIG_SYS_CBSIZE 1024 51e66c49faSVikas Manocha #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE \ 52e66c49faSVikas Manocha + sizeof(CONFIG_SYS_PROMPT) + 16) 53e66c49faSVikas Manocha 54e66c49faSVikas Manocha #define CONFIG_SYS_MAXARGS 16 55b20b70fcSMichael Kurz #define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024) 56e66c49faSVikas Manocha 57e66c49faSVikas Manocha #define CONFIG_BOOTARGS \ 58e66c49faSVikas Manocha "console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel" 59e66c49faSVikas Manocha #define CONFIG_BOOTCOMMAND \ 60e66c49faSVikas Manocha "run bootcmd_romfs" 61e66c49faSVikas Manocha 62e66c49faSVikas Manocha #define CONFIG_EXTRA_ENV_SETTINGS \ 63e66c49faSVikas Manocha "bootargs_romfs=uclinux.physaddr=0x08180000 root=/dev/mtdblock0\0" \ 64e66c49faSVikas Manocha "bootcmd_romfs=setenv bootargs ${bootargs} ${bootargs_romfs};" \ 65e66c49faSVikas Manocha "bootm 0x08044000 - 0x08042000\0" 66e66c49faSVikas Manocha 67e66c49faSVikas Manocha 68e66c49faSVikas Manocha /* 69e66c49faSVikas Manocha * Command line configuration. 70e66c49faSVikas Manocha */ 71e66c49faSVikas Manocha #define CONFIG_SYS_LONGHELP 72e66c49faSVikas Manocha #define CONFIG_AUTO_COMPLETE 73e66c49faSVikas Manocha #define CONFIG_CMDLINE_EDITING 74dc11d83aSVikas Manocha #define CONFIG_CMD_CACHE 752f80a9f7SVikas Manocha #define CONFIG_BOARD_LATE_INIT 76a241c241SVikas Manocha #define CONFIG_DISPLAY_BOARDINFO 77b9747696SVikas Manocha 78b9747696SVikas Manocha /* For SPL */ 79b9747696SVikas Manocha #ifdef CONFIG_SUPPORT_SPL 80b9747696SVikas Manocha #define CONFIG_SPL_STACK CONFIG_SYS_INIT_SP_ADDR 81b9747696SVikas Manocha #define CONFIG_SPL_FRAMEWORK 82b9747696SVikas Manocha #define CONFIG_SPL_BOARD_INIT 83b9747696SVikas Manocha #define CONFIG_SPL_TEXT_BASE CONFIG_SYS_FLASH_BASE 84b9747696SVikas Manocha #define CONFIG_SYS_MONITOR_LEN (512 * 1024) 85b9747696SVikas Manocha #define CONFIG_SYS_SPL_LEN 0x00008000 86b9747696SVikas Manocha #define CONFIG_SYS_UBOOT_START 0XC00003FD 87b9747696SVikas Manocha #define CONFIG_SYS_UBOOT_BASE (CONFIG_SYS_FLASH_BASE + \ 88b9747696SVikas Manocha CONFIG_SYS_SPL_LEN) 89*55a3ef71SVikas Manocha 90*55a3ef71SVikas Manocha #define CONFIG_SYS_OS_BASE 0x08040000 91*55a3ef71SVikas Manocha /* DT blob (fdt) address */ 92*55a3ef71SVikas Manocha #define CONFIG_SYS_SPL_ARGS_ADDR 0xC0000100 93*55a3ef71SVikas Manocha #define CONFIG_SYS_FDT_BASE (CONFIG_SYS_FLASH_BASE + \ 94*55a3ef71SVikas Manocha 0x1C0000) 95*55a3ef71SVikas Manocha #define CONFIG_SYS_FDT_SIZE (20*1024) 96b9747696SVikas Manocha #endif 97b9747696SVikas Manocha /* For SPL ends */ 98b9747696SVikas Manocha 99e66c49faSVikas Manocha #endif /* __CONFIG_H */ 100