1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2009 Samsung Electronics
4 * Minkyu Kang <mk7.kang@samsung.com>
5 * Kyungmin Park <kyungmin.park@samsung.com>
7 * Configuation settings for the SAMSUNG Universal (s5pc100) board.
13 #include <linux/sizes.h>
14 #include <asm/arch/cpu.h> /* get chip and board defs */
17 #define CONFIG_SYS_SDRAM_BASE 0x30000000
22 #define SDHCI_MAX_HOSTS 4
27 /* USB Composite download gadget - g_dnl */
28 #define DFU_DEFAULT_POLL_TIMEOUT 300
30 /* USB Samsung's IDs */
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
37 /* Actual modem binary size is 16MiB. Add 2MiB for bad block handling */
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"
48 #define CONFIG_DFU_ALT \
49 "u-boot raw 0x80 0x400;" \
51 "exynos3-goni.dtb ext4 0 2;" \
52 ""PARTS_ROOT" part 0 5\0"
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" \
65 #define COMMON_BOOT "${console} ${meminfo} ${mtdparts}"
67 #define CONFIG_MISC_COMMON
69 #define CONFIG_EXTRA_ENV_SETTINGS \
71 "onenand erase 0x0 0x100000;" \
72 "onenand write 0x32008000 0x0 0x100000\0" \
74 "onenand erase 0xc00000 0x600000;" \
75 "onenand write 0x31008000 0xc00000 0x600000\0" \
77 "onenand erase 0x01560000 0x1eaa0000;" \
78 "onenand write 0x32000000 0x1260000 0x8C0000\0" \
81 "bootm 0x30007FC0\0" \
83 "set bootargs root=/dev/mtdblock${bootblock} " \
84 "rootfstype=${rootfstype} ${opts} " \
85 "${lcdinfo} " COMMON_BOOT "; run bootk\0" \
87 "set bootargs root=ubi0!rootfs rootfstype=ubifs " \
88 "${opts} ${lcdinfo} " \
89 COMMON_BOOT "; run bootk\0" \
91 "set bootargs root=ubi0!rootfs rootfstype=ubifs " \
92 "${opts} ${lcdinfo} " COMMON_BOOT \
93 "; tftp 0x30007FC0 uImage; bootm 0x30007FC0\0" \
95 "set bootargs root=/dev/ram0 rw rootfstype=ext4" \
96 " ${console} ${meminfo} " \
97 "initrd=0x33000000,8M ramdisk=8192\0" \
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" \
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" \
112 "partitions=" PARTS_DEFAULT \
116 "opts=always_resume=1\0" \
117 "dfu_alt_info=" CONFIG_DFU_ALT "\0"
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 */
127 #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* 256 KiB */
129 /* FLASH and environment organization */
130 #define CONFIG_MMC_DEFAULT_DEV 0
132 #define CONFIG_USE_ONENAND_BOARD_INIT
133 #define CONFIG_SAMSUNG_ONENAND 1
134 #define CONFIG_SYS_ONENAND_BASE 0xB0000000
136 #define CONFIG_USB_GADGET_DWC2_OTG_PHY
138 #endif /* __CONFIG_H */