blob: a0f4aa87909dbd4e884e1e025e52de8151fbd09a [file] [log] [blame]
Piotr Wilczek942d0a92014-03-07 14:59:43 +01001/*
2 * Copyright (C) 2014 Samsung Electronics
3 *
4 * Configuration settings for the SAMSUNG EXYNOS5 board.
5 *
6 * SPDX-License-Identifier: GPL-2.0+
7 */
8
Simon Glassbe165002014-10-07 22:01:44 -06009#ifndef __CONFIG_EXYNOS4_COMMON_H
10#define __CONFIG_EXYNOS4_COMMON_H
Piotr Wilczek942d0a92014-03-07 14:59:43 +010011
Simon Glass14e27ab2014-10-07 22:01:45 -060012#define CONFIG_EXYNOS4 /* Exynos4 Family */
Piotr Wilczek942d0a92014-03-07 14:59:43 +010013
Simon Glass14e27ab2014-10-07 22:01:45 -060014#include "exynos-common.h"
Piotr Wilczek942d0a92014-03-07 14:59:43 +010015
Simon Glass50dfd2c2014-10-07 22:01:48 -060016#define CONFIG_BOARD_COMMON
17
Piotr Wilczek942d0a92014-03-07 14:59:43 +010018#define CONFIG_SYS_CACHELINE_SIZE 32
Piotr Wilczek942d0a92014-03-07 14:59:43 +010019#define CONFIG_REVISION_TAG
Piotr Wilczek942d0a92014-03-07 14:59:43 +010020
21/* SD/MMC configuration */
Piotr Wilczek942d0a92014-03-07 14:59:43 +010022#define CONFIG_MMC_SDMA
23#define CONFIG_MMC_DEFAULT_DEV 0
24
Piotr Wilczek942d0a92014-03-07 14:59:43 +010025#undef CONFIG_CMD_ONENAND
26#undef CONFIG_CMD_MTDPARTS
Piotr Wilczek942d0a92014-03-07 14:59:43 +010027#define CONFIG_CMD_DFU
28#define CONFIG_CMD_GPT
Piotr Wilczek942d0a92014-03-07 14:59:43 +010029
Piotr Wilczek942d0a92014-03-07 14:59:43 +010030/* TIZEN THOR downloader support */
31#define CONFIG_CMD_THOR_DOWNLOAD
Paul Kocialkowski045d6052015-06-12 19:56:58 +020032#define CONFIG_USB_FUNCTION_THOR
Piotr Wilczek942d0a92014-03-07 14:59:43 +010033
Paul Kocialkowski045d6052015-06-12 19:56:58 +020034#define CONFIG_USB_FUNCTION_DFU
Piotr Wilczek942d0a92014-03-07 14:59:43 +010035#define CONFIG_DFU_MMC
36#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
37#define DFU_DEFAULT_POLL_TIMEOUT 300
38
39/* USB Samsung's IDs */
40#define CONFIG_G_DNL_VENDOR_NUM 0x04E8
41#define CONFIG_G_DNL_PRODUCT_NUM 0x6601
42#define CONFIG_G_DNL_THOR_VENDOR_NUM CONFIG_G_DNL_VENDOR_NUM
43#define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
Lukasz Majewskicb7ff442014-07-29 11:10:44 +020044#define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
45#define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
Piotr Wilczek942d0a92014-03-07 14:59:43 +010046#define CONFIG_G_DNL_MANUFACTURER "Samsung"
47
Piotr Wilczek942d0a92014-03-07 14:59:43 +010048#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */
49
Marek Vasutbc623f22015-08-19 23:27:26 +020050#define CONFIG_USB_GADGET_DWC2_OTG_PHY
Piotr Wilczek942d0a92014-03-07 14:59:43 +010051
52#define CONFIG_CMD_USB_MASS_STORAGE
Paul Kocialkowski045d6052015-06-12 19:56:58 +020053#define CONFIG_USB_FUNCTION_MASS_STORAGE
Piotr Wilczek942d0a92014-03-07 14:59:43 +010054
Ɓukasz Majewskie8cbc042015-04-01 12:34:28 +020055/* Common environment variables */
56#define CONFIG_EXTRA_ENV_ITB \
57 "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
58 "${kernelname}\0" \
59 "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
60 "${initrdname}\0" \
61 "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
62 "${fdtfile}\0" \
63 "check_ramdisk=" \
64 "if run loadinitrd; then " \
65 "setenv initrd_addr ${initrdaddr};" \
66 "else " \
67 "setenv initrd_addr -;" \
68 "fi;\0" \
69 "check_dtb=" \
70 "if run loaddtb; then " \
71 "setenv fdt_addr ${fdtaddr};" \
72 "else " \
73 "setenv fdt_addr;" \
74 "fi;\0" \
75 "kernel_args=" \
76 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
77 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
78 "boot_fit=" \
79 "setenv kerneladdr 0x42000000;" \
80 "setenv kernelname Image.itb;" \
81 "run loadkernel;" \
82 "run kernel_args;" \
83 "bootm ${kerneladdr}#${board_name}\0" \
84 "boot_uimg=" \
85 "setenv kerneladdr 0x40007FC0;" \
86 "setenv kernelname uImage;" \
87 "run check_dtb;" \
88 "run check_ramdisk;" \
89 "run loadkernel;" \
90 "run kernel_args;" \
91 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
92 "boot_zimg=" \
93 "setenv kerneladdr 0x40007FC0;" \
94 "setenv kernelname zImage;" \
95 "run check_dtb;" \
96 "run check_ramdisk;" \
97 "run loadkernel;" \
98 "run kernel_args;" \
99 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
100 "autoboot=" \
101 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
102 "run boot_fit;" \
103 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
104 "run boot_zimg;" \
105 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
106 "run boot_uimg;" \
107 "fi;\0"
108
Simon Glassbe165002014-10-07 22:01:44 -0600109#endif /* __CONFIG_EXYNOS4_COMMON_H */