• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2014 Samsung Electronics
4  *
5  * Configuration settings for the SAMSUNG EXYNOS5 board.
6  */
7 
8 #ifndef __CONFIG_EXYNOS4_COMMON_H
9 #define __CONFIG_EXYNOS4_COMMON_H
10 
11 #define CONFIG_EXYNOS4			/* Exynos4 Family */
12 
13 #include "exynos-common.h"
14 
15 #define CONFIG_BOARD_COMMON
16 
17 #define CONFIG_REVISION_TAG
18 
19 /* SD/MMC configuration */
20 #define CONFIG_MMC_DEFAULT_DEV	0
21 
22 #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
23 #define DFU_DEFAULT_POLL_TIMEOUT 300
24 
25 /* USB Samsung's IDs */
26 #define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8
27 #define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
28 #define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
29 #define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
30 
31 #define CONFIG_SYS_MONITOR_LEN		(256 << 10)	/* Reserve 2 sectors */
32 
33 #define CONFIG_USB_GADGET_DWC2_OTG_PHY
34 
35 /* Common environment variables */
36 #define CONFIG_EXTRA_ENV_ITB \
37 	"loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
38 		"${kernelname}\0" \
39 	"loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
40 		"${initrdname}\0" \
41 	"loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
42 		"${fdtfile}\0" \
43 	"check_ramdisk=" \
44 		"if run loadinitrd; then " \
45 			"setenv initrd_addr ${initrdaddr};" \
46 		"else " \
47 			"setenv initrd_addr -;" \
48 		"fi;\0" \
49 	"check_dtb=" \
50 		"if run loaddtb; then " \
51 			"setenv fdt_addr ${fdtaddr};" \
52 		"else " \
53 			"setenv fdt_addr;" \
54 		"fi;\0" \
55 	"kernel_args=" \
56 		"setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
57 		" ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
58 	"boot_fit=" \
59 		"setenv kerneladdr 0x42000000;" \
60 		"setenv kernelname Image.itb;" \
61 		"run loadkernel;" \
62 		"run kernel_args;" \
63 		"bootm ${kerneladdr}#${board_name}\0" \
64 	"boot_uimg=" \
65 		"setenv kerneladdr 0x40007FC0;" \
66 		"setenv kernelname uImage;" \
67 		"run check_dtb;" \
68 		"run check_ramdisk;" \
69 		"run loadkernel;" \
70 		"run kernel_args;" \
71 		"bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
72 	"boot_zimg=" \
73 		"setenv kerneladdr 0x40007FC0;" \
74 		"setenv kernelname zImage;" \
75 		"run check_dtb;" \
76 		"run check_ramdisk;" \
77 		"run loadkernel;" \
78 		"run kernel_args;" \
79 		"bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
80 	"autoboot=" \
81 		"if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
82 			"run boot_fit;" \
83 		"elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
84 			"run boot_zimg;" \
85 		"elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
86 			"run boot_uimg;" \
87 		"fi;\0"
88 
89 #endif	/* __CONFIG_EXYNOS4_COMMON_H */
90