1
2
3
4#include <linux/stringify.h>
5#define BOOTFLASH_START 0xF0000000
6
7
8
9
10#define CONFIG_SYS_SDRAM_BASE 0x00000000
11#define CONFIG_SYS_SDRAM_BASE2 (CONFIG_SYS_SDRAM_BASE + 0x10000000)
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
20
21#define CONFIG_SYS_DDR_SIZE 2048
22
23
24
25
26#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
27#define CONFIG_SYS_FLASH_BASE 0xF0000000
28
29#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
30#define CONFIG_SYS_RAMBOOT
31#endif
32
33
34#define CONFIG_SYS_MONITOR_LEN (768 * 1024)
35
36
37
38
39#define CONFIG_SYS_INIT_RAM_LOCK
40#define CONFIG_SYS_INIT_RAM_ADDR 0xE6000000
41#define CONFIG_SYS_INIT_RAM_SIZE 0x1000
42#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - \
43 GENERATED_GBL_DATA_SIZE)
44
45
46
47
48
49
50
51
52
53
54
55
56
57#define CONFIG_SYS_FLASH_SIZE 256
58
59#define CONFIG_SYS_MAX_FLASH_SECT 512
60#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE }
61
62
63#define CONFIG_SYS_NUM_I2C_BUSES 4
64#define CONFIG_SYS_I2C_MAX_HOPS 1
65#define CONFIG_SYS_I2C_BUSES {{0, {I2C_NULL_HOP} }, \
66 {0, {{I2C_MUX_PCA9547, 0x70, 2} } }, \
67 {0, {{I2C_MUX_PCA9547, 0x70, 1} } }, \
68 {1, {I2C_NULL_HOP} } }
69
70#if defined(CONFIG_CMD_NAND)
71#define CONFIG_NAND_KMETER1
72#define CONFIG_SYS_MAX_NAND_DEVICE 1
73#define CONFIG_SYS_NAND_BASE CONFIG_SYS_KMBEC_FPGA_BASE
74#endif
75
76
77
78
79
80
81#define CONFIG_SYS_BOOTMAPSZ (8 << 20)
82
83
84
85
86
87#ifndef CONFIG_SYS_RAMBOOT
88
89#endif
90
91
92
93
94#ifndef CONFIG_KM_DEF_ENV
95#define CONFIG_KM_DEF_ENV "km-common=empty\0"
96#endif
97
98#ifndef CONFIG_KM_DEF_ARCH
99#define CONFIG_KM_DEF_ARCH "arch=ppc_82xx\0"
100#endif
101
102#define CONFIG_EXTRA_ENV_SETTINGS \
103 CONFIG_KM_DEF_ENV \
104 CONFIG_KM_DEF_ARCH \
105 "newenv=" \
106 "prot off " __stringify(CONFIG_ENV_ADDR) " +0x40000 && " \
107 "era " __stringify(CONFIG_ENV_ADDR) " +0x40000\0" \
108 "unlock=yes\0" \
109 ""
110
111#if defined(CONFIG_UEC_ETH)
112#define CONFIG_HAS_ETH0
113#endif
114
115
116
117
118#define CONFIG_UEC_ETH
119#define CONFIG_ETHPRIME "UEC0"
120