Added nomadik.h header
[platform/kernel/u-boot.git] / include / configs / nmdk8815.h
1 /*
2  * (C) Copyright 2005
3  * STMicroelectronics.
4  * Configuration settings for the STn8815 nomadik board.
5  *
6  * See file CREDITS for list of people who contributed to this
7  * project.
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License as
11  * published by the Free Software Foundation; either version 2 of
12  * the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22  * MA 02111-1307 USA
23  */
24
25 #ifndef __CONFIG_H
26 #define __CONFIG_H
27
28 #include <nomadik.h>
29
30 #define CONFIG_ARM926EJS
31 #define CONFIG_NOMADIK
32 #define CONFIG_NOMADIK_8815
33 #define CONFIG_NOMADIK_NDK15
34 #define CONFIG_NOMADIK_NHK15
35
36 #define CONFIG_SKIP_LOWLEVEL_INIT /* we have already been loaded to RAM */
37
38 /* commands */
39 #include <config_cmd_default.h>
40 #define CONFIG_CMD_PING
41 #define CONFIG_CMD_DHCP
42 /* At this point there is no flash driver, so remove some commands */
43 #undef CONFIG_CMD_ENV
44 #undef CONFIG_CMD_FLASH
45 #undef CONFIG_CMD_IMLS
46
47 /* user interface */
48 #define CONFIG_SYS_LONGHELP
49 #define CONFIG_SYS_HUSH_PARSER
50 #define CONFIG_SYS_PROMPT               "Nomadik> "
51 #define CONFIG_SYS_PROMPT_HUSH_PS2      "> "
52 #define CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size */
53 #define CONFIG_SYS_PBSIZE               (CONFIG_SYS_CBSIZE \
54                                         + sizeof(CONFIG_SYS_PROMPT) + 16)
55 #define CONFIG_SYS_BARGSIZE     CONFIG_SYS_CBSIZE /* Boot Arg Buffer Size */
56 #define CONFIG_SYS_MAXARGS      16
57 #define CONFIG_SYS_LOAD_ADDR    0x800000        /* default load address */
58 #define CONFIG_SYS_LOADS_BAUD_CHANGE
59
60 /* boot config */
61 #define CONFIG_SETUP_MEMORY_TAGS
62 #define CONFIG_INITRD_TAG
63 #define CONFIG_CMDLINE_TAG
64 #define CONFIG_BOOTDELAY        1
65 #define CONFIG_BOOTARGS "root=/dev/ram0 console=ttyAMA1,115200n8 init=linuxrc"
66 #define CONFIG_BOOTCOMMAND      "fsload 0x100000 kernel.uimg;" \
67                                 " fsload 0x800000 initrd.gz.uimg;" \
68                                 " bootm 0x100000 0x800000"
69
70 /* memory-related information */
71 #define CONFIG_NR_DRAM_BANKS    2
72 #define PHYS_SDRAM_1            0x00000000      /* DDR-SDRAM Bank #1 */
73 #define PHYS_SDRAM_1_SIZE       0x04000000      /* 64 MB */
74 #define PHYS_SDRAM_2            0x08000000      /* SDR-SDRAM BANK #2*/
75 #define PHYS_SDRAM_2_SIZE       0x04000000      /* 64 MB */
76
77 #define CONFIG_STACKSIZE        (128 * 1024)    /* regular stack */
78 #ifdef CONFIG_USE_IRQ
79 #  define CONFIG_STACKSIZE_IRQ  (4 * 1024)      /* IRQ stack */
80 #  define CONFIG_STACKSIZE_FIQ  (4 * 1024)      /* FIQ stack */
81 #endif
82
83 #define CONFIG_SYS_MEMTEST_START        0x00000000
84 #define CONFIG_SYS_MEMTEST_END          0x0FFFFFFF
85 #define CONFIG_SYS_MALLOC_LEN           (CONFIG_ENV_SIZE + 256 * 1024)
86 #define CONFIG_SYS_GBL_DATA_SIZE        128     /* for initial data */
87
88 #define CONFIG_MISC_INIT_R      /* call misc_init_r during start up */
89
90 /* timing informazion */
91 #define CONFIG_SYS_HZ           (2400000 / 256) /* Timer0: 2.4Mhz + divider */
92 #define CONFIG_SYS_TIMERBASE    0x101E2000
93 #undef  CONFIG_SYS_CLKS_IN_HZ
94
95 /* serial port (PL011) configuration */
96 #define CONFIG_PL011_SERIAL
97 #define CONFIG_CONS_INDEX       1
98 #define CONFIG_BAUDRATE         115200
99 #define CONFIG_SYS_BAUDRATE_TABLE       { 9600, 19200, 38400, 57600, 115200 }
100 #define CFG_SERIAL0             0x101FD000
101 #define CFG_SERIAL1             0x101FB000
102
103 #define CONFIG_PL01x_PORTS      { (void *)CFG_SERIAL0, (void *)CFG_SERIAL1 }
104 #define CONFIG_PL011_CLOCK      48000000
105
106 /* Ethernet */
107 #define PCI_MEMORY_VADDR        0xe8000000
108 #define PCI_IO_VADDR            0xee000000
109 #define __io(a)                 ((void __iomem *)(PCI_IO_VADDR + (a)))
110 #define __mem_isa(a)            ((a) + PCI_MEMORY_VADDR)
111
112 #define CONFIG_DRIVER_SMC91111  /* Using SMC91c111*/
113 #define CONFIG_SMC91111_BASE    0x34000300
114 #undef  CONFIG_SMC91111_EXT_PHY /* Internal PHY */
115 #define CONFIG_SMC_USE_32_BIT
116 #define CONFIG_BOOTFILE         "uImage"
117
118 /* flash memory and filesystem information */
119 #define CONFIG_DOS_PARTITION
120 #define CONFIG_MTD_ONENAND_VERIFY_WRITE
121 #define CONFIG_SYS_ONENAND_BASE         0x30000000
122 #define CONFIG_SYS_MAX_NAND_DEVICE      1
123 #define CONFIG_SYS_NAND_BASE            0x40000000
124
125 #define CONFIG_SYS_NO_FLASH
126
127 #ifdef CONFIG_BOOT_ONENAND
128
129 #   undef CONFIG_CMD_NAND /* Temporary: nand and onenand can't coexist */
130    /* Partition                         Size    Start
131     * XloaderTOC + X-Loader             256KB   0x00000000
132     * Memory init function              256KB   0x00040000
133     * U-Boot                            2MB     0x00080000
134     * Sysimage (kernel + ramdisk)       4MB     0x00280000
135     * JFFS2 Root filesystem             22MB    0x00680000
136     * JFFS2 User Data                   227.5MB 0x01C80000
137     */
138 #   define CONFIG_JFFS2_PART_SIZE       0x400000
139 #   define CONFIG_JFFS2_PART_OFFSET     0x280000
140
141 #   define CONFIG_ENV_IS_IN_ONENAND
142 #   define CONFIG_ENV_SIZE              (256 * 1024)
143 #   define CONFIG_ENV_ADDR              0x30300000
144
145 #else /* ! CONFIG_BOOT_ONENAND */
146
147 #   undef CONFIG_CMD_ONENAND /* Temporary: nand and onenand can't coexist */
148
149 #   define CONFIG_JFFS2_DEV             "nand0"
150 #   define CONFIG_JFFS2_NAND            1 /* For the jffs2 support*/
151 #   define CONFIG_JFFS2_PART_SIZE       0x00300000
152 #   define CONFIG_JFFS2_PART_OFFSET     0x00280000
153
154 #   define CONFIG_ENV_IS_IN_NAND
155 #   define CONFIG_ENV_SIZE              0x20000 /*128 Kb*/
156 #   define CONFIG_ENV_OFFSET            (0x8000000 - CONFIG_ENV_SIZE)
157
158 #endif /* CONFIG_BOOT_ONENAND */
159
160 /* Temporarily, until we have no driver, env is not in nand */
161 #undef CONFIG_ENV_IS_IN_NAND
162 #define CONFIG_ENV_IS_NOWHERE
163
164 /* this is needed to make hello_world.c and other stuff happy */
165 #define CONFIG_SYS_MAX_FLASH_SECT       512
166 #define CONFIG_SYS_MAX_FLASH_BANKS      1
167
168 #endif /* __CONFIG_H */