1ed09a554Srev13@wp.pl /* 2ed09a554Srev13@wp.pl * (C) Copyright 2015 366562414SKamil Lulko * Kamil Lulko, <kamil.lulko@gmail.com> 4ed09a554Srev13@wp.pl * 5ed09a554Srev13@wp.pl * SPDX-License-Identifier: GPL-2.0+ 6ed09a554Srev13@wp.pl */ 7ed09a554Srev13@wp.pl 8ed09a554Srev13@wp.pl #ifndef __CONFIG_H 9ed09a554Srev13@wp.pl #define __CONFIG_H 10ed09a554Srev13@wp.pl 11ed09a554Srev13@wp.pl #define CONFIG_STM32F4DISCOVERY 12ed09a554Srev13@wp.pl 13089fddfdSAntonio Borneo #define CONFIG_MISC_INIT_R 14ed09a554Srev13@wp.pl 15ed09a554Srev13@wp.pl #define CONFIG_SYS_FLASH_BASE 0x08000000 16ed09a554Srev13@wp.pl 17ed09a554Srev13@wp.pl #define CONFIG_SYS_INIT_SP_ADDR 0x10010000 18ed09a554Srev13@wp.pl #define CONFIG_SYS_TEXT_BASE 0x08000000 19ed09a554Srev13@wp.pl 20ed09a554Srev13@wp.pl #define CONFIG_SYS_ICACHE_OFF 21ed09a554Srev13@wp.pl #define CONFIG_SYS_DCACHE_OFF 22ed09a554Srev13@wp.pl 23ed09a554Srev13@wp.pl /* 24ed09a554Srev13@wp.pl * Configuration of the external SDRAM memory 25ed09a554Srev13@wp.pl */ 26ed09a554Srev13@wp.pl #define CONFIG_NR_DRAM_BANKS 1 27ed09a554Srev13@wp.pl #define CONFIG_SYS_RAM_SIZE (8 << 20) 28ed09a554Srev13@wp.pl #define CONFIG_SYS_RAM_CS 1 29ed09a554Srev13@wp.pl #define CONFIG_SYS_RAM_FREQ_DIV 2 30ed09a554Srev13@wp.pl #define CONFIG_SYS_RAM_BASE 0xD0000000 31ed09a554Srev13@wp.pl #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_RAM_BASE 32ed09a554Srev13@wp.pl #define CONFIG_SYS_LOAD_ADDR 0xD0400000 33ed09a554Srev13@wp.pl #define CONFIG_LOADADDR 0xD0400000 34ed09a554Srev13@wp.pl 35ed09a554Srev13@wp.pl #define CONFIG_SYS_MAX_FLASH_SECT 12 36ed09a554Srev13@wp.pl #define CONFIG_SYS_MAX_FLASH_BANKS 2 37ed09a554Srev13@wp.pl 38ed09a554Srev13@wp.pl #define CONFIG_ENV_OFFSET (256 << 10) 39ed09a554Srev13@wp.pl #define CONFIG_ENV_SECT_SIZE (128 << 10) 40ed09a554Srev13@wp.pl #define CONFIG_ENV_SIZE (8 << 10) 41ed09a554Srev13@wp.pl 42ed09a554Srev13@wp.pl #define CONFIG_RED_LED 110 43ed09a554Srev13@wp.pl #define CONFIG_GREEN_LED 109 44ed09a554Srev13@wp.pl 45ed09a554Srev13@wp.pl #define CONFIG_STM32_GPIO 46*9ecb0c41SVikas Manocha #define CONFIG_STM32_FLASH 47ed09a554Srev13@wp.pl #define CONFIG_STM32_SERIAL 48ed09a554Srev13@wp.pl 49ed09a554Srev13@wp.pl #define CONFIG_STM32_HSE_HZ 8000000 50ed09a554Srev13@wp.pl 51f9fa4a25SAntonio Borneo #define CONFIG_SYS_CLK_FREQ 180000000 /* 180 MHz */ 52f9fa4a25SAntonio Borneo 53ed09a554Srev13@wp.pl #define CONFIG_SYS_HZ_CLOCK 1000000 /* Timer is clocked at 1MHz */ 54ed09a554Srev13@wp.pl 55ed09a554Srev13@wp.pl #define CONFIG_CMDLINE_TAG 56ed09a554Srev13@wp.pl #define CONFIG_SETUP_MEMORY_TAGS 57ed09a554Srev13@wp.pl #define CONFIG_INITRD_TAG 58ed09a554Srev13@wp.pl #define CONFIG_REVISION_TAG 59ed09a554Srev13@wp.pl 60ed09a554Srev13@wp.pl #define CONFIG_SYS_CBSIZE 1024 61ed09a554Srev13@wp.pl 62ed09a554Srev13@wp.pl #define CONFIG_SYS_MALLOC_LEN (2 << 20) 63ed09a554Srev13@wp.pl 64ed09a554Srev13@wp.pl #define CONFIG_BOOTCOMMAND \ 65ed09a554Srev13@wp.pl "run bootcmd_romfs" 66ed09a554Srev13@wp.pl 67ed09a554Srev13@wp.pl #define CONFIG_EXTRA_ENV_SETTINGS \ 68ed09a554Srev13@wp.pl "bootargs_romfs=uclinux.physaddr=0x08180000 root=/dev/mtdblock0\0" \ 69ed09a554Srev13@wp.pl "bootcmd_romfs=setenv bootargs ${bootargs} ${bootargs_romfs};" \ 70ed09a554Srev13@wp.pl "bootm 0x08044000 - 0x08042000\0" 71ed09a554Srev13@wp.pl 72ed09a554Srev13@wp.pl /* 73ed09a554Srev13@wp.pl * Command line configuration. 74ed09a554Srev13@wp.pl */ 75ed09a554Srev13@wp.pl #define CONFIG_SYS_LONGHELP 76ed09a554Srev13@wp.pl #define CONFIG_AUTO_COMPLETE 77ed09a554Srev13@wp.pl #define CONFIG_CMDLINE_EDITING 78ed09a554Srev13@wp.pl 79ed09a554Srev13@wp.pl #endif /* __CONFIG_H */ 80