2011-03-14 15:01:04 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2011
|
|
|
|
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
|
|
|
|
*
|
2013-10-07 11:07:26 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2011-03-14 15:01:04 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_KEYMILE_POWERPC_H
|
|
|
|
#define __CONFIG_KEYMILE_POWERPC_H
|
|
|
|
|
2013-03-05 14:39:46 +00:00
|
|
|
/* Do boardspecific init for all boards */
|
|
|
|
#define CONFIG_BOARD_EARLY_INIT_R
|
|
|
|
#define CONFIG_LAST_STAGE_INIT
|
|
|
|
|
2011-03-14 15:01:04 +00:00
|
|
|
#define CONFIG_BOOTCOUNT_LIMIT
|
|
|
|
|
|
|
|
#define CONFIG_CMD_DTT
|
|
|
|
#define CONFIG_JFFS2_CMDLINE
|
|
|
|
|
2013-10-18 09:47:18 +00:00
|
|
|
/* standard km ethernet_present for piggy */
|
|
|
|
#define CONFIG_KM_COMMON_ETH_INIT
|
|
|
|
|
2011-07-04 22:24:01 +00:00
|
|
|
/* EEprom support 24C08, 24C16, 24C64 */
|
|
|
|
#define CONFIG_SYS_I2C_MULTI_EEPROMS
|
|
|
|
#define CONFIG_SYS_EEPROM_PAGE_WRITE_ENABLE
|
|
|
|
#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3 /* 8 Byte write page */
|
|
|
|
#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
|
|
|
|
|
2011-03-14 15:01:04 +00:00
|
|
|
#define CONFIG_ENV_SIZE 0x04000 /* Size of Environment */
|
|
|
|
#define CONFIG_FLASH_CFI_MTD
|
|
|
|
|
|
|
|
#define CONFIG_SYS_MEMTEST_START 0x00100000 /* memtest works on */
|
|
|
|
|
|
|
|
#define CONFIG_SYS_MEMTEST_END 0x00f00000 /* 1 ... 15 MB in DRAM */
|
|
|
|
|
|
|
|
#define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */
|
|
|
|
|
2013-10-18 09:47:15 +00:00
|
|
|
/* Reserve 4 MB for malloc */
|
|
|
|
#define CONFIG_SYS_MALLOC_LEN (4 * 1024 * 1024)
|
|
|
|
|
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
|
|
|
|
/* pseudo-non volatile RAM [hex] */
|
|
|
|
#define CONFIG_KM_PNVRAM 0x80000
|
|
|
|
/* physical RAM MTD size [hex] */
|
|
|
|
#define CONFIG_KM_PHRAM 0x100000
|
|
|
|
/* resereved pram area at the end of memroy [hex] */
|
|
|
|
#define CONFIG_KM_RESERVED_PRAM 0x0
|
|
|
|
/* enable protected RAM */
|
|
|
|
#define CONFIG_PRAM 0
|
|
|
|
|
|
|
|
#define CONFIG_KM_CRAMFS_ADDR 0x800000
|
|
|
|
#define CONFIG_KM_KERNEL_ADDR 0x400000 /* 3968Kbytes */
|
|
|
|
#define CONFIG_KM_FDT_ADDR 0x7E0000 /* 128Kbytes */
|
|
|
|
|
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 \
|
2011-07-04 21:27:16 +00:00
|
|
|
"boot=bootm ${load_addr_r} - ${fdt_addr_r}\0" \
|
2011-03-14 15:01:04 +00:00
|
|
|
"cramfsloadfdt=" \
|
|
|
|
"cramfsload ${fdt_addr_r} " \
|
2011-07-04 21:27:16 +00:00
|
|
|
"fdt_0x${IVM_BoardId}_0x${IVM_HWKey}.dtb\0" \
|
2012-09-23 15:41:23 +00:00
|
|
|
"fdt_addr_r=" __stringify(CONFIG_KM_FDT_ADDR) "\0" \
|
|
|
|
"u-boot="__stringify(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"\
|
2011-03-14 15:01:04 +00:00
|
|
|
""
|
|
|
|
|
|
|
|
#endif /* __CONFIG_KEYMILE_POWERPC_H */
|