61c713459543efea36e27a55a7dd5fe518a68260
[platform/kernel/u-boot.git] / include / configs / km / km-mpc83xx.h
1 /*
2  * Internal Definitions
3  */
4 #include <linux/stringify.h>
5 #define BOOTFLASH_START 0xF0000000
6
7 /*
8  * DDR Setup
9  */
10 #define CONFIG_SYS_SDRAM_BASE           0x00000000 /* DDR is system memory */
11 #define CONFIG_SYS_SDRAM_BASE2  (CONFIG_SYS_SDRAM_BASE + 0x10000000) /* +256M */
12
13 #define CONFIG_SYS_DDR_SDRAM_CLK_CNTL   (DDR_SDRAM_CLK_CNTL_SS_EN | \
14                                         DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05)
15
16 #define CFG_83XX_DDR_USES_CS0
17
18 /*
19  * Manually set up DDR parameters
20  */
21 #define CONFIG_SYS_SDRAM_SIZE           0x80000000 /* 2048 MiB */
22
23 /*
24  * The reserved memory
25  */
26 #define CONFIG_SYS_FLASH_BASE           0xF0000000
27
28 /* Reserve 768 kB for Mon */
29 #define CONFIG_SYS_MONITOR_LEN          (768 * 1024)
30
31 /*
32  * Initial RAM Base Address Setup
33  */
34 #define CONFIG_SYS_INIT_RAM_ADDR        0xE6000000 /* Initial RAM address */
35 #define CONFIG_SYS_INIT_RAM_SIZE        0x1000 /* End of used area in RAM */
36 /*
37  * Init Local Bus Memory Controller:
38  *
39  * Bank Bus     Machine PortSz  Size  Device
40  * ---- ---     ------- ------  -----  ------
41  *  0   Local   GPCM    16 bit  256MB FLASH
42  *  1   Local   GPCM     8 bit  128MB GPIO/PIGGY
43  *
44  */
45
46 /*
47  * FLASH on the Local Bus
48  */
49 #define CONFIG_SYS_FLASH_SIZE           256 /* max FLASH size is 256M */
50
51 #define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE }
52
53 /* I2C */
54 #define CONFIG_SYS_NUM_I2C_BUSES        4
55 #define CONFIG_SYS_I2C_MAX_HOPS         1
56 #define CONFIG_SYS_I2C_BUSES    {{0, {I2C_NULL_HOP} }, \
57                 {0, {{I2C_MUX_PCA9547, 0x70, 2} } }, \
58                 {0, {{I2C_MUX_PCA9547, 0x70, 1} } }, \
59                 {1, {I2C_NULL_HOP} } }
60
61 #if defined(CONFIG_CMD_NAND)
62 #define CONFIG_NAND_KMETER1
63 #define CONFIG_SYS_MAX_NAND_DEVICE      1
64 #define CONFIG_SYS_NAND_BASE            CONFIG_SYS_KMBEC_FPGA_BASE
65 #endif
66
67 /*
68  * For booting Linux, the board info and command line data
69  * have to be in the first 8 MB of memory, since this is
70  * the maximum mapped by the Linux kernel during initialization.
71  */
72 #define CONFIG_SYS_BOOTMAPSZ            (8 << 20)
73
74 /*
75  * Environment
76  */
77
78 /*
79  * Environment Configuration
80  */
81 #ifndef CONFIG_KM_DEF_ENV               /* if not set by keymile-common.h */
82 #define CONFIG_KM_DEF_ENV "km-common=empty\0"
83 #endif
84
85 #ifndef CONFIG_KM_DEF_ARCH
86 #define CONFIG_KM_DEF_ARCH      "arch=ppc_82xx\0"
87 #endif
88
89 #define CONFIG_EXTRA_ENV_SETTINGS \
90         CONFIG_KM_DEF_ENV                                                \
91         CONFIG_KM_DEF_ARCH                                               \
92         "newenv="                                                        \
93                 "prot off " __stringify(CONFIG_ENV_ADDR) " +0x40000 && " \
94                 "era " __stringify(CONFIG_ENV_ADDR) " +0x40000\0"        \
95         "unlock=yes\0"                                                   \
96         ""
97
98 /*
99  * QE UEC ethernet configuration
100  */
101 #define CONFIG_UEC_ETH