2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2013-09-20 13:01:27 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013 Samsung Electronics
|
|
|
|
* Sanghee Kim <sh0130.kim@samsung.com>
|
|
|
|
* Piotr Wilczek <p.wilczek@samsung.com>
|
|
|
|
*
|
|
|
|
* Configuation settings for the SAMSUNG TRATS2 (EXYNOS4412) board.
|
|
|
|
*/
|
|
|
|
|
2014-03-07 13:59:49 +00:00
|
|
|
#ifndef __CONFIG_TRATS2_H
|
|
|
|
#define __CONFIG_TRATS2_H
|
2013-09-20 13:01:27 +00:00
|
|
|
|
2014-10-08 04:01:44 +00:00
|
|
|
#include <configs/exynos4-common.h>
|
2013-09-20 13:01:27 +00:00
|
|
|
|
2014-03-07 13:59:49 +00:00
|
|
|
#define CONFIG_TIZEN /* TIZEN lib */
|
2013-09-20 13:01:27 +00:00
|
|
|
|
2014-01-14 07:02:26 +00:00
|
|
|
#define CONFIG_SYS_L2CACHE_OFF
|
2013-09-20 13:01:27 +00:00
|
|
|
#ifndef CONFIG_SYS_L2CACHE_OFF
|
|
|
|
#define CONFIG_SYS_L2_PL310
|
|
|
|
#define CONFIG_SYS_PL310_BASE 0x10502000
|
|
|
|
#endif
|
|
|
|
|
2014-03-07 13:59:49 +00:00
|
|
|
/* TRATS2 has 4 banks of DRAM */
|
|
|
|
#define CONFIG_SYS_SDRAM_BASE 0x40000000
|
|
|
|
#define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE
|
|
|
|
#define SDRAM_BANK_SIZE (256 << 20) /* 256 MB */
|
|
|
|
/* memtest works on */
|
|
|
|
#define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x3E00000)
|
2013-09-20 13:01:27 +00:00
|
|
|
|
|
|
|
/* select serial console configuration */
|
|
|
|
|
2014-03-07 13:59:49 +00:00
|
|
|
/* Console configuration */
|
2013-09-20 13:01:27 +00:00
|
|
|
|
2015-04-01 10:34:30 +00:00
|
|
|
#define CONFIG_BOOTCOMMAND "run autoboot"
|
2018-11-20 05:54:39 +00:00
|
|
|
#define CONFIG_DEFAULT_CONSOLE "console=ttySAC2,115200n8\0"
|
2013-09-20 13:01:27 +00:00
|
|
|
|
2014-03-07 13:59:49 +00:00
|
|
|
#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_LOAD_ADDR \
|
|
|
|
- GENERATED_GBL_DATA_SIZE)
|
2013-09-20 13:01:27 +00:00
|
|
|
|
2014-03-07 13:59:49 +00:00
|
|
|
#define CONFIG_SYS_MEM_TOP_HIDE (1 << 20) /* ram console */
|
|
|
|
|
|
|
|
#define CONFIG_SYS_MONITOR_BASE 0x00000000
|
|
|
|
|
|
|
|
#define CONFIG_SYS_MMC_ENV_DEV CONFIG_MMC_DEFAULT_DEV
|
2013-09-20 13:01:27 +00:00
|
|
|
|
|
|
|
#define CONFIG_ENV_OVERWRITE
|
|
|
|
|
|
|
|
/* Tizen - partitions definitions */
|
2014-02-28 17:53:36 +00:00
|
|
|
#define PARTS_CSA "csa-mmc"
|
2013-09-20 13:01:27 +00:00
|
|
|
#define PARTS_BOOT "boot"
|
2014-02-28 17:53:36 +00:00
|
|
|
#define PARTS_QBOOT "qboot"
|
2013-11-27 10:11:02 +00:00
|
|
|
#define PARTS_CSC "csc"
|
2013-09-20 13:01:27 +00:00
|
|
|
#define PARTS_ROOT "platform"
|
|
|
|
#define PARTS_DATA "data"
|
|
|
|
#define PARTS_UMS "ums"
|
|
|
|
|
|
|
|
#define PARTS_DEFAULT \
|
2013-12-30 08:40:40 +00:00
|
|
|
"uuid_disk=${uuid_gpt_disk};" \
|
2013-11-27 10:11:02 +00:00
|
|
|
"name="PARTS_CSA",start=5MiB,size=8MiB,uuid=${uuid_gpt_"PARTS_CSA"};" \
|
2014-02-28 17:53:36 +00:00
|
|
|
"name="PARTS_BOOT",size=60MiB,uuid=${uuid_gpt_"PARTS_BOOT"};" \
|
|
|
|
"name="PARTS_QBOOT",size=100MiB,uuid=${uuid_gpt_"PARTS_QBOOT"};" \
|
2013-09-20 13:01:27 +00:00
|
|
|
"name="PARTS_CSC",size=150MiB,uuid=${uuid_gpt_"PARTS_CSC"};" \
|
2013-11-27 10:11:02 +00:00
|
|
|
"name="PARTS_ROOT",size=1536MiB,uuid=${uuid_gpt_"PARTS_ROOT"};" \
|
2014-02-28 17:53:36 +00:00
|
|
|
"name="PARTS_DATA",size=3000MiB,uuid=${uuid_gpt_"PARTS_DATA"};" \
|
2013-09-20 13:01:27 +00:00
|
|
|
"name="PARTS_UMS",size=-,uuid=${uuid_gpt_"PARTS_UMS"}\0" \
|
|
|
|
|
2013-11-12 14:22:46 +00:00
|
|
|
#define CONFIG_DFU_ALT \
|
2014-04-28 19:13:25 +00:00
|
|
|
"u-boot raw 0x80 0x800;" \
|
2014-07-22 08:17:06 +00:00
|
|
|
"/uImage ext4 0 2;" \
|
|
|
|
"/modem.bin ext4 0 2;" \
|
|
|
|
"/exynos4412-trats2.dtb ext4 0 2;" \
|
2014-02-28 17:53:36 +00:00
|
|
|
""PARTS_CSA" part 0 1;" \
|
2014-01-14 07:02:24 +00:00
|
|
|
""PARTS_BOOT" part 0 2;" \
|
2014-02-28 17:53:36 +00:00
|
|
|
""PARTS_QBOOT" part 0 3;" \
|
|
|
|
""PARTS_CSC" part 0 4;" \
|
2014-01-14 07:02:24 +00:00
|
|
|
""PARTS_ROOT" part 0 5;" \
|
|
|
|
""PARTS_DATA" part 0 6;" \
|
2014-01-22 11:02:47 +00:00
|
|
|
""PARTS_UMS" part 0 7;" \
|
2015-04-01 10:34:30 +00:00
|
|
|
"params.bin raw 0x38 0x8;" \
|
|
|
|
"/Image.itb ext4 0 2\0"
|
2013-11-12 14:22:46 +00:00
|
|
|
|
2013-09-20 13:01:27 +00:00
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
"bootk=" \
|
2014-01-22 14:54:37 +00:00
|
|
|
"run loaduimage;" \
|
|
|
|
"if run loaddtb; then " \
|
|
|
|
"bootm 0x40007FC0 - ${fdtaddr};" \
|
|
|
|
"fi;" \
|
|
|
|
"bootm 0x40007FC0;\0" \
|
2013-09-20 13:01:27 +00:00
|
|
|
"updatebackup=" \
|
2014-04-30 00:09:15 +00:00
|
|
|
"mmc dev 0 2; mmc write 0x51000000 0 0x800;" \
|
|
|
|
" mmc dev 0 0\0" \
|
2013-09-20 13:01:27 +00:00
|
|
|
"updatebootb=" \
|
2014-04-30 00:09:15 +00:00
|
|
|
"mmc read 0x51000000 0x80 0x800; run updatebackup\0" \
|
2013-09-20 13:01:27 +00:00
|
|
|
"mmcboot=" \
|
|
|
|
"setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart} " \
|
|
|
|
"${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo}; " \
|
2014-01-22 14:54:37 +00:00
|
|
|
"run bootk\0" \
|
2013-09-20 13:01:27 +00:00
|
|
|
"bootchart=set opts init=/sbin/bootchartd; run bootcmd\0" \
|
|
|
|
"boottrace=setenv opts initcall_debug; run bootcmd\0" \
|
|
|
|
"verify=n\0" \
|
|
|
|
"rootfstype=ext4\0" \
|
2018-11-20 05:54:39 +00:00
|
|
|
"console=" CONFIG_DEFAULT_CONSOLE \
|
2013-09-20 13:01:27 +00:00
|
|
|
"kernelname=uImage\0" \
|
2013-11-27 10:11:00 +00:00
|
|
|
"loaduimage=ext4load mmc ${mmcdev}:${mmcbootpart} 0x40007FC0 " \
|
|
|
|
"${kernelname}\0" \
|
2013-09-20 13:01:27 +00:00
|
|
|
"loaddtb=ext4load mmc ${mmcdev}:${mmcbootpart} ${fdtaddr} " \
|
|
|
|
"${fdtfile}\0" \
|
2013-12-30 08:40:40 +00:00
|
|
|
"mmcdev=" __stringify(CONFIG_MMC_DEFAULT_DEV) "\0" \
|
2013-09-20 13:01:27 +00:00
|
|
|
"mmcbootpart=2\0" \
|
|
|
|
"mmcrootpart=5\0" \
|
|
|
|
"opts=always_resume=1\0" \
|
|
|
|
"partitions=" PARTS_DEFAULT \
|
2013-11-12 14:22:46 +00:00
|
|
|
"dfu_alt_info=" CONFIG_DFU_ALT \
|
2013-09-20 13:01:27 +00:00
|
|
|
"uartpath=ap\0" \
|
|
|
|
"usbpath=ap\0" \
|
|
|
|
"consoleon=set console console=ttySAC2,115200n8; save; reset\0" \
|
|
|
|
"consoleoff=set console console=ram; save; reset\0" \
|
|
|
|
"spladdr=0x40000100\0" \
|
|
|
|
"splsize=0x200\0" \
|
|
|
|
"splfile=falcon.bin\0" \
|
|
|
|
"spl_export=" \
|
|
|
|
"setexpr spl_imgsize ${splsize} + 8 ;" \
|
|
|
|
"setenv spl_imgsize 0x${spl_imgsize};" \
|
|
|
|
"setexpr spl_imgaddr ${spladdr} - 8 ;" \
|
|
|
|
"setexpr spl_addr_tmp ${spladdr} - 4 ;" \
|
|
|
|
"mw.b ${spl_imgaddr} 0x00 ${spl_imgsize};run loaduimage;" \
|
|
|
|
"setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart} " \
|
|
|
|
"${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};" \
|
|
|
|
"spl export atags 0x40007FC0;" \
|
|
|
|
"crc32 ${spladdr} ${splsize} ${spl_imgaddr};" \
|
|
|
|
"mw.l ${spl_addr_tmp} ${splsize};" \
|
|
|
|
"ext4write mmc ${mmcdev}:${mmcbootpart}" \
|
|
|
|
" /${splfile} ${spl_imgaddr} ${spl_imgsize};" \
|
|
|
|
"setenv spl_imgsize;" \
|
|
|
|
"setenv spl_imgaddr;" \
|
|
|
|
"setenv spl_addr_tmp;\0" \
|
2015-04-01 10:34:30 +00:00
|
|
|
CONFIG_EXTRA_ENV_ITB \
|
2013-09-20 13:01:27 +00:00
|
|
|
"fdtaddr=40800000\0" \
|
|
|
|
|
2014-04-08 07:25:08 +00:00
|
|
|
/* GPT */
|
2013-09-20 13:01:27 +00:00
|
|
|
|
2014-03-25 09:58:22 +00:00
|
|
|
/* Security subsystem - enable hw_rand() */
|
|
|
|
#define CONFIG_EXYNOS_ACE_SHA
|
|
|
|
|
2014-01-22 10:24:12 +00:00
|
|
|
/* Common misc for Samsung */
|
|
|
|
#define CONFIG_MISC_COMMON
|
|
|
|
|
2014-01-22 10:24:19 +00:00
|
|
|
/* Download menu - Samsung common */
|
|
|
|
#define CONFIG_LCD_MENU
|
|
|
|
|
|
|
|
/* Download menu - definitions for check keys */
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
|
|
#define KEY_PWR_PMIC_NAME "MAX77686_PMIC"
|
|
|
|
#define KEY_PWR_STATUS_REG MAX77686_REG_PMIC_STATUS1
|
|
|
|
#define KEY_PWR_STATUS_MASK (1 << 0)
|
|
|
|
#define KEY_PWR_INTERRUPT_REG MAX77686_REG_PMIC_INT1
|
|
|
|
#define KEY_PWR_INTERRUPT_MASK (1 << 1)
|
|
|
|
|
2014-05-13 05:00:15 +00:00
|
|
|
#define KEY_VOL_UP_GPIO EXYNOS4X12_GPIO_X22
|
|
|
|
#define KEY_VOL_DOWN_GPIO EXYNOS4X12_GPIO_X33
|
2014-01-22 10:24:19 +00:00
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
|
|
|
/* LCD console */
|
|
|
|
#define LCD_BPP LCD_COLOR16
|
|
|
|
|
2013-09-20 13:01:27 +00:00
|
|
|
/* LCD */
|
2014-01-22 10:24:16 +00:00
|
|
|
#define CONFIG_BMP_16BPP
|
2013-09-20 13:01:27 +00:00
|
|
|
#define CONFIG_FB_ADDR 0x52504000
|
|
|
|
#define CONFIG_EXYNOS_MIPI_DSIM
|
|
|
|
#define CONFIG_VIDEO_BMP_GZIP
|
2013-11-29 17:30:43 +00:00
|
|
|
#define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE ((500 * 160 * 4) + 54)
|
2013-09-20 13:01:27 +00:00
|
|
|
|
|
|
|
#endif /* __CONFIG_H */
|