mostly cosmetic sync with the mainline bubinga code
[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 <platforms/4xx/ibm405ep.h>
21 #include <asm/ppcboot.h>
22
23 /* Memory map for the "MagicBox" 405EP evaluation board -- generic 4xx. */
24
25 /* The UART clock is based off an internal clock -
26  * define BASE_BAUD based on the internal clock and divider(s).
27  * Since BASE_BAUD must be a constant, we will initialize it
28  * using clock/divider values which OpenBIOS initializes
29  * for typical configurations at various CPU speeds.
30  * The base baud is calculated as (FWDA / EXT UART DIV / 16)
31  */
32 #define BASE_BAUD               0
33
34 /* Flash */
35 #define PPC40x_FPGA_BASE        0xF0300000
36 #define PPC40x_FPGA_REG_OFFS    1       /* offset to flash map reg */
37 #define PPC40x_FLASH_ONBD_N(x)  (x & 0x02)
38 #define PPC40x_FLASH_SRAM_SEL(x) (x & 0x01)
39 #define PPC40x_FLASH_LOW        0xFFF00000
40 #define PPC40x_FLASH_HIGH       0xFFF80000
41 #define PPC40x_FLASH_SIZE       0x80000
42
43 #define PPC4xx_MACHINE_NAME     "MagicBox"
44
45 #endif /* __MAGICBOX_H__ */
46 #endif /* __KERNEL__ */