2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2014-03-07 13:59:43 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Samsung Electronics
|
|
|
|
*
|
|
|
|
* Configuration settings for the SAMSUNG EXYNOS5 board.
|
|
|
|
*/
|
|
|
|
|
2014-10-08 04:01:44 +00:00
|
|
|
#ifndef __CONFIG_EXYNOS4_COMMON_H
|
|
|
|
#define __CONFIG_EXYNOS4_COMMON_H
|
2014-03-07 13:59:43 +00:00
|
|
|
|
2014-10-08 04:01:45 +00:00
|
|
|
#define CONFIG_EXYNOS4 /* Exynos4 Family */
|
2014-03-07 13:59:43 +00:00
|
|
|
|
2014-10-08 04:01:45 +00:00
|
|
|
#include "exynos-common.h"
|
2014-03-07 13:59:43 +00:00
|
|
|
|
2014-10-08 04:01:48 +00:00
|
|
|
#define CONFIG_BOARD_COMMON
|
|
|
|
|
2014-03-07 13:59:43 +00:00
|
|
|
/* SD/MMC configuration */
|
|
|
|
#define CONFIG_MMC_DEFAULT_DEV 0
|
|
|
|
|
|
|
|
#define DFU_DEFAULT_POLL_TIMEOUT 300
|
|
|
|
|
|
|
|
/* USB Samsung's IDs */
|
2016-04-13 11:20:30 +00:00
|
|
|
#define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8
|
2014-03-07 13:59:43 +00:00
|
|
|
#define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
|
2014-07-29 09:10:44 +00:00
|
|
|
#define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
|
|
|
|
#define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
|
2014-03-07 13:59:43 +00:00
|
|
|
|
|
|
|
#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */
|
|
|
|
|
2015-08-19 21:27:26 +00:00
|
|
|
#define CONFIG_USB_GADGET_DWC2_OTG_PHY
|
2014-03-07 13:59:43 +00:00
|
|
|
|
2015-04-01 10:34:28 +00:00
|
|
|
/* Common environment variables */
|
2021-08-10 21:34:22 +00:00
|
|
|
#define ENV_ITB \
|
2015-04-01 10:34:28 +00:00
|
|
|
"loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
|
|
|
|
"${kernelname}\0" \
|
|
|
|
"loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
|
|
|
|
"${initrdname}\0" \
|
|
|
|
"loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
|
|
|
|
"${fdtfile}\0" \
|
|
|
|
"check_ramdisk=" \
|
|
|
|
"if run loadinitrd; then " \
|
|
|
|
"setenv initrd_addr ${initrdaddr};" \
|
|
|
|
"else " \
|
|
|
|
"setenv initrd_addr -;" \
|
|
|
|
"fi;\0" \
|
|
|
|
"check_dtb=" \
|
|
|
|
"if run loaddtb; then " \
|
|
|
|
"setenv fdt_addr ${fdtaddr};" \
|
|
|
|
"else " \
|
|
|
|
"setenv fdt_addr;" \
|
|
|
|
"fi;\0" \
|
|
|
|
"kernel_args=" \
|
|
|
|
"setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
|
|
|
|
" ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
|
|
|
|
"boot_fit=" \
|
|
|
|
"setenv kerneladdr 0x42000000;" \
|
|
|
|
"setenv kernelname Image.itb;" \
|
|
|
|
"run loadkernel;" \
|
|
|
|
"run kernel_args;" \
|
|
|
|
"bootm ${kerneladdr}#${board_name}\0" \
|
|
|
|
"boot_uimg=" \
|
|
|
|
"setenv kerneladdr 0x40007FC0;" \
|
|
|
|
"setenv kernelname uImage;" \
|
|
|
|
"run check_dtb;" \
|
|
|
|
"run check_ramdisk;" \
|
|
|
|
"run loadkernel;" \
|
|
|
|
"run kernel_args;" \
|
|
|
|
"bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
|
|
|
|
"boot_zimg=" \
|
|
|
|
"setenv kerneladdr 0x40007FC0;" \
|
|
|
|
"setenv kernelname zImage;" \
|
|
|
|
"run check_dtb;" \
|
|
|
|
"run check_ramdisk;" \
|
|
|
|
"run loadkernel;" \
|
|
|
|
"run kernel_args;" \
|
|
|
|
"bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
|
|
|
|
"autoboot=" \
|
|
|
|
"if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
|
|
|
|
"run boot_fit;" \
|
|
|
|
"elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
|
|
|
|
"run boot_zimg;" \
|
|
|
|
"elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
|
|
|
|
"run boot_uimg;" \
|
|
|
|
"fi;\0"
|
|
|
|
|
2014-10-08 04:01:44 +00:00
|
|
|
#endif /* __CONFIG_EXYNOS4_COMMON_H */
|