arm: samsung: Remove dead LCD code
[platform/kernel/u-boot.git] / include / configs / trats.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2011 Samsung Electronics
4  * Heungjun Kim <riverful.kim@samsung.com>
5  *
6  * Configuation settings for the SAMSUNG TRATS (EXYNOS4210) board.
7  */
8
9 #ifndef __CONFIG_TRATS_H
10 #define __CONFIG_TRATS_H
11
12 #include <configs/exynos4-common.h>
13
14 #define CONFIG_TRATS
15
16 #ifndef CONFIG_SYS_L2CACHE_OFF
17 #define CONFIG_SYS_L2_PL310
18 #define CONFIG_SYS_PL310_BASE   0x10502000
19 #endif
20
21 /* TRATS has 4 banks of DRAM */
22 #define CONFIG_SYS_SDRAM_BASE           0x40000000
23 #define PHYS_SDRAM_1                    CONFIG_SYS_SDRAM_BASE
24 #define SDRAM_BANK_SIZE                 (256 << 20)     /* 256 MB */
25
26 /* Tizen - partitions definitions */
27 #define PARTS_CSA               "csa-mmc"
28 #define PARTS_BOOT              "boot"
29 #define PARTS_QBOOT             "qboot"
30 #define PARTS_CSC               "csc"
31 #define PARTS_ROOT              "platform"
32 #define PARTS_DATA              "data"
33 #define PARTS_UMS               "ums"
34
35 #define PARTS_DEFAULT \
36         "uuid_disk=${uuid_gpt_disk};" \
37         "name="PARTS_CSA",start=5MiB,size=8MiB,uuid=${uuid_gpt_"PARTS_CSA"};" \
38         "name="PARTS_BOOT",size=60MiB,uuid=${uuid_gpt_"PARTS_BOOT"};" \
39         "name="PARTS_QBOOT",size=100MiB,uuid=${uuid_gpt_"PARTS_QBOOT"};" \
40         "name="PARTS_CSC",size=150MiB,uuid=${uuid_gpt_"PARTS_CSC"};" \
41         "name="PARTS_ROOT",size=1536MiB,uuid=${uuid_gpt_"PARTS_ROOT"};" \
42         "name="PARTS_DATA",size=3000MiB,uuid=${uuid_gpt_"PARTS_DATA"};" \
43         "name="PARTS_UMS",size=-,uuid=${uuid_gpt_"PARTS_UMS"}\0" \
44
45 #define CONFIG_DFU_ALT \
46         "u-boot raw 0x80 0x400;" \
47         "/uImage ext4 0 2;" \
48         "/modem.bin ext4 0 2;" \
49         "/exynos4210-trats.dtb ext4 0 2;" \
50         ""PARTS_CSA" part 0 1;" \
51         ""PARTS_BOOT" part 0 2;" \
52         ""PARTS_QBOOT" part 0 3;" \
53         ""PARTS_CSC" part 0 4;" \
54         ""PARTS_ROOT" part 0 5;" \
55         ""PARTS_DATA" part 0 6;" \
56         ""PARTS_UMS" part 0 7;" \
57         "params.bin raw 0x38 0x8;" \
58         "/Image.itb ext4 0 2\0"
59
60 #define CONFIG_EXTRA_ENV_SETTINGS \
61         "bootk=" \
62                 "run loaduimage;" \
63                 "if run loaddtb; then " \
64                         "bootm 0x40007FC0 - ${fdtaddr};" \
65                 "fi;" \
66                 "bootm 0x40007FC0;\0" \
67         "updatebackup=" \
68                 "mmc dev 0 2; mmc write 0 0x42100000 0 0x200;" \
69                 "mmc dev 0 0\0" \
70         "updatebootb=" \
71                 "mmc read 0 0x42100000 0x80 0x200; run updatebackup\0" \
72         "lpj=lpj=3981312\0" \
73         "nfsboot=" \
74                 "setenv bootargs root=/dev/nfs rw " \
75                 "nfsroot=${nfsroot},nolock,tcp " \
76                 "ip=${ipaddr}:${serverip}:${gatewayip}:" \
77                 "${netmask}:generic:usb0:off ${console} ${meminfo}" \
78                 "; run bootk\0" \
79         "ramfsboot=" \
80                 "setenv bootargs root=/dev/ram0 rw rootfstype=ext2 " \
81                 "${console} ${meminfo} " \
82                 "initrd=0x43000000,8M ramdisk=8192\0" \
83         "mmcboot=" \
84                 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart} " \
85                 "${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo}; " \
86                 "run bootk\0" \
87         "bootchart=setenv opts init=/sbin/bootchartd; run bootcmd\0" \
88         "boottrace=setenv opts initcall_debug; run bootcmd\0" \
89         "mmcoops=mmc read 0 0x40000000 0x40 8; md 0x40000000 0x400\0" \
90         "verify=n\0" \
91         "rootfstype=ext4\0" \
92         "console=console=ttySAC2,115200n8\0" \
93         "meminfo=crashkernel=32M@0x50000000\0" \
94         "nfsroot=/nfsroot/arm\0" \
95         "bootblock=10\0" \
96         "loaduimage=ext4load mmc ${mmcdev}:${mmcbootpart} 0x40007FC0 uImage\0" \
97         "loaddtb=ext4load mmc ${mmcdev}:${mmcbootpart} ${fdtaddr} " \
98                 "${fdtfile}\0" \
99         "mmcdev=0\0" \
100         "mmcbootpart=2\0" \
101         "mmcrootpart=5\0" \
102         "opts=always_resume=1\0" \
103         "partitions=" PARTS_DEFAULT \
104         "dfu_alt_info=" CONFIG_DFU_ALT \
105         "spladdr=0x40000100\0" \
106         "splsize=0x200\0" \
107         "splfile=falcon.bin\0" \
108         "spl_export=" \
109                    "setexpr spl_imgsize ${splsize} + 8 ;" \
110                    "setenv spl_imgsize 0x${spl_imgsize};" \
111                    "setexpr spl_imgaddr ${spladdr} - 8 ;" \
112                    "setexpr spl_addr_tmp ${spladdr} - 4 ;" \
113                    "mw.b ${spl_imgaddr} 0x00 ${spl_imgsize};run loaduimage;" \
114                    "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart} " \
115                    "${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};" \
116                    "spl export atags 0x40007FC0;" \
117                    "crc32 ${spladdr} ${splsize} ${spl_imgaddr};" \
118                    "mw.l ${spl_addr_tmp} ${splsize};" \
119                    "ext4write mmc ${mmcdev}:${mmcbootpart}" \
120                    " /${splfile} ${spl_imgaddr} ${spl_imgsize};" \
121                    "setenv spl_imgsize;" \
122                    "setenv spl_imgaddr;" \
123                    "setenv spl_addr_tmp;\0" \
124         ENV_ITB \
125         "fdtaddr=40800000\0" \
126
127 /* Falcon mode definitions */
128
129 /* GPT */
130
131 /* Security subsystem - enable hw_rand() */
132 #define CONFIG_EXYNOS_ACE_SHA
133
134 /* Common misc for Samsung */
135 #define CONFIG_MISC_COMMON
136
137 /* Download menu - Samsung common */
138 #define CONFIG_LCD_MENU
139
140 /* Download menu - definitions for check keys */
141 #ifndef __ASSEMBLY__
142
143 #define KEY_PWR_PMIC_NAME               "MAX8997_PMIC"
144 #define KEY_PWR_STATUS_REG              MAX8997_REG_STATUS1
145 #define KEY_PWR_STATUS_MASK             (1 << 0)
146 #define KEY_PWR_INTERRUPT_REG           MAX8997_REG_INT1
147 #define KEY_PWR_INTERRUPT_MASK          (1 << 0)
148
149 #define KEY_VOL_UP_GPIO                 EXYNOS4_GPIO_X20
150 #define KEY_VOL_DOWN_GPIO               EXYNOS4_GPIO_X21
151 #endif /* __ASSEMBLY__ */
152
153 /* LCD console */
154 #define LCD_BPP                 LCD_COLOR16
155
156 /* LCD */
157 #define CONFIG_FB_ADDR          0x52504000
158 #define CONFIG_EXYNOS_MIPI_DSIM
159 #define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE  ((500 * 160 * 4) + 54)
160
161 #endif  /* __CONFIG_H */