board: freescale: p1_p2_rdb_pc: Remove mapping for TDM-PMC card
[platform/kernel/u-boot.git] / include / configs / s5p_goni.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2009 Samsung Electronics
4  * Minkyu Kang <mk7.kang@samsung.com>
5  * Kyungmin Park <kyungmin.park@samsung.com>
6  *
7  * Configuation settings for the SAMSUNG Universal (s5pc100) board.
8  */
9
10 #ifndef __CONFIG_H
11 #define __CONFIG_H
12
13 #include <linux/sizes.h>
14 #include <asm/arch/cpu.h>               /* get chip and board defs */
15
16 /* DRAM Base */
17 #define CONFIG_SYS_SDRAM_BASE           0x30000000
18
19 /* Text Base */
20
21 /* MMC */
22 #define SDHCI_MAX_HOSTS         4
23
24 /* PWM */
25 #define CONFIG_PWM                      1
26
27 /* USB Composite download gadget - g_dnl */
28 #define DFU_DEFAULT_POLL_TIMEOUT 300
29
30 /* USB Samsung's IDs */
31
32 #define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8
33 #define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
34 #define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
35 #define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
36
37 /* Actual modem binary size is 16MiB. Add 2MiB for bad block handling */
38
39 /* partitions definitions */
40 #define PARTS_CSA                       "csa-mmc"
41 #define PARTS_BOOTLOADER        "u-boot"
42 #define PARTS_BOOT                      "boot"
43 #define PARTS_ROOT                      "platform"
44 #define PARTS_DATA                      "data"
45 #define PARTS_CSC                       "csc"
46 #define PARTS_UMS                       "ums"
47
48 #define CONFIG_DFU_ALT \
49         "u-boot raw 0x80 0x400;" \
50         "uImage ext4 0 2;" \
51         "exynos3-goni.dtb ext4 0 2;" \
52         ""PARTS_ROOT" part 0 5\0"
53
54 #define PARTS_DEFAULT \
55         "uuid_disk=${uuid_gpt_disk};" \
56         "name="PARTS_CSA",size=8MiB,uuid=${uuid_gpt_"PARTS_CSA"};" \
57         "name="PARTS_BOOTLOADER",size=60MiB," \
58         "uuid=${uuid_gpt_"PARTS_BOOTLOADER"};" \
59         "name="PARTS_BOOT",size=100MiB,uuid=${uuid_gpt_"PARTS_BOOT"};" \
60         "name="PARTS_ROOT",size=1GiB,uuid=${uuid_gpt_"PARTS_ROOT"};" \
61         "name="PARTS_DATA",size=3GiB,uuid=${uuid_gpt_"PARTS_DATA"};" \
62         "name="PARTS_CSC",size=150MiB,uuid=${uuid_gpt_"PARTS_CSC"};" \
63         "name="PARTS_UMS",size=-,uuid=${uuid_gpt_"PARTS_UMS"}\0" \
64
65 #define COMMON_BOOT     "${console} ${meminfo} ${mtdparts}"
66
67 #define CONFIG_MISC_COMMON
68
69 #define CONFIG_EXTRA_ENV_SETTINGS                                       \
70         "updateb=" \
71                 "onenand erase 0x0 0x100000;" \
72                 "onenand write 0x32008000 0x0 0x100000\0" \
73         "updatek=" \
74                 "onenand erase 0xc00000 0x600000;" \
75                 "onenand write 0x31008000 0xc00000 0x600000\0" \
76         "updateu=" \
77                 "onenand erase 0x01560000 0x1eaa0000;" \
78                 "onenand write 0x32000000 0x1260000 0x8C0000\0" \
79         "bootk=" \
80                 "run loaduimage;" \
81                 "bootm 0x30007FC0\0" \
82         "flashboot=" \
83                 "set bootargs root=/dev/mtdblock${bootblock} " \
84                 "rootfstype=${rootfstype} ${opts} " \
85                 "${lcdinfo} " COMMON_BOOT "; run bootk\0" \
86         "ubifsboot=" \
87                 "set bootargs root=ubi0!rootfs rootfstype=ubifs " \
88                 "${opts} ${lcdinfo} " \
89                 COMMON_BOOT "; run bootk\0" \
90         "tftpboot=" \
91                 "set bootargs root=ubi0!rootfs rootfstype=ubifs " \
92                 "${opts} ${lcdinfo} " COMMON_BOOT \
93                 "; tftp 0x30007FC0 uImage; bootm 0x30007FC0\0" \
94         "ramboot=" \
95                 "set bootargs root=/dev/ram0 rw rootfstype=ext4" \
96                 " ${console} ${meminfo} " \
97                 "initrd=0x33000000,8M ramdisk=8192\0" \
98         "mmcboot=" \
99                 "set bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart} " \
100                 "rootfstype=${rootfstype} ${opts} ${lcdinfo} " \
101                 COMMON_BOOT "; run bootk\0" \
102         "boottrace=setenv opts initcall_debug; run bootcmd\0" \
103         "bootchart=set opts init=/sbin/bootchartd; run bootcmd\0" \
104         "verify=n\0" \
105         "rootfstype=ext4\0" \
106         "console=console=ttySAC2,115200n8\0" \
107         "meminfo=mem=80M mem=256M@0x40000000 mem=128M@0x50000000\0" \
108         "loaduimage=ext4load mmc ${mmcdev}:${mmcbootpart} 0x30007FC0 uImage\0" \
109         "mmcdev=0\0" \
110         "mmcbootpart=2\0" \
111         "mmcrootpart=5\0" \
112         "partitions=" PARTS_DEFAULT \
113         "bootblock=9\0" \
114         "ubiblock=8\0" \
115         "ubi=enabled\0" \
116         "opts=always_resume=1\0" \
117         "dfu_alt_info=" CONFIG_DFU_ALT "\0"
118
119 /* Goni has 3 banks of DRAM, but swap the bank */
120 #define PHYS_SDRAM_1            CONFIG_SYS_SDRAM_BASE   /* OneDRAM Bank #0 */
121 #define PHYS_SDRAM_1_SIZE       (80 << 20)              /* 80 MB in Bank #0 */
122 #define PHYS_SDRAM_2            0x40000000              /* mDDR DMC1 Bank #1 */
123 #define PHYS_SDRAM_2_SIZE       (256 << 20)             /* 256 MB in Bank #1 */
124 #define PHYS_SDRAM_3            0x50000000              /* mDDR DMC2 Bank #2 */
125 #define PHYS_SDRAM_3_SIZE       (128 << 20)             /* 128 MB in Bank #2 */
126
127 #define CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* 256 KiB */
128
129 /* FLASH and environment organization */
130 #define CONFIG_MMC_DEFAULT_DEV  0
131
132 #define CONFIG_USE_ONENAND_BOARD_INIT
133 #define CONFIG_SAMSUNG_ONENAND          1
134 #define CONFIG_SYS_ONENAND_BASE         0xB0000000
135
136 #define CONFIG_USB_GADGET_DWC2_OTG_PHY
137
138 #endif  /* __CONFIG_H */