more changes on original files
[linux-2.4.git] / arch / ppc / platforms / redwood6.h
1 /*
2  *      Author: MontaVista Software, Inc.
3  *          Armin Kuster
4  *
5  *    Module name: redwood6.h
6  *
7  *    Description:
8  *      Macros, definitions, and data structures specific to the IBM PowerPC
9  *      STBx25xx "Redwood6" evaluation board.
10  *
11  *    Copyright 2002 MontaVista Software Inc.
12  *      Author: MontaVista Software, Inc.
13  *          Armin Kuster
14  *
15  * This program is free software; you can redistribute  it and/or modify it
16  * under  the terms of  the GNU General Public License as published by the
17  * Free Software Foundation;  either version 2 of the  License, or (at your
18  * option) any later version.
19  *
20  * THIS  SOFTWARE  IS PROVIDED   ``AS  IS'' AND   ANY  EXPRESS OR   IMPLIED
21  * WARRANTIES,   INCLUDING, BUT NOT  LIMITED  TO, THE IMPLIED WARRANTIES OF
22  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
23  * NO  EVENT  SHALL   THE AUTHOR  BE    LIABLE FOR ANY   DIRECT,  INDIRECT,
24  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25  * NOT LIMITED   TO, PROCUREMENT OF  SUBSTITUTE GOODS  OR SERVICES; LOSS OF
26  * USE, DATA,  OR PROFITS; OR  BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
27  * ANY THEORY OF LIABILITY, WHETHER IN  CONTRACT, STRICT LIABILITY, OR TORT
28  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30  *
31  * You should have received a copy of the  GNU General Public License along
32  * with this program; if not, write  to the Free Software Foundation, Inc.,
33  * 675 Mass Ave, Cambridge, MA 02139, USA.
34  *
35  */
36
37 #ifdef __KERNEL__
38 #ifndef __ASM_REDWOOD5_H__
39 #define __ASM_REDWOOD5_H__
40
41 /* Redwood6 has an STBx25xx core */
42 #include <platforms/ibmstbx25.h>
43
44 #ifndef __ASSEMBLY__
45 typedef struct board_info {
46         unsigned char   bi_s_version[4];        /* Version of this structure */
47         unsigned char   bi_r_version[30];       /* Version of the IBM ROM */
48         unsigned int    bi_memsize;             /* DRAM installed, in bytes */
49         unsigned int    bi_dummy;               /* field shouldn't exist */
50         unsigned char   bi_enetaddr[6];         /* Ethernet MAC address */
51         unsigned int    bi_intfreq;             /* Processor speed, in Hz */
52         unsigned int    bi_busfreq;             /* Bus speed, in Hz */
53         unsigned int    bi_tbfreq;              /* Software timebase freq */
54         unsigned int    bi_opb_busfreq;         /* OPB Bus speed, in Hz */
55         int             bi_iic_fast[1];         /* Use fast i2c mode */
56 } bd_t;
57 #endif                          /* !__ASSEMBLY__ */
58
59 #define SMC91111_BASE_ADDR      0xf2030300
60 #define SMC91111_IRQ            27
61 #define IDE_XLINUX_MUX_BASE        0xf2040000
62 #define IDE_DMA_ADDR    0xfce00000
63
64 #ifdef MAX_HWIFS
65 #undef MAX_HWIFS
66 #endif
67 #define MAX_HWIFS               1
68
69 #define _IO_BASE        0
70 #define _ISA_MEM_BASE   0
71 #define PCI_DRAM_OFFSET 0
72
73 #define BASE_BAUD               (378000000 / 18 / 16)
74
75 #define PPC4xx_MACHINE_NAME     "IBM Redwood6"
76
77 #endif                          /* __ASM_REDWOOD5_H__ */
78 #endif                          /* __KERNEL__ */