Convert CONFIG_SYS_MONITOR_LEN to Kconfig
[J-u-boot.git] / include / configs / smdkc100.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
8bc4ee9e
MK
2/*
3 * (C) Copyright 2009 Samsung Electronics
4 * Minkyu Kang <mk7.kang@samsung.com>
5 * HeungJun Kim <riverful.kim@samsung.com>
6 * Inki Dae <inki.dae@samsung.com>
7 *
8 * Configuation settings for the SAMSUNG SMDKC100 board.
8bc4ee9e
MK
9 */
10
11#ifndef __CONFIG_H
12#define __CONFIG_H
13
8bc4ee9e
MK
14#include <asm/arch/cpu.h> /* get chip and board defs */
15
8bc4ee9e 16/* input clock of PLL: SMDKC100 has 12MHz input clock */
8bc4ee9e
MK
17
18/* DRAM Base */
19#define CONFIG_SYS_SDRAM_BASE 0x30000000
20
08bcbc4a 21/* Text Base */
08bcbc4a 22
8bc4ee9e
MK
23/*
24 * select serial console configuration
25 */
8bc4ee9e 26
428eb2e2 27#define COMMON_BOOT "console=ttySAC0,115200n8" \
8bc4ee9e 28 " mem=128M " \
43ede0bc 29 " " CONFIG_MTDPARTS_DEFAULT
8bc4ee9e 30
8bc4ee9e 31#define CONFIG_EXTRA_ENV_SETTINGS \
428eb2e2
TR
32 "updateb=" \
33 "onenand erase 0x0 0x40000;" \
34 "onenand write 0x32008000 0x0 0x40000\0" \
8bc4ee9e
MK
35 "updatek=" \
36 "onenand erase 0x60000 0x300000;" \
37 "onenand write 0x31008000 0x60000 0x300000\0" \
38 "updateu=" \
39 "onenand erase block 147-4095;" \
40 "onenand write 0x32000000 0x1260000 0x8C0000\0" \
41 "bootk=" \
42 "onenand read 0x30007FC0 0x60000 0x300000;" \
43 "bootm 0x30007FC0\0" \
44 "flashboot=" \
45 "set bootargs root=/dev/mtdblock${bootblock} " \
46 "rootfstype=${rootfstype} " \
428eb2e2 47 "ubi.mtd=${ubiblock} ${opts} " COMMON_BOOT ";" \
8bc4ee9e
MK
48 "run bootk\0" \
49 "ubifsboot=" \
50 "set bootargs root=ubi0!rootfs rootfstype=ubifs " \
428eb2e2 51 " ubi.mtd=${ubiblock} ${opts} " COMMON_BOOT "; " \
8bc4ee9e
MK
52 "run bootk\0" \
53 "boottrace=setenv opts initcall_debug; run bootcmd\0" \
54 "android=" \
55 "set bootargs root=ubi0!ramdisk ubi.mtd=${ubiblock} " \
428eb2e2 56 "rootfstype=ubifs init=/init.sh " COMMON_BOOT "; " \
8bc4ee9e
MK
57 "run bootk\0" \
58 "nfsboot=" \
59 "set bootargs root=/dev/nfs ubi.mtd=${ubiblock} " \
60 "nfsroot=${nfsroot},nolock " \
61 "ip=${ipaddr}:${serverip}:${gatewayip}:" \
428eb2e2 62 "${netmask}:nowplus:usb0:off " COMMON_BOOT "; " \
8bc4ee9e
MK
63 "run bootk\0" \
64 "ramboot=" \
428eb2e2
TR
65 "set bootargs root=/dev/ram0 rw rootfstype=ext2" \
66 " console=ttySAC0,115200n8 mem=128M" \
8bc4ee9e
MK
67 " initrd=0x33000000,8M ramdisk=8192\0" \
68 "rootfstype=cramfs\0" \
8bc4ee9e
MK
69 "meminfo=mem=128M\0" \
70 "nfsroot=/nfsroot/arm\0" \
71 "bootblock=5\0" \
72 "ubiblock=4\0" \
73 "ubi=enabled"
74
75/*
76 * Miscellaneous configurable options
77 */
8bc4ee9e 78
8bc4ee9e 79/* SMDKC100 has 1 banks of DRAM, we use only one in U-Boot */
8bc4ee9e
MK
80#define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE /* SDRAM Bank #1 */
81#define PHYS_SDRAM_1_SIZE (128 << 20) /* 0x8000000, 128 MB Bank #1 */
82
8bc4ee9e
MK
83/*-----------------------------------------------------------------------
84 * FLASH and environment organization
85 */
8bc4ee9e 86
8bc4ee9e
MK
87/*-----------------------------------------------------------------------
88 * Boot configuration
89 */
8bc4ee9e 90
8bc4ee9e
MK
91#define CONFIG_SYS_ONENAND_BASE 0xE7100000
92
2528dc52
NKC
93/*
94 * Ethernet Contoller driver
95 */
96#ifdef CONFIG_CMD_NET
2528dc52
NKC
97#define CONFIG_ENV_SROM_BANK 3 /* Select SROM Bank-3 for Ethernet*/
98#endif /* CONFIG_CMD_NET */
99
8bc4ee9e 100#endif /* __CONFIG_H */
This page took 1.01521 seconds and 4 git commands to generate.