fix Magicbox for .21 and convert to the new structure
[openwrt-10.03/.git] / target / linux / magicbox-2.6 / files / arch / ppc / platforms / 4xx / magicbox.h
1 /*
2  * Support for IBM PPC 405EP-based MagicBox board
3  *
4  * Heavily based on bubinga.h
5  *
6  *
7  * Author: SAW (IBM), derived from walnut.h.
8  *         Maintained by MontaVista Software <source@mvista.com>
9  *
10  * 2003 (c) MontaVista Softare Inc.  This file is licensed under the
11  * terms of the GNU General Public License version 2. This program is
12  * licensed "as is" without any warranty of any kind, whether express
13  * or implied.
14  */
15
16 #ifdef __KERNEL__
17 #ifndef __MAGICBOX_H__
18 #define __MAGICBOX_H__
19
20 #include <linux/autoconf.h>
21 #include <platforms/4xx/ibm405ep.h>
22 #include <asm/ppcboot.h>
23
24 /* Memory map for the "MagicBox" 405EP evaluation board -- generic 4xx. */
25
26 /* The UART clock is based off an internal clock -
27  * define BASE_BAUD based on the internal clock and divider(s).
28  * Since BASE_BAUD must be a constant, we will initialize it
29  * using clock/divider values which OpenBIOS initializes
30  * for typical configurations at various CPU speeds.
31  * The base baud is calculated as (FWDA / EXT UART DIV / 16)
32  */
33 #define BASE_BAUD       0
34
35 /* Flash */
36 #define PPC40x_FPGA_BASE        0xF0300000
37 #define PPC40x_FPGA_REG_OFFS    1       /* offset to flash map reg */
38 #define PPC40x_FLASH_ONBD_N(x)  (x & 0x02)
39 #define PPC40x_FLASH_SRAM_SEL(x) (x & 0x01)
40 #define PPC40x_FLASH_LOW        0xFFF00000
41 #define PPC40x_FLASH_HIGH       0xFFF80000
42 #define PPC40x_FLASH_SIZE       0x80000
43
44 #define PPC4xx_MACHINE_NAME     "MagicBox"
45
46 #endif /* __MAGICBOX_H__ */
47 #endif /* __KERNEL__ */