1e21185baSChander Kashyap /* 2e21185baSChander Kashyap * Copyright (C) 2011 Samsung Electronics 3e21185baSChander Kashyap * 4393cb361SChander Kashyap * Configuration settings for the SAMSUNG SMDKV310 (EXYNOS4210) board. 5e21185baSChander Kashyap * 6e21185baSChander Kashyap * See file CREDITS for list of people who contributed to this 7e21185baSChander Kashyap * project. 8e21185baSChander Kashyap * 9e21185baSChander Kashyap * This program is free software; you can redistribute it and/or 10e21185baSChander Kashyap * modify it under the terms of the GNU General Public License as 11e21185baSChander Kashyap * published by the Free Software Foundation; either version 2 of 12e21185baSChander Kashyap * the License, or (at your option) any later version. 13e21185baSChander Kashyap * 14e21185baSChander Kashyap * This program is distributed in the hope that it will be useful, 15e21185baSChander Kashyap * but WITHOUT ANY WARRANTY; without even the implied warranty of 16e21185baSChander Kashyap * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17e21185baSChander Kashyap * GNU General Public License for more details. 18e21185baSChander Kashyap * 19e21185baSChander Kashyap * You should have received a copy of the GNU General Public License 20e21185baSChander Kashyap * along with this program; if not, write to the Free Software 21e21185baSChander Kashyap * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 22e21185baSChander Kashyap * MA 02111-1307 USA 23e21185baSChander Kashyap */ 24e21185baSChander Kashyap 25e21185baSChander Kashyap #ifndef __CONFIG_H 26e21185baSChander Kashyap #define __CONFIG_H 27e21185baSChander Kashyap 28e21185baSChander Kashyap /* High Level Configuration Options */ 29e21185baSChander Kashyap #define CONFIG_SAMSUNG 1 /* in a SAMSUNG core */ 30e21185baSChander Kashyap #define CONFIG_S5P 1 /* S5P Family */ 31393cb361SChander Kashyap #define CONFIG_EXYNOS4210 1 /* which is a EXYNOS4210 SoC */ 32e21185baSChander Kashyap #define CONFIG_SMDKV310 1 /* working with SMDKV310*/ 33e21185baSChander Kashyap 34e21185baSChander Kashyap #include <asm/arch/cpu.h> /* get chip and board defs */ 35e21185baSChander Kashyap 36e21185baSChander Kashyap #define CONFIG_ARCH_CPU_INIT 37e21185baSChander Kashyap #define CONFIG_DISPLAY_CPUINFO 38e21185baSChander Kashyap #define CONFIG_DISPLAY_BOARDINFO 39e21185baSChander Kashyap 40b3c5a49bSChander Kashyap /* Mach Type */ 41b3c5a49bSChander Kashyap #define CONFIG_MACH_TYPE MACH_TYPE_SMDKV310 42b3c5a49bSChander Kashyap 43e21185baSChander Kashyap /* Keep L2 Cache Disabled */ 44e21185baSChander Kashyap #define CONFIG_L2_OFF 1 45e21185baSChander Kashyap 46e21185baSChander Kashyap #define CONFIG_SYS_SDRAM_BASE 0x40000000 47e21185baSChander Kashyap #define CONFIG_SYS_TEXT_BASE 0x43E00000 48e21185baSChander Kashyap 49e21185baSChander Kashyap /* input clock of PLL: SMDKV310 has 24MHz input clock */ 50e21185baSChander Kashyap #define CONFIG_SYS_CLK_FREQ 24000000 51e21185baSChander Kashyap 52e21185baSChander Kashyap #define CONFIG_SETUP_MEMORY_TAGS 53e21185baSChander Kashyap #define CONFIG_CMDLINE_TAG 54e21185baSChander Kashyap #define CONFIG_INITRD_TAG 55e21185baSChander Kashyap #define CONFIG_CMDLINE_EDITING 56e21185baSChander Kashyap 57e21185baSChander Kashyap /* Handling Sleep Mode*/ 58e21185baSChander Kashyap #define S5P_CHECK_SLEEP 0x00000BAD 59e21185baSChander Kashyap #define S5P_CHECK_DIDLE 0xBAD00000 60e21185baSChander Kashyap 61e21185baSChander Kashyap /* Size of malloc() pool */ 62e21185baSChander Kashyap #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (1 << 20)) 63e21185baSChander Kashyap 64e21185baSChander Kashyap /* select serial console configuration */ 65e21185baSChander Kashyap #define CONFIG_SERIAL1 1 /* use SERIAL 1 */ 66e21185baSChander Kashyap #define CONFIG_BAUDRATE 115200 67393cb361SChander Kashyap #define EXYNOS4_DEFAULT_UART_OFFSET 0x010000 68e21185baSChander Kashyap 69e21185baSChander Kashyap /* SD/MMC configuration */ 707d2d58b4SJaehoon Chung #define CONFIG_GENERIC_MMC 717d2d58b4SJaehoon Chung #define CONFIG_MMC 727d2d58b4SJaehoon Chung #define CONFIG_SDHCI 737d2d58b4SJaehoon Chung #define CONFIG_S5P_SDHCI 74e21185baSChander Kashyap 75e21185baSChander Kashyap /* PWM */ 76e21185baSChander Kashyap #define CONFIG_PWM 1 77e21185baSChander Kashyap 78e21185baSChander Kashyap /* allow to overwrite serial and ethaddr */ 79e21185baSChander Kashyap #define CONFIG_ENV_OVERWRITE 80e21185baSChander Kashyap 81e21185baSChander Kashyap /* Command definition*/ 82e21185baSChander Kashyap #include <config_cmd_default.h> 83e21185baSChander Kashyap 84e21185baSChander Kashyap #define CONFIG_CMD_PING 85e21185baSChander Kashyap #define CONFIG_CMD_ELF 86e21185baSChander Kashyap #define CONFIG_CMD_DHCP 87e21185baSChander Kashyap #define CONFIG_CMD_MMC 88e21185baSChander Kashyap #define CONFIG_CMD_NET 89e21185baSChander Kashyap #define CONFIG_CMD_FAT 90e21185baSChander Kashyap 91e21185baSChander Kashyap #define CONFIG_BOOTDELAY 3 92e21185baSChander Kashyap #define CONFIG_ZERO_BOOTDELAY_CHECK 935187d8ddSChander Kashyap 945187d8ddSChander Kashyap /* MMC SPL */ 955187d8ddSChander Kashyap #define CONFIG_SPL 969b3ab1c9SChander Kashyap #define COPY_BL2_FNPTR_ADDR 0x00002488 97e21185baSChander Kashyap 98*8a00061eSInderpal Singh #define CONFIG_SPL_TEXT_BASE 0x02021410 99*8a00061eSInderpal Singh 100e21185baSChander Kashyap #define CONFIG_BOOTCOMMAND "fatload mmc 0 40007000 uImage; bootm 40007000" 101e21185baSChander Kashyap 102e21185baSChander Kashyap /* Miscellaneous configurable options */ 103e21185baSChander Kashyap #define CONFIG_SYS_LONGHELP /* undef to save memory */ 104e21185baSChander Kashyap #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ 105e21185baSChander Kashyap #define CONFIG_SYS_PROMPT "SMDKV310 # " 106e21185baSChander Kashyap #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size*/ 107e21185baSChander Kashyap #define CONFIG_SYS_PBSIZE 384 /* Print Buffer Size */ 108e21185baSChander Kashyap #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ 109e21185baSChander Kashyap #define CONFIG_DEFAULT_CONSOLE "console=ttySAC2,115200n8\0" 110e21185baSChander Kashyap /* Boot Argument Buffer Size */ 111e21185baSChander Kashyap #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE 112e21185baSChander Kashyap /* memtest works on */ 113e21185baSChander Kashyap #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE 114e21185baSChander Kashyap #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x6000000) 115e21185baSChander Kashyap #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x3E00000) 116e21185baSChander Kashyap 117e21185baSChander Kashyap #define CONFIG_SYS_HZ 1000 118e21185baSChander Kashyap 119e21185baSChander Kashyap /* SMDKV310 has 4 bank of DRAM */ 120e21185baSChander Kashyap #define CONFIG_NR_DRAM_BANKS 4 121e21185baSChander Kashyap #define SDRAM_BANK_SIZE (512UL << 20UL) /* 512 MB */ 122e21185baSChander Kashyap #define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE 123e21185baSChander Kashyap #define PHYS_SDRAM_1_SIZE SDRAM_BANK_SIZE 124e21185baSChander Kashyap #define PHYS_SDRAM_2 (CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE) 125e21185baSChander Kashyap #define PHYS_SDRAM_2_SIZE SDRAM_BANK_SIZE 126e21185baSChander Kashyap #define PHYS_SDRAM_3 (CONFIG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE)) 127e21185baSChander Kashyap #define PHYS_SDRAM_3_SIZE SDRAM_BANK_SIZE 128e21185baSChander Kashyap #define PHYS_SDRAM_4 (CONFIG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE)) 129e21185baSChander Kashyap #define PHYS_SDRAM_4_SIZE SDRAM_BANK_SIZE 130e21185baSChander Kashyap 131e21185baSChander Kashyap /* FLASH and environment organization */ 132e21185baSChander Kashyap #define CONFIG_SYS_NO_FLASH 1 133e21185baSChander Kashyap #undef CONFIG_CMD_IMLS 134e21185baSChander Kashyap #define CONFIG_IDENT_STRING " for SMDKC210/V310" 135e21185baSChander Kashyap 136e21185baSChander Kashyap #define CONFIG_CLK_1000_400_200 137e21185baSChander Kashyap 138e21185baSChander Kashyap /* MIU (Memory Interleaving Unit) */ 139e21185baSChander Kashyap #define CONFIG_MIU_2BIT_INTERLEAVED 140e21185baSChander Kashyap 141e21185baSChander Kashyap #define CONFIG_ENV_IS_IN_MMC 1 142e21185baSChander Kashyap #define CONFIG_SYS_MMC_ENV_DEV 0 143e21185baSChander Kashyap #define CONFIG_ENV_SIZE (16 << 10) /* 16 KB */ 144e21185baSChander Kashyap #define RESERVE_BLOCK_SIZE (512) 145e21185baSChander Kashyap #define BL1_SIZE (16 << 10) /*16 K reserved for BL1*/ 146e21185baSChander Kashyap #define CONFIG_ENV_OFFSET (RESERVE_BLOCK_SIZE + BL1_SIZE) 147e21185baSChander Kashyap #define CONFIG_DOS_PARTITION 1 148e21185baSChander Kashyap 149e21185baSChander Kashyap #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_LOAD_ADDR - GENERATED_GBL_DATA_SIZE) 150e21185baSChander Kashyap 151e21185baSChander Kashyap /* U-boot copy size from boot Media to DRAM.*/ 152e21185baSChander Kashyap #define COPY_BL2_SIZE 0x80000 153e21185baSChander Kashyap #define BL2_START_OFFSET ((CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)/512) 154e21185baSChander Kashyap #define BL2_SIZE_BLOC_COUNT (COPY_BL2_SIZE/512) 155e21185baSChander Kashyap 156e21185baSChander Kashyap /* Ethernet Controllor Driver */ 157e21185baSChander Kashyap #ifdef CONFIG_CMD_NET 158e21185baSChander Kashyap #define CONFIG_SMC911X 159e21185baSChander Kashyap #define CONFIG_SMC911X_BASE 0x5000000 160e21185baSChander Kashyap #define CONFIG_SMC911X_16_BIT 161e21185baSChander Kashyap #define CONFIG_ENV_SROM_BANK 1 162e21185baSChander Kashyap #endif /*CONFIG_CMD_NET*/ 16307407d97SThomas Abraham 16407407d97SThomas Abraham /* Enable devicetree support */ 16507407d97SThomas Abraham #define CONFIG_OF_LIBFDT 166e21185baSChander Kashyap #endif /* __CONFIG_H */ 167