xref: /rk3399_rockchip-uboot/include/configs/pb1x00.h (revision 8bde63eb3f79d68f693201528dafc8ae7aa087de)
1265817c7SWolfgang Denk /*
2265817c7SWolfgang Denk  * (C) Copyright 2003
3265817c7SWolfgang Denk  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4265817c7SWolfgang Denk  *
5265817c7SWolfgang Denk  * See file CREDITS for list of people who contributed to this
6265817c7SWolfgang Denk  * project.
7265817c7SWolfgang Denk  *
8265817c7SWolfgang Denk  * This program is free software; you can redistribute it and/or
9265817c7SWolfgang Denk  * modify it under the terms of the GNU General Public License as
10265817c7SWolfgang Denk  * published by the Free Software Foundation; either version 2 of
11265817c7SWolfgang Denk  * the License, or (at your option) any later version.
12265817c7SWolfgang Denk  *
13265817c7SWolfgang Denk  * This program is distributed in the hope that it will be useful,
14265817c7SWolfgang Denk  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15265817c7SWolfgang Denk  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16265817c7SWolfgang Denk  * GNU General Public License for more details.
17265817c7SWolfgang Denk  *
18265817c7SWolfgang Denk  * You should have received a copy of the GNU General Public License
19265817c7SWolfgang Denk  * along with this program; if not, write to the Free Software
20265817c7SWolfgang Denk  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21265817c7SWolfgang Denk  * MA 02111-1307 USA
22265817c7SWolfgang Denk  */
23265817c7SWolfgang Denk 
24265817c7SWolfgang Denk /*
25265817c7SWolfgang Denk  * This file contains the configuration parameters for the dbau1x00 board.
26265817c7SWolfgang Denk  */
27265817c7SWolfgang Denk 
28265817c7SWolfgang Denk #ifndef __CONFIG_H
29265817c7SWolfgang Denk #define __CONFIG_H
30265817c7SWolfgang Denk 
31265817c7SWolfgang Denk #define CONFIG_MIPS32		1  /* MIPS32 CPU core	*/
32265817c7SWolfgang Denk #define CONFIG_PB1X00		1
33*8bde63ebSShinya Kuribayashi #define CONFIG_SOC_AU1X00	1  /* alchemy series cpu */
34265817c7SWolfgang Denk 
35265817c7SWolfgang Denk #ifdef CONFIG_PB1000
36*8bde63ebSShinya Kuribayashi #define CONFIG_SOC_AU1000	1
37265817c7SWolfgang Denk #else
38265817c7SWolfgang Denk #ifdef CONFIG_PB1100
39*8bde63ebSShinya Kuribayashi #define CONFIG_SOC_AU1100	1
40265817c7SWolfgang Denk #else
41265817c7SWolfgang Denk #ifdef CONFIG_PB1500
42*8bde63ebSShinya Kuribayashi #define CONFIG_SOC_AU1500	1
43265817c7SWolfgang Denk #else
44265817c7SWolfgang Denk #error "No valid board set"
45265817c7SWolfgang Denk #endif
46265817c7SWolfgang Denk #endif
47265817c7SWolfgang Denk #endif
48265817c7SWolfgang Denk 
49265817c7SWolfgang Denk #define CONFIG_ETHADDR		DE:AD:BE:EF:01:01    /* Ethernet address */
50265817c7SWolfgang Denk 
51265817c7SWolfgang Denk #define CONFIG_BOOTDELAY	2	/* autoboot after 2 seconds	*/
52265817c7SWolfgang Denk 
53265817c7SWolfgang Denk #define CONFIG_BAUDRATE		115200
54265817c7SWolfgang Denk 
55265817c7SWolfgang Denk /* valid baudrates */
56265817c7SWolfgang Denk #define CFG_BAUDRATE_TABLE	{ 9600, 19200, 38400, 57600, 115200 }
57265817c7SWolfgang Denk 
58265817c7SWolfgang Denk #define	CONFIG_TIMESTAMP		/* Print image info with timestamp */
59265817c7SWolfgang Denk #undef	CONFIG_BOOTARGS
60265817c7SWolfgang Denk 
61265817c7SWolfgang Denk #define	CONFIG_EXTRA_ENV_SETTINGS					\
62fe126d8bSWolfgang Denk 	"addmisc=setenv bootargs ${bootargs} "				\
63fe126d8bSWolfgang Denk 		"console=ttyS0,${baudrate} "				\
64265817c7SWolfgang Denk 		"panic=1\0"						\
65265817c7SWolfgang Denk 	"bootfile=/vmlinux.img\0"				\
66fe126d8bSWolfgang Denk 	"load=tftp 80500000 ${u-boot}\0"				\
67265817c7SWolfgang Denk 	""
68265817c7SWolfgang Denk /* Boot from NFS root */
69fe126d8bSWolfgang Denk #define CONFIG_BOOTCOMMAND	"bootp; setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm"
70265817c7SWolfgang Denk 
71265817c7SWolfgang Denk /*
72265817c7SWolfgang Denk  * Miscellaneous configurable options
73265817c7SWolfgang Denk  */
74265817c7SWolfgang Denk #define	CFG_LONGHELP				/* undef to save memory      */
75265817c7SWolfgang Denk #define	CFG_PROMPT		"Pb1x00 # "	/* Monitor Command Prompt    */
76265817c7SWolfgang Denk #define	CFG_CBSIZE		256		/* Console I/O Buffer Size   */
77265817c7SWolfgang Denk #define	CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
78265817c7SWolfgang Denk #define	CFG_MAXARGS		16		/* max number of command args*/
79265817c7SWolfgang Denk 
80265817c7SWolfgang Denk #define CFG_MALLOC_LEN		128*1024
81265817c7SWolfgang Denk 
82265817c7SWolfgang Denk #define CFG_BOOTPARAMS_LEN	128*1024
83265817c7SWolfgang Denk 
84a55d4817SShinya Kuribayashi #define CFG_MIPS_TIMER_FREQ	396000000
85a55d4817SShinya Kuribayashi 
86a55d4817SShinya Kuribayashi #define CFG_HZ			1000
87265817c7SWolfgang Denk 
88265817c7SWolfgang Denk #define CFG_SDRAM_BASE		0x80000000     /* Cached addr */
89265817c7SWolfgang Denk 
90265817c7SWolfgang Denk #define	CFG_LOAD_ADDR		0x81000000     /* default load address	*/
91265817c7SWolfgang Denk 
92265817c7SWolfgang Denk #define CFG_MEMTEST_START	0x80100000
93265817c7SWolfgang Denk #undef CFG_MEMTEST_START
94265817c7SWolfgang Denk #define CFG_MEMTEST_START       0x80200000
95265817c7SWolfgang Denk #define CFG_MEMTEST_END		0x83800000
96265817c7SWolfgang Denk 
97265817c7SWolfgang Denk /*-----------------------------------------------------------------------
98265817c7SWolfgang Denk  * FLASH and environment organization
99265817c7SWolfgang Denk  */
100265817c7SWolfgang Denk #define CFG_MAX_FLASH_BANKS	2	/* max number of memory banks */
101265817c7SWolfgang Denk #define CFG_MAX_FLASH_SECT	(128)	/* max number of sectors on one chip */
102265817c7SWolfgang Denk 
103265817c7SWolfgang Denk #define PHYS_FLASH_1		0xbec00000 /* Flash Bank #1 */
104265817c7SWolfgang Denk #define PHYS_FLASH_2		0xbfc00000 /* Flash Bank #2 */
105265817c7SWolfgang Denk 
106265817c7SWolfgang Denk /* The following #defines are needed to get flash environment right */
107265817c7SWolfgang Denk #define	CFG_MONITOR_BASE	TEXT_BASE
108265817c7SWolfgang Denk #define	CFG_MONITOR_LEN		(192 << 10)
109265817c7SWolfgang Denk 
110265817c7SWolfgang Denk #define CFG_INIT_SP_OFFSET	0x4000000
111265817c7SWolfgang Denk 
112265817c7SWolfgang Denk /* We boot from this flash, selected with dip switch */
113265817c7SWolfgang Denk #define CFG_FLASH_BASE		PHYS_FLASH_2
114265817c7SWolfgang Denk 
115265817c7SWolfgang Denk /* timeout values are in ticks */
116265817c7SWolfgang Denk #define CFG_FLASH_ERASE_TOUT	(2 * CFG_HZ) /* Timeout for Flash Erase */
117265817c7SWolfgang Denk #define CFG_FLASH_WRITE_TOUT	(2 * CFG_HZ) /* Timeout for Flash Write */
118265817c7SWolfgang Denk 
119265817c7SWolfgang Denk #define	CFG_ENV_IS_NOWHERE	1
120265817c7SWolfgang Denk 
121265817c7SWolfgang Denk /* Address and size of Primary Environment Sector	*/
122265817c7SWolfgang Denk #define CFG_ENV_ADDR		0xB0030000
123265817c7SWolfgang Denk #define CFG_ENV_SIZE		0x10000
124265817c7SWolfgang Denk 
125265817c7SWolfgang Denk #define CONFIG_FLASH_16BIT
126265817c7SWolfgang Denk 
127265817c7SWolfgang Denk #define CONFIG_NR_DRAM_BANKS	2
128265817c7SWolfgang Denk 
129265817c7SWolfgang Denk #define CONFIG_NET_MULTI
130265817c7SWolfgang Denk 
131265817c7SWolfgang Denk #define CONFIG_MEMSIZE_IN_BYTES
132265817c7SWolfgang Denk 
133265817c7SWolfgang Denk 
134265817c7SWolfgang Denk /*---USB -------------------------------------------*/
135265817c7SWolfgang Denk #if 0
136265817c7SWolfgang Denk #define CONFIG_USB_OHCI
137265817c7SWolfgang Denk #define CONFIG_USB_STORAGE
138265817c7SWolfgang Denk #define CONFIG_DOS_PARTITION
139265817c7SWolfgang Denk #endif
140265817c7SWolfgang Denk 
141265817c7SWolfgang Denk /*---ATA PCMCIA ------------------------------------*/
142265817c7SWolfgang Denk #if 0
143265817c7SWolfgang Denk #define CFG_PCMCIA_MEM_SIZE 0x4000000 /* Offset to slot 1 FIXME!!! */
144265817c7SWolfgang Denk #define CFG_PCMCIA_MEM_ADDR 0x20000000
145265817c7SWolfgang Denk #define CONFIG_PCMCIA_SLOT_A
146265817c7SWolfgang Denk 
147265817c7SWolfgang Denk #define CONFIG_ATAPI 1
148265817c7SWolfgang Denk #define CONFIG_MAC_PARTITION 1
149265817c7SWolfgang Denk 
150265817c7SWolfgang Denk /* We run CF in "true ide" mode or a harddrive via pcmcia */
151265817c7SWolfgang Denk #define CONFIG_IDE_PCMCIA 1
152265817c7SWolfgang Denk 
153265817c7SWolfgang Denk /* We only support one slot for now */
154265817c7SWolfgang Denk #define CFG_IDE_MAXBUS		1	/* max. 1 IDE bus		*/
155265817c7SWolfgang Denk #define CFG_IDE_MAXDEVICE	1	/* max. 1 drive per IDE bus	*/
156265817c7SWolfgang Denk 
157265817c7SWolfgang Denk #undef	CONFIG_IDE_LED			/* LED   for ide not supported	*/
158265817c7SWolfgang Denk #undef	CONFIG_IDE_RESET		/* reset for ide not supported	*/
159265817c7SWolfgang Denk 
160265817c7SWolfgang Denk #define CFG_ATA_IDE0_OFFSET	0x0000
161265817c7SWolfgang Denk 
162265817c7SWolfgang Denk #define CFG_ATA_BASE_ADDR       CFG_PCMCIA_MEM_ADDR
163265817c7SWolfgang Denk 
164265817c7SWolfgang Denk /* Offset for data I/O			*/
165265817c7SWolfgang Denk #define CFG_ATA_DATA_OFFSET     8
166265817c7SWolfgang Denk 
167265817c7SWolfgang Denk /* Offset for normal register accesses  */
168265817c7SWolfgang Denk #define CFG_ATA_REG_OFFSET      0
169265817c7SWolfgang Denk 
170265817c7SWolfgang Denk /* Offset for alternate registers       */
171265817c7SWolfgang Denk #define CFG_ATA_ALT_OFFSET      0x0100
172265817c7SWolfgang Denk 
173265817c7SWolfgang Denk #endif
174265817c7SWolfgang Denk /*-----------------------------------------------------------------------
175265817c7SWolfgang Denk  * Cache Configuration
176265817c7SWolfgang Denk  */
177265817c7SWolfgang Denk #define CFG_DCACHE_SIZE		16384
178265817c7SWolfgang Denk #define CFG_ICACHE_SIZE		16384
179265817c7SWolfgang Denk #define CFG_CACHELINE_SIZE	32
180265817c7SWolfgang Denk 
18126a34560SJon Loeliger 
18226a34560SJon Loeliger /*
183079a136cSJon Loeliger  * BOOTP options
184079a136cSJon Loeliger  */
185079a136cSJon Loeliger #define CONFIG_BOOTP_BOOTFILESIZE
186079a136cSJon Loeliger #define CONFIG_BOOTP_BOOTPATH
187079a136cSJon Loeliger #define CONFIG_BOOTP_GATEWAY
188079a136cSJon Loeliger #define CONFIG_BOOTP_HOSTNAME
189079a136cSJon Loeliger 
190079a136cSJon Loeliger 
191079a136cSJon Loeliger /*
19226a34560SJon Loeliger  * Command line configuration.
19326a34560SJon Loeliger  */
19426a34560SJon Loeliger #include <config_cmd_default.h>
19526a34560SJon Loeliger 
19626a34560SJon Loeliger #define CONFIG_CMD_DHCP
19726a34560SJon Loeliger #define CONFIG_CMD_ELF
19826a34560SJon Loeliger #define CONFIG_CMD_MII
19926a34560SJon Loeliger #define CONFIG_CMD_PING
20026a34560SJon Loeliger 
20126a34560SJon Loeliger #undef CONFIG_CMD_ENV
20226a34560SJon Loeliger #undef CONFIG_CMD_FAT
20326a34560SJon Loeliger #undef CONFIG_CMD_FLASH
20426a34560SJon Loeliger #undef CONFIG_CMD_FPGA
20526a34560SJon Loeliger #undef CONFIG_CMD_IDE
20626a34560SJon Loeliger #undef CONFIG_CMD_LOADS
20726a34560SJon Loeliger #undef CONFIG_CMD_RUN
20826a34560SJon Loeliger #undef CONFIG_CMD_LOADB
20926a34560SJon Loeliger #undef CONFIG_CMD_ELF
21026a34560SJon Loeliger #undef CONFIG_CMD_BDI
21126a34560SJon Loeliger #undef CONFIG_CMD_BEDBUG
212265817c7SWolfgang Denk 
213265817c7SWolfgang Denk #endif	/* __CONFIG_H */
214