xref: /OK3568_Linux_fs/u-boot/include/configs/exynos-common.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * Copyright (C) 2013 Samsung Electronics
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * Common configuration settings for the SAMSUNG EXYNOS boards.
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * SPDX-License-Identifier:	GPL-2.0+
7*4882a593Smuzhiyun  */
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun #ifndef __EXYNOS_COMMON_H
10*4882a593Smuzhiyun #define __EXYNOS_COMMON_H
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun /* High Level Configuration Options */
13*4882a593Smuzhiyun #define CONFIG_SAMSUNG			/* in a SAMSUNG core */
14*4882a593Smuzhiyun #define CONFIG_S5P			/* S5P Family */
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun #include <asm/arch/cpu.h>		/* get chip and board defs */
17*4882a593Smuzhiyun #include <linux/sizes.h>
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun #define CONFIG_ARCH_CPU_INIT
20*4882a593Smuzhiyun #define CONFIG_SKIP_LOWLEVEL_INIT
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun /* Keep L2 Cache Disabled */
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun /* input clock of PLL: 24MHz input clock */
25*4882a593Smuzhiyun #define CONFIG_SYS_CLK_FREQ		24000000
26*4882a593Smuzhiyun #define COUNTER_FREQUENCY		CONFIG_SYS_CLK_FREQ
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #define CONFIG_SETUP_MEMORY_TAGS
29*4882a593Smuzhiyun #define CONFIG_CMDLINE_TAG
30*4882a593Smuzhiyun #define CONFIG_INITRD_TAG
31*4882a593Smuzhiyun #define CONFIG_ENV_OVERWRITE
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun /* Size of malloc() pool before and after relocation */
34*4882a593Smuzhiyun #define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + (80 << 20))
35*4882a593Smuzhiyun 
36*4882a593Smuzhiyun /* select serial console configuration */
37*4882a593Smuzhiyun 
38*4882a593Smuzhiyun /* SD/MMC configuration */
39*4882a593Smuzhiyun #define CONFIG_BOUNCE_BUFFER
40*4882a593Smuzhiyun 
41*4882a593Smuzhiyun /* PWM */
42*4882a593Smuzhiyun #define CONFIG_PWM
43*4882a593Smuzhiyun 
44*4882a593Smuzhiyun /* Miscellaneous configurable options */
45*4882a593Smuzhiyun #define CONFIG_SYS_CBSIZE		1024	/* Console I/O Buffer Size */
46*4882a593Smuzhiyun #define CONFIG_SYS_PBSIZE		1024	/* Print Buffer Size */
47*4882a593Smuzhiyun 
48*4882a593Smuzhiyun /* Boot Argument Buffer Size */
49*4882a593Smuzhiyun #define CONFIG_SYS_BARGSIZE		CONFIG_SYS_CBSIZE
50*4882a593Smuzhiyun 
51*4882a593Smuzhiyun #include <config_distro_defaults.h>
52*4882a593Smuzhiyun 
53*4882a593Smuzhiyun #endif	/* __CONFIG_H */
54