Blame view

include/configs/MCR3000.h 3.31 KB
83d290c56   Tom Rini   SPDX: Convert all...
1
  /* SPDX-License-Identifier: GPL-2.0+ */
53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
2
3
4
  /*
   * Copyright (C) 2010-2017 CS Systemes d'Information
   * Christophe Leroy <christophe.leroy@c-s.fr>
53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
5
6
7
8
9
10
   */
  
  #ifndef __CONFIG_H
  #define __CONFIG_H
  
  /* High Level Configuration Options */
53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
  
  #define CONFIG_EXTRA_ENV_SETTINGS					\
  	"sdram_type=SDRAM\0"						\
  	"flash_type=AM29LV160DB\0"					\
  	"loadaddr=0x400000\0"						\
  	"filename=uImage.lzma\0"					\
  	"nfsroot=/opt/ofs\0"						\
  	"dhcp_ip=ip=:::::eth0:dhcp\0"					\
  	"console_args=console=ttyCPM0,115200N8\0"			\
  	"flashboot=setenv bootargs "					\
  		"${console_args} "					\
  		"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:"	\
  		"mcr3k:eth0:off;"					\
  		"${ofl_args}; "						\
  		"bootm 0x04060000 - 0x04050000\0"			\
  	"tftpboot=setenv bootargs "					\
  		"${console_args} "					\
  		"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:"	\
  		"mcr3k:eth0:off "					\
  		"${ofl_args}; "						\
  		"tftp ${loadaddr} ${filename};"				\
  		"tftp 0xf00000 mcr3000.dtb;"				\
  		"bootm ${loadaddr} - 0xf00000\0"			\
  	"netboot=dhcp ${loadaddr} ${filename};"				\
  		"tftp 0xf00000 mcr3000.dtb;"				\
  		"setenv bootargs "					\
  		"root=/dev/nfs rw "					\
  		"${console_args} "					\
  		"${dhcp_ip};"						\
  		"bootm ${loadaddr} - 0xf00000\0"			\
  	"nfsboot=setenv bootargs "					\
  		"root=/dev/nfs rw nfsroot=${serverip}:${nfsroot} "	\
  		"${console_args} "					\
  		"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:"	\
  		"mcr3k:eth0:off;"					\
  		"bootm 0x04060000 - 0x04050000\0"			\
  	"dhcpboot=dhcp ${loadaddr} ${filename};"			\
  		"tftp 0xf00000 mcr3000.dtb;"				\
  		"setenv bootargs "					\
  		"${console_args} "					\
  		"${dhcp_ip} "						\
  		"${ofl_args}; "						\
  		"bootm ${loadaddr} - 0xf00000\0"
53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
54
55
56
  #define CONFIG_IPADDR			192.168.0.3
  #define CONFIG_SERVERIP			192.168.0.1
  #define CONFIG_NETMASK			255.0.0.0
53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
57
  #define CONFIG_LOADS_ECHO	1	/* echo on for serial download	*/
53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
58

53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
59
  /* Miscellaneous configurable options */
53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
60

53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
61
62
63
64
65
66
67
68
  #define CONFIG_SYS_MEMTEST_START	0x00002000
  #define CONFIG_SYS_MEMTEST_END		0x00800000
  
  #define	CONFIG_SYS_LOAD_ADDR		0x200000
  
  #define	CONFIG_SYS_HZ			1000
  
  /* Definitions for initial stack pointer and data area (in DPRAM) */
b3ede3317   Christophe Leroy   board: MCR3000: c...
69
70
  #define CONFIG_SYS_INIT_RAM_ADDR	(CONFIG_SYS_IMMR + 0x2800)
  #define	CONFIG_SYS_INIT_RAM_SIZE	(0x2e00 - 0x2800)
53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
71
72
73
  
  /* RAM configuration (note that CONFIG_SYS_SDRAM_BASE must be zero) */
  #define	CONFIG_SYS_SDRAM_BASE		0x00000000
53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
74
75
76
  
  /* FLASH organization */
  #define CONFIG_SYS_FLASH_BASE		CONFIG_SYS_TEXT_BASE
53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
77
78
79
80
81
82
83
84
85
86
87
  #define CONFIG_SYS_MAX_FLASH_BANKS	1
  #define CONFIG_SYS_MAX_FLASH_SECT	35
  #define CONFIG_SYS_FLASH_ERASE_TOUT	120000
  #define CONFIG_SYS_FLASH_WRITE_TOUT	500
  
  /*
   * For booting Linux, the board info and command line data
   * have to be in the first 8 MB of memory, since this is
   * the maximum mapped by the Linux kernel during initialization.
   */
  #define	CONFIG_SYS_BOOTMAPSZ		(8 << 20)
0fb622056   Christophe Leroy   board: MCR3000: U...
88
  #define	CONFIG_SYS_MONITOR_LEN		(320 << 10)
53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
89
90
91
92
93
94
  #define CONFIG_SYS_MONITOR_BASE		CONFIG_SYS_TEXT_BASE
  #define CONFIG_SYS_MALLOC_LEN		(4096 << 10)
  
  /* Environment Configuration */
  
  /* environment is in FLASH */
0fb622056   Christophe Leroy   board: MCR3000: U...
95
96
  #define CONFIG_ENV_SECT_SIZE	0x2000
  #define CONFIG_ENV_OFFSET	0x4000
53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
97
  #define CONFIG_ENV_OVERWRITE	1
53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
98
99
  /* Ethernet configuration part */
  #define CONFIG_SYS_DISCOVER_PHY		1
53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
100
  #define CONFIG_MII_INIT			1
53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
101
102
103
104
105
  
  /* NAND configuration part */
  #define CONFIG_SYS_MAX_NAND_DEVICE	1
  #define CONFIG_SYS_NAND_MAX_CHIPS	1
  #define CONFIG_SYS_NAND_BASE		0x0C000000
53193a4f0   Christophe Leroy   powerpc, 8xx: Add...
106
  #endif /* __CONFIG_H */