1 /*
2  * Copyright (C) 2013 Samsung Electronics
3  *
4  * Common configuration settings for the SAMSUNG EXYNOS boards.
5  *
6  * SPDX-License-Identifier:	GPL-2.0+
7  */
8 
9 #ifndef __EXYNOS_COMMON_H
10 #define __EXYNOS_COMMON_H
11 
12 /* High Level Configuration Options */
13 #define CONFIG_SAMSUNG			/* in a SAMSUNG core */
14 #define CONFIG_S5P			/* S5P Family */
15 
16 #include <asm/arch/cpu.h>		/* get chip and board defs */
17 #include <linux/sizes.h>
18 
19 #define CONFIG_SYS_GENERIC_BOARD
20 #define CONFIG_DM
21 #define CONFIG_CMD_DM
22 #define CONFIG_DM_GPIO
23 #define CONFIG_DM_SERIAL
24 
25 #define CONFIG_ARCH_CPU_INIT
26 #define CONFIG_DISPLAY_CPUINFO
27 #define CONFIG_DISPLAY_BOARDINFO
28 #define CONFIG_SKIP_LOWLEVEL_INIT
29 #define CONFIG_BOARD_EARLY_INIT_F
30 
31 /* Enable fdt support */
32 #define CONFIG_OF_LIBFDT
33 
34 /* Keep L2 Cache Disabled */
35 #define CONFIG_CMD_CACHE
36 
37 /* input clock of PLL: 24MHz input clock */
38 #define CONFIG_SYS_CLK_FREQ		24000000
39 
40 #define CONFIG_SETUP_MEMORY_TAGS
41 #define CONFIG_CMDLINE_TAG
42 #define CONFIG_INITRD_TAG
43 #define CONFIG_CMDLINE_EDITING
44 #define CONFIG_ENV_OVERWRITE
45 
46 /* Size of malloc() pool before and after relocation */
47 #define CONFIG_SYS_MALLOC_F_LEN		(1 << 10)
48 #define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + (80 << 20))
49 
50 /* select serial console configuration */
51 #define CONFIG_BAUDRATE			115200
52 
53 /* SD/MMC configuration */
54 #define CONFIG_GENERIC_MMC
55 #define CONFIG_MMC
56 #define CONFIG_S5P_SDHCI
57 #define CONFIG_SDHCI
58 #define CONFIG_DWMMC
59 #define CONFIG_EXYNOS_DWMMC
60 #define CONFIG_BOUNCE_BUFFER
61 
62 #define CONFIG_BOOTDELAY		3
63 #define CONFIG_ZERO_BOOTDELAY_CHECK
64 
65 /* PWM */
66 #define CONFIG_PWM
67 
68 /* Command definition*/
69 #include <config_cmd_default.h>
70 
71 #define CONFIG_CMD_MMC
72 #define CONFIG_CMD_EXT4
73 #define CONFIG_CMD_EXT4_WRITE
74 #define CONFIG_CMD_FAT
75 #define CONFIG_FAT_WRITE
76 
77 #define CONFIG_DOS_PARTITION
78 #define CONFIG_EFI_PARTITION
79 #define CONFIG_CMD_PART
80 #define CONFIG_PARTITION_UUIDS
81 
82 /* Miscellaneous configurable options */
83 #define CONFIG_SYS_LONGHELP		/* undef to save memory */
84 #define CONFIG_SYS_HUSH_PARSER		/* use "hush" command parser	*/
85 #define CONFIG_SYS_CBSIZE		256	/* Console I/O Buffer Size */
86 #define CONFIG_SYS_PBSIZE		384	/* Print Buffer Size */
87 #define CONFIG_SYS_MAXARGS		16	/* max number of command args */
88 
89 /* Boot Argument Buffer Size */
90 #define CONFIG_SYS_BARGSIZE		CONFIG_SYS_CBSIZE
91 
92 /* FLASH and environment organization */
93 #define CONFIG_SYS_NO_FLASH
94 #undef CONFIG_CMD_IMLS
95 
96 #endif	/* __CONFIG_H */
97