xref: /rk3399_rockchip-uboot/include/configs/exynos-common.h (revision 73186c9460761315a5a5dfd352c631ab2a022f28)
15ea01ab1SSimon Glass /*
25ea01ab1SSimon Glass  * Copyright (C) 2013 Samsung Electronics
35ea01ab1SSimon Glass  *
45ea01ab1SSimon Glass  * Common configuration settings for the SAMSUNG EXYNOS boards.
55ea01ab1SSimon Glass  *
65ea01ab1SSimon Glass  * SPDX-License-Identifier:	GPL-2.0+
75ea01ab1SSimon Glass  */
85ea01ab1SSimon Glass 
95ea01ab1SSimon Glass #ifndef __EXYNOS_COMMON_H
105ea01ab1SSimon Glass #define __EXYNOS_COMMON_H
115ea01ab1SSimon Glass 
125ea01ab1SSimon Glass /* High Level Configuration Options */
135ea01ab1SSimon Glass #define CONFIG_SAMSUNG			/* in a SAMSUNG core */
145ea01ab1SSimon Glass #define CONFIG_S5P			/* S5P Family */
155ea01ab1SSimon Glass 
165ea01ab1SSimon Glass #include <asm/arch/cpu.h>		/* get chip and board defs */
175ea01ab1SSimon Glass #include <linux/sizes.h>
185ea01ab1SSimon Glass 
195ea01ab1SSimon Glass #define CONFIG_SYS_GENERIC_BOARD
20b8809e60SSimon Glass #define CONFIG_DM
21b8809e60SSimon Glass #define CONFIG_CMD_DM
22b8809e60SSimon Glass #define CONFIG_DM_GPIO
2373e256c2SSimon Glass #define CONFIG_DM_SERIAL
24*73186c94SSimon Glass #define CONFIG_DM_SPI
25b8809e60SSimon Glass 
265ea01ab1SSimon Glass #define CONFIG_ARCH_CPU_INIT
275ea01ab1SSimon Glass #define CONFIG_DISPLAY_CPUINFO
285ea01ab1SSimon Glass #define CONFIG_DISPLAY_BOARDINFO
295ea01ab1SSimon Glass #define CONFIG_SKIP_LOWLEVEL_INIT
305ea01ab1SSimon Glass #define CONFIG_BOARD_EARLY_INIT_F
315ea01ab1SSimon Glass 
325ea01ab1SSimon Glass /* Enable fdt support */
335ea01ab1SSimon Glass #define CONFIG_OF_LIBFDT
345ea01ab1SSimon Glass 
355ea01ab1SSimon Glass /* Keep L2 Cache Disabled */
365ea01ab1SSimon Glass #define CONFIG_CMD_CACHE
375ea01ab1SSimon Glass 
385ea01ab1SSimon Glass /* input clock of PLL: 24MHz input clock */
395ea01ab1SSimon Glass #define CONFIG_SYS_CLK_FREQ		24000000
405ea01ab1SSimon Glass 
415ea01ab1SSimon Glass #define CONFIG_SETUP_MEMORY_TAGS
425ea01ab1SSimon Glass #define CONFIG_CMDLINE_TAG
435ea01ab1SSimon Glass #define CONFIG_INITRD_TAG
445ea01ab1SSimon Glass #define CONFIG_CMDLINE_EDITING
455ea01ab1SSimon Glass #define CONFIG_ENV_OVERWRITE
465ea01ab1SSimon Glass 
472ecd7797SSimon Glass /* Size of malloc() pool before and after relocation */
482ecd7797SSimon Glass #define CONFIG_SYS_MALLOC_F_LEN		(1 << 10)
492ecd7797SSimon Glass #define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + (80 << 20))
505ea01ab1SSimon Glass 
515ea01ab1SSimon Glass /* select serial console configuration */
525ea01ab1SSimon Glass #define CONFIG_BAUDRATE			115200
535ea01ab1SSimon Glass 
545ea01ab1SSimon Glass /* SD/MMC configuration */
555ea01ab1SSimon Glass #define CONFIG_GENERIC_MMC
565ea01ab1SSimon Glass #define CONFIG_MMC
575ea01ab1SSimon Glass #define CONFIG_S5P_SDHCI
585ea01ab1SSimon Glass #define CONFIG_SDHCI
595ea01ab1SSimon Glass #define CONFIG_DWMMC
605ea01ab1SSimon Glass #define CONFIG_EXYNOS_DWMMC
615ea01ab1SSimon Glass #define CONFIG_BOUNCE_BUFFER
625ea01ab1SSimon Glass 
635ea01ab1SSimon Glass #define CONFIG_BOOTDELAY		3
645ea01ab1SSimon Glass #define CONFIG_ZERO_BOOTDELAY_CHECK
655ea01ab1SSimon Glass 
665ea01ab1SSimon Glass /* PWM */
675ea01ab1SSimon Glass #define CONFIG_PWM
685ea01ab1SSimon Glass 
695ea01ab1SSimon Glass /* Command definition*/
705ea01ab1SSimon Glass #include <config_cmd_default.h>
715ea01ab1SSimon Glass 
725ea01ab1SSimon Glass #define CONFIG_CMD_MMC
735ea01ab1SSimon Glass #define CONFIG_CMD_EXT4
745ea01ab1SSimon Glass #define CONFIG_CMD_EXT4_WRITE
755ea01ab1SSimon Glass #define CONFIG_CMD_FAT
765ea01ab1SSimon Glass #define CONFIG_FAT_WRITE
775ea01ab1SSimon Glass 
785ea01ab1SSimon Glass #define CONFIG_DOS_PARTITION
795ea01ab1SSimon Glass #define CONFIG_EFI_PARTITION
805ea01ab1SSimon Glass #define CONFIG_CMD_PART
815ea01ab1SSimon Glass #define CONFIG_PARTITION_UUIDS
825ea01ab1SSimon Glass 
835ea01ab1SSimon Glass /* Miscellaneous configurable options */
845ea01ab1SSimon Glass #define CONFIG_SYS_LONGHELP		/* undef to save memory */
855ea01ab1SSimon Glass #define CONFIG_SYS_HUSH_PARSER		/* use "hush" command parser	*/
865ea01ab1SSimon Glass #define CONFIG_SYS_CBSIZE		256	/* Console I/O Buffer Size */
875ea01ab1SSimon Glass #define CONFIG_SYS_PBSIZE		384	/* Print Buffer Size */
885ea01ab1SSimon Glass #define CONFIG_SYS_MAXARGS		16	/* max number of command args */
895ea01ab1SSimon Glass 
905ea01ab1SSimon Glass /* Boot Argument Buffer Size */
915ea01ab1SSimon Glass #define CONFIG_SYS_BARGSIZE		CONFIG_SYS_CBSIZE
925ea01ab1SSimon Glass 
935ea01ab1SSimon Glass /* FLASH and environment organization */
945ea01ab1SSimon Glass #define CONFIG_SYS_NO_FLASH
955ea01ab1SSimon Glass #undef CONFIG_CMD_IMLS
965ea01ab1SSimon Glass 
975ea01ab1SSimon Glass #endif	/* __CONFIG_H */
98