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 13e66c49faSVikas Manocha #define CONFIG_SYS_TEXT_BASE 0x08000000 14e66c49faSVikas Manocha 15e66c49faSVikas Manocha /* 16e66c49faSVikas Manocha * Configuration of the external SDRAM memory 17e66c49faSVikas Manocha */ 18e66c49faSVikas Manocha #define CONFIG_NR_DRAM_BANKS 1 19e66c49faSVikas Manocha #define CONFIG_SYS_RAM_FREQ_DIV 2 2025c1b135SToshifumi NISHINAGA #define CONFIG_SYS_LOAD_ADDR 0xC0400000 2125c1b135SToshifumi NISHINAGA #define CONFIG_LOADADDR 0xC0400000 22e66c49faSVikas Manocha 23adcc90b4SVikas Manocha #define CONFIG_SYS_MAX_FLASH_SECT 8 24adcc90b4SVikas Manocha #define CONFIG_SYS_MAX_FLASH_BANKS 1 25e66c49faSVikas Manocha 26e66c49faSVikas Manocha #define CONFIG_ENV_IS_NOWHERE 27e66c49faSVikas Manocha #define CONFIG_ENV_SIZE (8 << 10) 28e66c49faSVikas Manocha 29adcc90b4SVikas Manocha #define CONFIG_STM32_FLASH 30e66c49faSVikas Manocha #define CONFIG_STM32X7_SERIAL 31e66c49faSVikas Manocha 32b20b70fcSMichael Kurz #define CONFIG_DESIGNWARE_ETH 33b20b70fcSMichael Kurz #define CONFIG_DW_GMAC_DEFAULT_DMA_PBL (8) 34b20b70fcSMichael Kurz #define CONFIG_DW_ALTDESCRIPTOR 35b20b70fcSMichael Kurz #define CONFIG_MII 36fc0d3dbcSMichael Kurz #define CONFIG_PHY_SMSC 37b20b70fcSMichael Kurz 38ba0a3c16SToshifumi NISHINAGA #define CONFIG_STM32_HSE_HZ 25000000 39ba0a3c16SToshifumi NISHINAGA #define CONFIG_SYS_CLK_FREQ 200000000 /* 200 MHz */ 40e66c49faSVikas Manocha #define CONFIG_SYS_HZ_CLOCK 1000000 /* Timer is clocked at 1MHz */ 41e66c49faSVikas Manocha 42e66c49faSVikas Manocha #define CONFIG_CMDLINE_TAG 43e66c49faSVikas Manocha #define CONFIG_SETUP_MEMORY_TAGS 44e66c49faSVikas Manocha #define CONFIG_INITRD_TAG 45e66c49faSVikas Manocha #define CONFIG_REVISION_TAG 46e66c49faSVikas Manocha 47e66c49faSVikas Manocha #define CONFIG_SYS_CBSIZE 1024 48e66c49faSVikas Manocha #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE \ 49e66c49faSVikas Manocha + sizeof(CONFIG_SYS_PROMPT) + 16) 50e66c49faSVikas Manocha 51e66c49faSVikas Manocha #define CONFIG_SYS_MAXARGS 16 52b20b70fcSMichael Kurz #define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024) 53e66c49faSVikas Manocha 54e66c49faSVikas Manocha #define CONFIG_BOOTARGS \ 55e66c49faSVikas Manocha "console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel" 56e66c49faSVikas Manocha #define CONFIG_BOOTCOMMAND \ 57e66c49faSVikas Manocha "run bootcmd_romfs" 58e66c49faSVikas Manocha 59e66c49faSVikas Manocha #define CONFIG_EXTRA_ENV_SETTINGS \ 60e66c49faSVikas Manocha "bootargs_romfs=uclinux.physaddr=0x08180000 root=/dev/mtdblock0\0" \ 61e66c49faSVikas Manocha "bootcmd_romfs=setenv bootargs ${bootargs} ${bootargs_romfs};" \ 62e66c49faSVikas Manocha "bootm 0x08044000 - 0x08042000\0" 63e66c49faSVikas Manocha 64e66c49faSVikas Manocha 65e66c49faSVikas Manocha /* 66e66c49faSVikas Manocha * Command line configuration. 67e66c49faSVikas Manocha */ 68e66c49faSVikas Manocha #define CONFIG_SYS_LONGHELP 69e66c49faSVikas Manocha #define CONFIG_AUTO_COMPLETE 70e66c49faSVikas Manocha #define CONFIG_CMDLINE_EDITING 71e66c49faSVikas Manocha 72e66c49faSVikas Manocha #define CONFIG_CMD_MEM 73dc11d83aSVikas Manocha #define CONFIG_CMD_CACHE 742f80a9f7SVikas Manocha #define CONFIG_BOARD_LATE_INIT 75*a241c241SVikas Manocha #define CONFIG_DISPLAY_BOARDINFO 76e66c49faSVikas Manocha #endif /* __CONFIG_H */ 77