summaryrefslogtreecommitdiff
path: root/cleopatre/u-boot-1.1.6/include/configs/arizona.h
blob: ef5867045549f56ab384c58066a62ca75de1ffe7 (plain)
1
2
3
4
5
6
7
8
9
10
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/**
 * /include/configs/arizona.h
 *
 * (C) Copyright 2008 SPiDCOM Technologies
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 * MA 02111-1307 USA
 */

#ifndef __CONFIG_H
#define __CONFIG_H



#define CONFIG_ARCH_ARIZONA 1

#include <asm/hardware.h>
/*
 * If we are developing, we might want to start armboot from ram
 * so we MUST NOT initialize critical regs like mem-timing ...
 */
#undef CONFIG_INIT_CRITICAL		/* undef for developing */
#define CONFIG_EXEC_FROM_SDRAM 1

#define MARIA_MASTER_CLOCK   55000000    /* peripheral clock */

#define CONFIG_BAUDRATE 115200
#define CFG_BR_DIVISOR    (MARIA_MASTER_CLOCK + 8*CONFIG_BAUDRATE)/(16*CONFIG_BAUDRATE)

#undef CONFIG_USE_IRQ			/* we don't need IRQ/FIQ stuff  */
#define CONFIG_CMDLINE_TAG	1	/* enable passing of ATAGs	*/
#define CONFIG_SETUP_MEMORY_TAGS 1
#define CONFIG_INITRD_TAG	1

/* allow to overwrite serial and ethaddr */
#undef CONFIG_ENV_OVERWRITE

/* define this to include the functionality of boot.bin in u-boot */
#undef CONFIG_BOOTBINFUNC

/*
 * Size of malloc() pool
 */
#define CFG_MALLOC_LEN	(CFG_ENV_SIZE + 128*1024)

#define CFG_GBL_DATA_SIZE	128	/* size in bytes reserved for initial data */

/*
 * Hardware drivers
 */

/* define one of these to choose the USART0  or USART1 as console */
#define CONFIG_USART0 1

#undef	CONFIG_HWFLOW			/* don't include RTS/CTS flow control support	*/

#undef	CONFIG_MODEM_SUPPORT		/* disable modem initialization stuff */

#define CONFIG_BOOTDELAY      3

#define CONFIG_BOOTARGS    "mem=32M console=ttyS0,115200 initrd=0x40000000,4M root=/dev/ram0 rw ip=192.168.2.199"

#define CONFIG_BOOTCOMMAND	"bootm 78100000 78200000"
#if 0
#define CONFIG_COMMANDS       \
               ((CONFIG_CMD_DFL & ~CFG_CMD_CACHE) & ~CFG_CMD_SETGETDCR & ~CFG_CMD_SDRAM & ~CFG_CMD_FPGA & ~CFG_CMD_IMLS & \
                 ~CFG_CMD_ITEST & ~CFG15_CMD_XIMG              | \
                 CFG_CMD_FLASH   | \
                 CFG_CMD_LOADS   | \
                 CFG_CMD_NET     | \
                 CFG_CMD_NFS     | \
                 CFG_CMD_PING    | \
                 CFG_CMD_DHCP    | \
                 CFG_CMD_IMI)
#endif
#define CONFIG_COMMANDS       \
               ((CONFIG_CMD_DFL & ~CFG_CMD_CACHE) & ~CFG_CMD_SETGETDCR & ~CFG_CMD_FPGA & ~CFG_CMD_IMLS & \
                 ~CFG_CMD_ITEST & ~CFG15_CMD_XIMG & ~CFG_CMD_NET )

/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
#include <cmd_confdefs.h>


#define CONFIG_NR_DRAM_BANKS 1
#define PHYS_SDRAM 0x40000000
#define CFG_MEMTEST_START		(PHYS_SDRAM + 0x00000000)
#define CFG_MEMTEST_END			(PHYS_SDRAM + 0x005FFFFF)
#define CFG_MEMTEST_SCRATCH     (CFG_MEMTEST_START + PHYS_SDRAM_SIZE - 4)

#define PHYS_SDRAM_SIZE 0x2000000  /* 32 megs */

#define CFG_ALT_MEMTEST			1
#define CFG_FLASH_CFI           1
#define CFG_FLASH_INCREMENT     0

#define PHYS_FLASH_1			0x78000000
#define PHYS_FLASH_SIZE			0x800000  /* 8 megs main flash */
#define CFG_FLASH_BASE			PHYS_FLASH_1
#define CFG_MAX_FLASH_BANKS		1
#define CFG_MAX_FLASH_SECT		256
#define CFG_FLASH_ERASE_TOUT		(2*CFG_HZ) /* Timeout for Flash Erase */
#define CFG_FLASH_WRITE_TOUT		(2*CFG_HZ) /* Timeout for Flash Write */

#undef CFG_NO_FLASH 
#define CFG_ENV_IS_IN_FLASH 1
#undef CFG_ENV_IS_NOWHERE
#undef CFG_ENV_IS_EMBEDDED

#define CFG_ENV_ADDR		(PHYS_FLASH_1 + 0x00020000)  /* after u-boot.bin */
#define CFG_ENV_SIZE		0x10000 /* sectors are 64K here ..... temporary here use a lot too much space !! */
/* CFG_ENV_SECT_SIZE for strata flash only */
#define CFG_ENV_SECT_SIZE	0x10000

#define CFG_LOAD_ADDR		0x78100000  /* default load address */

#define CFG_BOOT_SIZE 0x30000
#undef CFG_U_BOOT_BASE
#undef CFG_U_BOOT_SIZE

#define CFG_BAUDRATE_TABLE	{115200 , 19200, 38400, 57600, 9600 }

#define CFG_LONGHELP	1
#define CFG_PROMPT		"U-Boot> "	/* Monitor Command Prompt */
#define CFG_CBSIZE		256		/* Console I/O Buffer Size */
#define CFG_MAXARGS		16		/* max number of command args */
#define CFG_PBSIZE		(CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */


#define CFG_HZ MARIA_MASTER_CLOCK

#define CONFIG_STACKSIZE	(64*1024)	/* regular stack */

#ifdef CONFIG_USE_IRQ
#error CONFIG_USE_IRQ not supported
#endif

#define CONFIG_ETHADDR		00:50:c2:38:00:0B 
#define CONFIG_SERVERIP		192.168.002.011 
#define CONFIG_IPADDR		192.168.002.199
#define CONFIG_NETMASK		255.255.255.000
#define CONFIG_GATEWAYIP	192.168.002.011
#define CONFIG_HOSTNAME		cleopatre
#define CONFIG_BOOTFILE     "linux" 

#define BOARD_LATE_INIT		1


#undef  CONFIG_LCD


#endif