]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/km/km-powerpc.h
Merge branch 'u-boot-imx/master' into 'u-boot-arm/master'
[karo-tx-uboot.git] / include / configs / km / km-powerpc.h
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 /* Do boardspecific init for all boards */
28 #define CONFIG_BOARD_EARLY_INIT_R
29 #define CONFIG_LAST_STAGE_INIT
30
31 #define CONFIG_BOOTCOUNT_LIMIT
32
33 #define CONFIG_CMD_DTT
34 #define CONFIG_JFFS2_CMDLINE
35
36 /* EEprom support 24C08, 24C16, 24C64 */
37 #define CONFIG_SYS_I2C_MULTI_EEPROMS
38 #define CONFIG_SYS_EEPROM_PAGE_WRITE_ENABLE
39 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS       3  /* 8 Byte write page */
40 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS   10
41
42 #define CONFIG_ENV_SIZE         0x04000         /* Size of Environment */
43 #define CONFIG_FLASH_CFI_MTD
44
45 #define CONFIG_SYS_MEMTEST_START 0x00100000     /* memtest works on */
46
47 #define CONFIG_SYS_MEMTEST_END  0x00f00000      /* 1 ... 15 MB in DRAM  */
48
49 #define CONFIG_SYS_LOAD_ADDR    0x100000        /* default load address */
50
51 /******************************************************************************
52  * (PRAM usage)
53  * ... -------------------------------------------------------
54  * ... |ROOTFSSIZE | PNVRAM |PHRAM |RESERVED_PRAM | END_OF_RAM
55  * ... |<------------------- pram -------------------------->|
56  * ... -------------------------------------------------------
57  * @END_OF_RAM:
58  * @CONFIG_KM_RESERVED_PRAM: reserved pram for special purpose
59  * @CONFIG_KM_PHRAM: address for /var
60  * @CONFIG_KM_PNVRAM: address for PNVRAM (for the application)
61  * @CONFIG_KM_ROOTFSSIZE: address for rootfilesystem in RAM
62  */
63
64 /* size of rootfs in RAM */
65 #define CONFIG_KM_ROOTFSSIZE    0x0
66 /* pseudo-non volatile RAM [hex] */
67 #define CONFIG_KM_PNVRAM        0x80000
68 /* physical RAM MTD size [hex] */
69 #define CONFIG_KM_PHRAM         0x100000
70 /* resereved pram area at the end of memroy [hex] */
71 #define CONFIG_KM_RESERVED_PRAM 0x0
72 /* enable protected RAM */
73 #define CONFIG_PRAM             0
74
75 #define CONFIG_KM_CRAMFS_ADDR   0x800000
76 #define CONFIG_KM_KERNEL_ADDR   0x400000        /* 3968Kbytes */
77 #define CONFIG_KM_FDT_ADDR      0x7E0000        /* 128Kbytes */
78
79 /* architecture specific default bootargs */
80 #define CONFIG_KM_DEF_BOOT_ARGS_CPU             ""
81
82 #define CONFIG_KM_DEF_ENV_CPU                                           \
83         "boot=bootm ${load_addr_r} - ${fdt_addr_r}\0"                   \
84         "cramfsloadfdt="                                                \
85                 "cramfsload ${fdt_addr_r} "                             \
86                 "fdt_0x${IVM_BoardId}_0x${IVM_HWKey}.dtb\0"             \
87         "fdt_addr_r=" __stringify(CONFIG_KM_FDT_ADDR) "\0"              \
88         "u-boot="__stringify(CONFIG_HOSTNAME) "/u-boot.bin\0"           \
89         "update="                                                       \
90                 "protect off " __stringify(BOOTFLASH_START) " +${filesize} && "\
91                 "erase " __stringify(BOOTFLASH_START) "  +${filesize} && "\
92                 "cp.b ${load_addr_r} " __stringify(BOOTFLASH_START)     \
93                 "  ${filesize} && "                                     \
94                 "protect on " __stringify(BOOTFLASH_START) "  +${filesize}\0"\
95         ""
96
97 #endif /* __CONFIG_KEYMILE_POWERPC_H */