2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2012-01-16 21:13:05 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2011 Samsung Electronics
|
|
|
|
* Heungjun Kim <riverful.kim@samsung.com>
|
|
|
|
*
|
|
|
|
* Configuation settings for the SAMSUNG TRATS (EXYNOS4210) board.
|
|
|
|
*/
|
|
|
|
|
2014-03-07 13:59:48 +00:00
|
|
|
#ifndef __CONFIG_TRATS_H
|
|
|
|
#define __CONFIG_TRATS_H
|
2012-01-16 21:13:05 +00:00
|
|
|
|
2014-10-08 04:01:44 +00:00
|
|
|
#include <configs/exynos4-common.h>
|
2014-03-07 13:59:48 +00:00
|
|
|
|
2012-08-07 05:42:14 +00:00
|
|
|
#ifndef CONFIG_SYS_L2CACHE_OFF
|
|
|
|
#define CONFIG_SYS_L2_PL310
|
|
|
|
#define CONFIG_SYS_PL310_BASE 0x10502000
|
|
|
|
#endif
|
2012-01-16 21:13:05 +00:00
|
|
|
|
2014-03-07 13:59:48 +00:00
|
|
|
/* TRATS has 4 banks of DRAM */
|
2012-01-16 21:13:05 +00:00
|
|
|
#define CONFIG_SYS_SDRAM_BASE 0x40000000
|
2014-03-07 13:59:48 +00:00
|
|
|
#define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE
|
|
|
|
#define SDRAM_BANK_SIZE (256 << 20) /* 256 MB */
|
2012-01-16 21:13:05 +00:00
|
|
|
|
2012-12-11 10:09:48 +00:00
|
|
|
/* Tizen - partitions definitions */
|
|
|
|
#define PARTS_CSA "csa-mmc"
|
|
|
|
#define PARTS_BOOT "boot"
|
2014-02-28 17:53:36 +00:00
|
|
|
#define PARTS_QBOOT "qboot"
|
|
|
|
#define PARTS_CSC "csc"
|
2012-12-11 10:09:48 +00:00
|
|
|
#define PARTS_ROOT "platform"
|
|
|
|
#define PARTS_DATA "data"
|
|
|
|
#define PARTS_UMS "ums"
|
|
|
|
|
|
|
|
#define PARTS_DEFAULT \
|
|
|
|
"uuid_disk=${uuid_gpt_disk};" \
|
2014-02-28 17:53:36 +00:00
|
|
|
"name="PARTS_CSA",start=5MiB,size=8MiB,uuid=${uuid_gpt_"PARTS_CSA"};" \
|
|
|
|
"name="PARTS_BOOT",size=60MiB,uuid=${uuid_gpt_"PARTS_BOOT"};" \
|
|
|
|
"name="PARTS_QBOOT",size=100MiB,uuid=${uuid_gpt_"PARTS_QBOOT"};" \
|
2012-12-11 10:09:48 +00:00
|
|
|
"name="PARTS_CSC",size=150MiB,uuid=${uuid_gpt_"PARTS_CSC"};" \
|
2014-02-28 17:53:36 +00:00
|
|
|
"name="PARTS_ROOT",size=1536MiB,uuid=${uuid_gpt_"PARTS_ROOT"};" \
|
|
|
|
"name="PARTS_DATA",size=3000MiB,uuid=${uuid_gpt_"PARTS_DATA"};" \
|
2012-12-11 10:09:48 +00:00
|
|
|
"name="PARTS_UMS",size=-,uuid=${uuid_gpt_"PARTS_UMS"}\0" \
|
|
|
|
|
2012-08-06 12:41:11 +00:00
|
|
|
#define CONFIG_DFU_ALT \
|
2014-04-28 19:13:25 +00:00
|
|
|
"u-boot raw 0x80 0x400;" \
|
2014-07-22 08:17:06 +00:00
|
|
|
"/uImage ext4 0 2;" \
|
|
|
|
"/modem.bin ext4 0 2;" \
|
|
|
|
"/exynos4210-trats.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:29 +00:00
|
|
|
"params.bin raw 0x38 0x8;" \
|
|
|
|
"/Image.itb ext4 0 2\0"
|
2012-08-06 12:41:11 +00:00
|
|
|
|
2012-01-16 21:13:05 +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" \
|
2012-01-16 21:13:05 +00:00
|
|
|
"updatebackup=" \
|
2014-04-30 00:09:15 +00:00
|
|
|
"mmc dev 0 2; mmc write 0 0x42100000 0 0x200;" \
|
|
|
|
"mmc dev 0 0\0" \
|
2012-01-16 21:13:05 +00:00
|
|
|
"updatebootb=" \
|
|
|
|
"mmc read 0 0x42100000 0x80 0x200; run updatebackup\0" \
|
|
|
|
"lpj=lpj=3981312\0" \
|
|
|
|
"nfsboot=" \
|
2013-01-02 06:06:02 +00:00
|
|
|
"setenv bootargs root=/dev/nfs rw " \
|
2012-01-16 21:13:05 +00:00
|
|
|
"nfsroot=${nfsroot},nolock,tcp " \
|
|
|
|
"ip=${ipaddr}:${serverip}:${gatewayip}:" \
|
2021-08-10 21:34:22 +00:00
|
|
|
"${netmask}:generic:usb0:off ${console} ${meminfo}" \
|
2012-01-16 21:13:05 +00:00
|
|
|
"; run bootk\0" \
|
|
|
|
"ramfsboot=" \
|
2013-01-02 06:06:02 +00:00
|
|
|
"setenv bootargs root=/dev/ram0 rw rootfstype=ext2 " \
|
2012-01-16 21:13:05 +00:00
|
|
|
"${console} ${meminfo} " \
|
|
|
|
"initrd=0x43000000,8M ramdisk=8192\0" \
|
|
|
|
"mmcboot=" \
|
2013-01-02 06:06:02 +00:00
|
|
|
"setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart} " \
|
2012-01-16 21:13:05 +00:00
|
|
|
"${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo}; " \
|
2014-01-22 14:54:37 +00:00
|
|
|
"run bootk\0" \
|
2013-01-02 06:06:02 +00:00
|
|
|
"bootchart=setenv opts init=/sbin/bootchartd; run bootcmd\0" \
|
2012-01-16 21:13:05 +00:00
|
|
|
"boottrace=setenv opts initcall_debug; run bootcmd\0" \
|
|
|
|
"mmcoops=mmc read 0 0x40000000 0x40 8; md 0x40000000 0x400\0" \
|
|
|
|
"verify=n\0" \
|
|
|
|
"rootfstype=ext4\0" \
|
2020-09-17 06:52:01 +00:00
|
|
|
"console=console=ttySAC2,115200n8\0" \
|
2012-01-16 21:13:05 +00:00
|
|
|
"meminfo=crashkernel=32M@0x50000000\0" \
|
|
|
|
"nfsroot=/nfsroot/arm\0" \
|
2021-08-10 21:34:22 +00:00
|
|
|
"bootblock=10\0" \
|
2013-01-02 06:06:02 +00:00
|
|
|
"loaduimage=ext4load mmc ${mmcdev}:${mmcbootpart} 0x40007FC0 uImage\0" \
|
2013-07-18 11:14:22 +00:00
|
|
|
"loaddtb=ext4load mmc ${mmcdev}:${mmcbootpart} ${fdtaddr} " \
|
2013-04-02 13:10:16 +00:00
|
|
|
"${fdtfile}\0" \
|
2012-01-16 21:13:05 +00:00
|
|
|
"mmcdev=0\0" \
|
|
|
|
"mmcbootpart=2\0" \
|
2013-01-02 06:06:02 +00:00
|
|
|
"mmcrootpart=5\0" \
|
2012-08-06 12:41:11 +00:00
|
|
|
"opts=always_resume=1\0" \
|
2012-12-11 10:09:48 +00:00
|
|
|
"partitions=" PARTS_DEFAULT \
|
2013-01-02 06:06:02 +00:00
|
|
|
"dfu_alt_info=" CONFIG_DFU_ALT \
|
|
|
|
"spladdr=0x40000100\0" \
|
|
|
|
"splsize=0x200\0" \
|
|
|
|
"splfile=falcon.bin\0" \
|
|
|
|
"spl_export=" \
|
|
|
|
"setexpr spl_imgsize ${splsize} + 8 ;" \
|
2013-03-12 03:41:49 +00:00
|
|
|
"setenv spl_imgsize 0x${spl_imgsize};" \
|
2013-01-02 06:06:02 +00:00
|
|
|
"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;" \
|
2013-04-02 13:10:16 +00:00
|
|
|
"setenv spl_addr_tmp;\0" \
|
2021-08-10 21:34:22 +00:00
|
|
|
ENV_ITB \
|
2013-04-02 13:10:16 +00:00
|
|
|
"fdtaddr=40800000\0" \
|
|
|
|
|
2013-01-02 06:06:02 +00:00
|
|
|
/* Falcon mode definitions */
|
2012-01-16 21:13:05 +00:00
|
|
|
|
2012-12-11 10:09:48 +00:00
|
|
|
/* GPT */
|
|
|
|
|
2014-01-22 10:24:12 +00:00
|
|
|
/* Common misc for Samsung */
|
|
|
|
#define CONFIG_MISC_COMMON
|
|
|
|
|
2014-01-22 10:24:18 +00:00
|
|
|
/* Download menu - Samsung common */
|
|
|
|
#define CONFIG_LCD_MENU
|
|
|
|
|
|
|
|
/* Download menu - definitions for check keys */
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
|
|
#define KEY_PWR_PMIC_NAME "MAX8997_PMIC"
|
|
|
|
#define KEY_PWR_STATUS_REG MAX8997_REG_STATUS1
|
|
|
|
#define KEY_PWR_STATUS_MASK (1 << 0)
|
|
|
|
#define KEY_PWR_INTERRUPT_REG MAX8997_REG_INT1
|
|
|
|
#define KEY_PWR_INTERRUPT_MASK (1 << 0)
|
|
|
|
|
2014-05-13 05:00:15 +00:00
|
|
|
#define KEY_VOL_UP_GPIO EXYNOS4_GPIO_X20
|
|
|
|
#define KEY_VOL_DOWN_GPIO EXYNOS4_GPIO_X21
|
2014-01-22 10:24:18 +00:00
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
|
|
|
/* LCD console */
|
|
|
|
#define LCD_BPP LCD_COLOR16
|
|
|
|
|
2012-04-05 19:36:27 +00:00
|
|
|
/* LCD */
|
2013-11-29 17:30:43 +00:00
|
|
|
#define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE ((500 * 160 * 4) + 54)
|
2012-04-05 19:36:27 +00:00
|
|
|
|
2012-01-16 21:13:05 +00:00
|
|
|
#endif /* __CONFIG_H */
|