2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2011-03-14 15:01:04 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2011
|
|
|
|
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_KEYMILE_POWERPC_H
|
|
|
|
#define __CONFIG_KEYMILE_POWERPC_H
|
|
|
|
|
2013-03-05 14:39:46 +00:00
|
|
|
/* Do boardspecific init for all boards */
|
|
|
|
|
2011-07-04 22:24:01 +00:00
|
|
|
/* EEprom support 24C08, 24C16, 24C64 */
|
|
|
|
#define CONFIG_SYS_EEPROM_PAGE_WRITE_ENABLE
|
|
|
|
|
2020-10-09 15:21:32 +00:00
|
|
|
/* Increase max size of compressed kernel */
|
|
|
|
#define CONFIG_SYS_BOOTM_LEN 0x2000000 /* 32 MB */
|
|
|
|
|
2011-03-14 15:01:04 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* (PRAM usage)
|
|
|
|
* ... -------------------------------------------------------
|
|
|
|
* ... |ROOTFSSIZE | PNVRAM |PHRAM |RESERVED_PRAM | END_OF_RAM
|
|
|
|
* ... |<------------------- pram -------------------------->|
|
|
|
|
* ... -------------------------------------------------------
|
|
|
|
* @END_OF_RAM:
|
|
|
|
* @CONFIG_KM_RESERVED_PRAM: reserved pram for special purpose
|
|
|
|
* @CONFIG_KM_PHRAM: address for /var
|
|
|
|
* @CONFIG_KM_PNVRAM: address for PNVRAM (for the application)
|
|
|
|
* @CONFIG_KM_ROOTFSSIZE: address for rootfilesystem in RAM
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* size of rootfs in RAM */
|
|
|
|
#define CONFIG_KM_ROOTFSSIZE 0x0
|
2014-08-13 08:24:04 +00:00
|
|
|
/* set the default PRAM value to at least PNVRAM + PHRAM when pram env variable
|
|
|
|
* is not valid yet, which is the case for when u-boot copies itself to RAM */
|
|
|
|
#define CONFIG_PRAM ((CONFIG_KM_PNVRAM + CONFIG_KM_PHRAM)>>10)
|
2011-03-14 15:01:04 +00:00
|
|
|
|
2011-07-04 21:27:16 +00:00
|
|
|
/* architecture specific default bootargs */
|
|
|
|
#define CONFIG_KM_DEF_BOOT_ARGS_CPU ""
|
|
|
|
|
2011-03-14 15:01:04 +00:00
|
|
|
#define CONFIG_KM_DEF_ENV_CPU \
|
2018-03-28 12:38:20 +00:00
|
|
|
"u-boot="CONFIG_HOSTNAME "/u-boot.bin\0" \
|
2011-03-14 15:01:04 +00:00
|
|
|
"update=" \
|
2012-09-23 15:41:23 +00:00
|
|
|
"protect off " __stringify(BOOTFLASH_START) " +${filesize} && "\
|
|
|
|
"erase " __stringify(BOOTFLASH_START) " +${filesize} && "\
|
|
|
|
"cp.b ${load_addr_r} " __stringify(BOOTFLASH_START) \
|
2011-03-14 15:01:04 +00:00
|
|
|
" ${filesize} && " \
|
2012-09-23 15:41:23 +00:00
|
|
|
"protect on " __stringify(BOOTFLASH_START) " +${filesize}\0"\
|
arm/km: define fdt_high env variable and allow backwards compatibility
Add set_fdthigh subcommand to "subbootcmds" (release) so to set "fdt_high"
This is necessary on Kirkwood so that the FDT does not get relocated
above the memory limit that the kernel cannot access
(that is the memory part reserved for the switch).
This was tested on NUSA1, where it is necessary, and on ETER1, where it
doesn't seem to hurt.
We want the scripts to also work with older versions of u-boot, where:
a) set_fdthigh is not defined (will be default env for newer u-boots)
b) the fdt will not be available
For this reason, we use "set_fdthigh" to tell whether we are running
a newer (FDT-aware) u-boot or not.
So if "set_fdthigh" runs successfully or arch != arm we try loading
the fdt; otherwise we proceed normally.
Notice how, contrary to release mode, set_fdthigh will _not_ be part of
subbootcmds for develop and ramfs, but will be executed as part of
"tftpfdt".
Since this is only needed for kirkwood cards, and it prevents the kernel
from booting on QorIQ (though it seemed to work on ETER1), we change
its definition in the default env for powerpc so that the value is only
set on ARM.
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Acked-by: Valentin Longchamp <valentin.longchamp@keymile.com>
2014-01-27 15:58:28 +00:00
|
|
|
"set_fdthigh=true\0" \
|
2015-11-13 15:15:20 +00:00
|
|
|
"checkfdt=true\0" \
|
2020-10-09 15:21:32 +00:00
|
|
|
"bootm_mapsize=" __stringify(CONFIG_SYS_BOOTM_LEN) "\0" \
|
2011-03-14 15:01:04 +00:00
|
|
|
""
|
|
|
|
|
|
|
|
#endif /* __CONFIG_KEYMILE_POWERPC_H */
|