Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2011 |
| 3 | * Heiko Schocher, DENX Software Engineering, hs@denx.de. |
| 4 | * |
| 5 | * See file CREDITS for list of people who contributed to this |
| 6 | * project. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License as |
| 10 | * published by the Free Software Foundation; either version 2 of |
| 11 | * the License, or (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21 | * MA 02111-1307 USA |
| 22 | */ |
| 23 | |
| 24 | #ifndef __CONFIG_KEYMILE_POWERPC_H |
| 25 | #define __CONFIG_KEYMILE_POWERPC_H |
| 26 | |
| 27 | #define CONFIG_BOOTCOUNT_LIMIT |
| 28 | |
| 29 | #define CONFIG_CMD_DTT |
| 30 | #define CONFIG_JFFS2_CMDLINE |
| 31 | |
| 32 | #define CONFIG_ENV_SIZE 0x04000 /* Size of Environment */ |
| 33 | #define CONFIG_FLASH_CFI_MTD |
| 34 | |
| 35 | #define CONFIG_SYS_MEMTEST_START 0x00100000 /* memtest works on */ |
| 36 | |
| 37 | #define CONFIG_SYS_MEMTEST_END 0x00f00000 /* 1 ... 15 MB in DRAM */ |
| 38 | |
| 39 | #define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */ |
| 40 | |
| 41 | /****************************************************************************** |
| 42 | * (PRAM usage) |
| 43 | * ... ------------------------------------------------------- |
| 44 | * ... |ROOTFSSIZE | PNVRAM |PHRAM |RESERVED_PRAM | END_OF_RAM |
| 45 | * ... |<------------------- pram -------------------------->| |
| 46 | * ... ------------------------------------------------------- |
| 47 | * @END_OF_RAM: |
| 48 | * @CONFIG_KM_RESERVED_PRAM: reserved pram for special purpose |
| 49 | * @CONFIG_KM_PHRAM: address for /var |
| 50 | * @CONFIG_KM_PNVRAM: address for PNVRAM (for the application) |
| 51 | * @CONFIG_KM_ROOTFSSIZE: address for rootfilesystem in RAM |
| 52 | */ |
| 53 | |
| 54 | /* size of rootfs in RAM */ |
| 55 | #define CONFIG_KM_ROOTFSSIZE 0x0 |
| 56 | /* pseudo-non volatile RAM [hex] */ |
| 57 | #define CONFIG_KM_PNVRAM 0x80000 |
| 58 | /* physical RAM MTD size [hex] */ |
| 59 | #define CONFIG_KM_PHRAM 0x100000 |
| 60 | /* resereved pram area at the end of memroy [hex] */ |
| 61 | #define CONFIG_KM_RESERVED_PRAM 0x0 |
| 62 | /* enable protected RAM */ |
| 63 | #define CONFIG_PRAM 0 |
| 64 | |
| 65 | #define CONFIG_KM_CRAMFS_ADDR 0x800000 |
| 66 | #define CONFIG_KM_KERNEL_ADDR 0x400000 /* 3968Kbytes */ |
| 67 | #define CONFIG_KM_FDT_ADDR 0x7E0000 /* 128Kbytes */ |
| 68 | |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame^] | 69 | /* architecture specific default bootargs */ |
| 70 | #define CONFIG_KM_DEF_BOOT_ARGS_CPU "" |
| 71 | |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 72 | #define CONFIG_KM_DEF_ENV_CPU \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame^] | 73 | "boot=bootm ${load_addr_r} - ${fdt_addr_r}\0" \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 74 | "cramfsloadfdt=" \ |
| 75 | "cramfsload ${fdt_addr_r} " \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame^] | 76 | "fdt_0x${IVM_BoardId}_0x${IVM_HWKey}.dtb\0" \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 77 | "fdt_addr_r=" xstr(CONFIG_KM_FDT_ADDR) "\0" \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 78 | "update=" \ |
| 79 | "protect off " xstr(BOOTFLASH_START) " +${filesize} && "\ |
| 80 | "erase " xstr(BOOTFLASH_START) " +${filesize} && " \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame^] | 81 | "cp.b ${load_addr_r} " xstr(BOOTFLASH_START) \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 82 | " ${filesize} && " \ |
| 83 | "protect on " xstr(BOOTFLASH_START) " +${filesize}\0" \ |
| 84 | "" |
| 85 | |
Holger Brunck | 0b53902 | 2011-05-04 01:47:34 +0000 | [diff] [blame] | 86 | #define CONFIG_KM_ARCH_DBG_FILE "scripts/debug-ppc-env.txt" |
| 87 | |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 88 | #endif /* __CONFIG_KEYMILE_POWERPC_H */ |