aboutsummaryrefslogtreecommitdiffstats
path: root/fs/Kconfig
Commit message (Expand)AuthorAgeFilesLines
...
* | | vfs: Add name to file handle conversion supportAneesh Kumar K.V2011-03-151-1/+1
|/ /
* | kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERTDavid Rientjes2011-01-201-1/+1
* | fs: FS_POSIX_ACL does not depend on BLOCKRandy Dunlap2011-01-171-9/+8
|/
* Merge 'staging-next' to Linus's treeGreg Kroah-Hartman2010-10-281-2/+0
|\
| * smbfs: move to drivers/stagingArnd Bergmann2010-10-051-1/+0
| * autofs3: move to drivers/stagingArnd Bergmann2010-10-051-1/+0
* | Merge branch 'flock' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bklLinus Torvalds2010-10-271-1/+0
|\ \
| * | locks: turn lock_flocks into a spinlockArnd Bergmann2010-10-271-1/+0
* | | fs: move exportfs since it is not a networking filesystemRandy Dunlap2010-10-261-3/+3
|/ /
* / BKL: introduce CONFIG_BKL.Arnd Bergmann2010-10-211-0/+1
|/
* fs/Kconfig: Fix typo Userpace -> UserspaceStephen Boyd2010-07-201-1/+1
* Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sag...Linus Torvalds2010-03-191-0/+1
|\
| * ceph: Kconfig, MakefileSage Weil2009-10-061-0/+1
* | [LogFS] add new flash file systemJoern Engel2009-11-201-0/+1
* | powerpc: Cleanup Kconfig selection of hugetlbfs supportBenjamin Herrenschmidt2009-10-301-1/+1
* | Merge branch 'sh/for-2.6.32' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds2009-10-291-2/+2
|\ \
| * | sh: Fix hugetlbfs dependencies for SH-3 && MMU configurations.Paul Mundt2009-10-271-2/+2
| |/
* / powerpc: Limit hugetlbfs support to PPC64 Book-3S machinesKumar Gala2009-10-271-1/+1
|/
* tmpfs: depend on shmemHugh Dickins2009-09-221-0/+1
* fs/Kconfig: move nilfs2 outside misc filesystemsRyusuke Konishi2009-09-141-1/+1
* fs/Kconfig: move nilfs2 outRyusuke Konishi2009-07-141-26/+1
* Merge branch 'for-2.6.31' of git://fieldses.org/git/linux-nfsdLinus Torvalds2009-06-221-0/+2
|\
| * lockd: fix FILE_LOCKING=n build errorRandy Dunlap2009-05-131-0/+2
* | Hugetlbfs: Enable hugetlbfs for more systems in Kconfig.David Daney2009-06-171-1/+1
* | CONFIG_FILE_LOCKING should not depend on CONFIG_BLOCKTomas Szepe2009-06-161-7/+7
* | CUSE: implement CUSE - Character device in UserspaceTejun Heo2009-06-091-0/+10
|/
* nilfs2: update makefile and KconfigRyusuke Konishi2009-04-071-1/+26
* Merge git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-2.6-fscacheLinus Torvalds2009-04-031-0/+7
|\
| * CacheFiles: A cache that backs onto a mounted filesystemDavid Howells2009-04-031-0/+1
| * FS-Cache: Add main configuration option, module entry points and debuggingDavid Howells2009-04-031-0/+6
* | fs: Add exofs to Kernel buildBoaz Harrosh2009-03-311-0/+2
|/
* quota: Move quota files into separate directoryJan Kara2009-03-261-55/+1
* fs/Kconfig: move 9p outAlexey Dobriyan2009-01-221-11/+1
* fs/Kconfig: move afs outAlexey Dobriyan2009-01-221-22/+1
* fs/Kconfig: move coda outAlexey Dobriyan2009-01-221-22/+1
* fs/Kconfig: move the rest of ncpfs outAlexey Dobriyan2009-01-221-22/+0
* fs/Kconfig: move smbfs outAlexey Dobriyan2009-01-221-57/+1
* fs/Kconfig: move sunrpc outAlexey Dobriyan2009-01-221-79/+1
* fs/Kconfig: move nfsd outAlexey Dobriyan2009-01-221-81/+1
* fs/Kconfig: move nfs outAlexey Dobriyan2009-01-221-86/+1
* fs/Kconfig: move ufs outAlexey Dobriyan2009-01-221-44/+1
* fs/Kconfig: move sysv outAlexey Dobriyan2009-01-221-38/+1
* fs/Kconfig: move romfs outAlexey Dobriyan2009-01-221-18/+1
* fs/Kconfig: move qnx4 outAlexey Dobriyan2009-01-221-26/+1
* fs/Kconfig: move hpfs outAlexey Dobriyan2009-01-221-16/+1
* fs/Kconfig: move omfs outAlexey Dobriyan2009-01-221-14/+1
* fs/Kconfig: move minix outAlexey Dobriyan2009-01-221-18/+1
* fs/Kconfig: move vxfs outAlexey Dobriyan2009-01-221-17/+1
* fs/Kconfig: move squashfs outAlexey Dobriyan2009-01-221-52/+1
* fs/Kconfig: move cramfs outAlexey Dobriyan2009-01-221-20/+1
tion> mirror/u-boot.git
aboutsummaryrefslogtreecommitdiffstats
path: root/include/configs/uniphier.h
blob: 15d41fba95cc86882d7ef70811eeefe0b2187d73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (C) 2012-2015 Panasonic Corporation
 * Copyright (C) 2015-2016 Socionext Inc.
 *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
 */

/* U-Boot - Common settings for UniPhier Family */

#ifndef __CONFIG_UNIPHIER_H__
#define __CONFIG_UNIPHIER_H__

#include <config_distro_bootcmd.h>

#ifdef CONFIG_CMD_MMC
#define BOOT_TARGET_DEVICE_MMC(func)	func(MMC, mmc, 0) func(MMC, mmc, 1)
#else
#define BOOT_TARGET_DEVICE_MMC(func)
#endif

#ifdef CONFIG_CMD_UBIFS
#define BOOT_TARGET_DEVICE_UBIFS(func)	func(UBIFS, ubifs, 0)
#else
#define BOOT_TARGET_DEVICE_UBIFS(func)
#endif

#ifdef CONFIG_CMD_USB
#define BOOT_TARGET_DEVICE_USB(func)	func(USB, usb, 0)
#else
#define BOOT_TARGET_DEVICE_USB(func)
#endif

#define BOOT_TARGET_DEVICES(func)	\
	BOOT_TARGET_DEVICE_MMC(func)	\
	BOOT_TARGET_DEVICE_UBIFS(func)	\
	BOOT_TARGET_DEVICE_USB(func)

#define CONFIG_SYS_MONITOR_LEN		0x00200000	/* 2MB */

#if !defined(CONFIG_ARM64)
/* Time clock 1MHz */
#define CONFIG_SYS_TIMER_RATE			1000000
#endif

#define CONFIG_SYS_MAX_NAND_DEVICE			1
#define CONFIG_SYS_NAND_REGS_BASE			0x68100000
#define CONFIG_SYS_NAND_DATA_BASE			0x68000000

/*
 * Network Configuration
 */
#define CONFIG_SERVERIP			192.168.11.1
#define CONFIG_IPADDR			192.168.11.10
#define CONFIG_GATEWAYIP		192.168.11.1
#define CONFIG_NETMASK			255.255.255.0

#if defined(CONFIG_ARM64)
/* ARM Trusted Firmware */
#define BOOT_IMAGES \
	"second_image=unph_bl.bin\0" \
	"third_image=fip.bin\0"
#else
#define BOOT_IMAGES \
	"second_image=u-boot-spl.bin\0" \
	"third_image=u-boot.bin\0"
#endif

#define CONFIG_ROOTPATH			"/nfs/root/path"

#ifdef CONFIG_FIT
#define KERNEL_ADDR_R_OFFSET		"0x05100000"
#define LINUXBOOT_ENV_SETTINGS \
	"tftpboot=tftpboot $kernel_addr_r $bootfile &&" \
		"bootm $kernel_addr_r\0" \
	"__nfsboot=run tftpboot\0"
#else
#ifdef CONFIG_ARM64
#define LINUXBOOT_CMD			"booti"
#define KERNEL_ADDR_R_OFFSET		"0x02080000"
#else
#define LINUXBOOT_CMD			"bootz"
#define KERNEL_ADDR_R_OFFSET		"0x00208000"
#endif
#define LINUXBOOT_ENV_SETTINGS \
	"boot_common=setexpr bootm_low $kernel_addr_r '&' fe000000 && " \
		LINUXBOOT_CMD " $kernel_addr_r $ramdisk_addr_r $fdt_addr_r\0" \
	"tftpboot=tftpboot $kernel_addr_r $bootfile && " \
		"tftpboot $fdt_addr_r $fdtfile &&" \
		"tftpboot $ramdisk_addr_r $ramdisk_file &&" \
		"setenv ramdisk_addr_r $ramdisk_addr_r:$filesize &&" \
		"run boot_common\0" \
	"__nfsboot=tftpboot $kernel_addr_load $bootfile && " \
		"tftpboot $fdt_addr_r $fdtfile &&" \
		"setenv ramdisk_addr_r - &&" \
		"run boot_common\0"
#endif

#define	CONFIG_EXTRA_ENV_SETTINGS				\
	"fdt_addr_r_offset=0x05100000\0" \
	"kernel_addr_r_offset=" KERNEL_ADDR_R_OFFSET "\0" \
	"ramdisk_addr_r_offset=0x06000000\0" \
	"ramdisk_file=rootfs.cpio.gz\0" \
	"netdev=eth0\0"						\
	"initrd_high=0xffffffffffffffff\0"			\
	"loadaddr_offset=0x05000000\0" \
	"script=boot.scr\0" \
	"scriptaddr=0x85000000\0"				\
	"nor_base=0x42000000\0"					\
	"emmcboot=mmcsetn && run bootcmd_mmc${mmc_first_dev}\0" \
	"nandboot=run bootcmd_ubifs0\0" \
	"norboot=run tftpboot\0" \
	"sdboot=sdsetn && run bootcmd_mmc${sd_first_dev}\0" \
	"usbboot=run bootcmd_usb0\0" \
	"emmcscript=setenv devtype mmc && " \
		"mmcsetn && " \
		"setenv devnum ${mmc_first_dev} && " \
		"run loadscript_fat\0" \
	"nandscript=echo Running ${script} from ubi ... && " \
		"ubi part UBI && " \
		"ubifsmount ubi0:boot && " \
		"ubifsload ${loadaddr} ${script} && " \
		"source $loadaddr\0" \
	"sdscript=setenv devtype mmc && " \
		"sdsetn && " \
		"setenv devnum ${sd_first_dev} && " \
		"run loadscript_fat\0" \
	"norscript=echo Running ${script} from tftp ... && " \
		"tftpboot ${script} &&" \
		"source $loadaddr\0" \
	"usbscript=usb start && " \
		"setenv devtype usb && " \
		"setenv devnum 0 && " \
		"run loadscript_fat\0" \
	"loadscript_fat=echo Running ${script} from ${devtype}${devnum} ... && " \
		"load ${devtype} ${devnum}:1 ${loadaddr} ${script} && " \
		"source $loadaddr\0" \
	"sramupdate=setexpr tmp_addr $nor_base + 0x50000 &&"	\
		"tftpboot $tmp_addr $second_image && " \
		"setexpr tmp_addr $nor_base + 0x70000 && " \
		"tftpboot $tmp_addr $third_image\0" \
	"emmcupdate=mmcsetn &&"					\
		"mmc dev $mmc_first_dev &&"			\
		"mmc partconf $mmc_first_dev 0 1 1 &&"		\
		"tftpboot $second_image && " \
		"mmc write $loadaddr 0 100 && " \
		"tftpboot $third_image && " \
		"mmc write $loadaddr 100 f00\0" \
	"nandupdate=nand erase 0 0x00100000 &&"			\
		"tftpboot $second_image && " \
		"nand write $loadaddr 0 0x00020000 && " \
		"tftpboot $third_image && " \
		"nand write $loadaddr 0x00020000 0x001e0000\0" \
	"sdupdate=sdsetn &&" \
		"mmc dev $sd_first_dev &&" \
		"tftpboot $second_image && " \
		"mmc write $loadaddr 0 100 && " \
		"tftpboot $third_image && " \
		"mmc write $loadaddr 100 f00\0" \
	"usbupdate=usb start &&" \
		"tftpboot $second_image && " \
		"usb write $loadaddr 0 100 && " \
		"tftpboot $third_image && " \
		"usb write $loadaddr 100 f00\0" \
	BOOT_IMAGES \
	LINUXBOOT_ENV_SETTINGS \
	BOOTENV

#define CONFIG_SYS_BOOTMAPSZ			0x20000000

/* only for SPL */

/* subtract sizeof(struct image_header) */
#define CONFIG_SYS_UBOOT_BASE			(0x130000 - 0x40)

#endif /* __CONFIG_UNIPHIER_H__ */