[POWERPC] Merge common virtex header files
[pandora-kernel.git] / arch / ppc / platforms / 4xx / virtex.h
1 /*
2  * Basic Virtex platform defines, included by <asm/ibm4xx.h>
3  *
4  * 2005-2007 (c) Secret Lab Technologies Ltd.
5  * 2002-2004 (c) MontaVista Software, Inc.
6  *
7  * This file is licensed under the terms of the GNU General Public License
8  * version 2.  This program is licensed "as is" without any warranty of any
9  * kind, whether express or implied.
10  */
11
12 #ifdef __KERNEL__
13 #ifndef __ASM_VIRTEX_H__
14 #define __ASM_VIRTEX_H__
15
16 #include <asm/ibm405.h>
17
18 /* Ugly, ugly, ugly! BASE_BAUD defined here to keep 8250.c happy. */
19 #if !defined(BASE_BAUD)
20  #define BASE_BAUD              (0) /* dummy value; not used */
21 #endif
22   
23 /* Device type enumeration for platform bus definitions */
24 #ifndef __ASSEMBLY__
25 enum ppc_sys_devices {
26         VIRTEX_UART, NUM_PPC_SYS_DEVS,
27 };
28   
29 typedef struct board_info {
30         unsigned int     bi_memsize;            /* DRAM installed, in bytes */
31         unsigned char    bi_enetaddr[6];        /* Local Ethernet MAC address */
32         unsigned int     bi_intfreq;            /* Processor speed, in Hz */
33         unsigned int     bi_busfreq;            /* PLB Bus speed, in Hz */
34         unsigned int     bi_pci_busfreq;        /* PCI Bus speed, in Hz */
35 } bd_t;
36
37 /* Some 4xx parts use a different timebase frequency from the internal clock.
38  * the Virtex 405 does not, so just use a macro to make tbfreq match intfreq
39 */
40 #define bi_tbfreq bi_intfreq
41
42 extern const char* virtex_machine_name;
43 #define PPC4xx_MACHINE_NAME (virtex_machine_name)
44
45 #endif /* !__ASSEMBLY__ */
46
47 /* We don't need anything mapped.  Size of zero will accomplish that. */
48 #define PPC4xx_ONB_IO_PADDR     0u
49 #define PPC4xx_ONB_IO_VADDR     0u
50 #define PPC4xx_ONB_IO_SIZE      0u
51
52 #endif                          /* __ASM_VIRTEX_H__ */
53 #endif                          /* __KERNEL__ */