]> pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/ppc/platforms/4xx/virtex.h
[POWERPC] Stop using ppc_sys for Xilinx Virtex boards
[linux-2.6-omap-h63xx.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 #ifndef __ASSEMBLY__
24 typedef struct board_info {
25         unsigned int     bi_memsize;            /* DRAM installed, in bytes */
26         unsigned char    bi_enetaddr[6];        /* Local Ethernet MAC address */
27         unsigned int     bi_intfreq;            /* Processor speed, in Hz */
28         unsigned int     bi_busfreq;            /* PLB Bus speed, in Hz */
29         unsigned int     bi_pci_busfreq;        /* PCI Bus speed, in Hz */
30 } bd_t;
31
32 /* Some 4xx parts use a different timebase frequency from the internal clock.
33  * the Virtex 405 does not, so just use a macro to make tbfreq match intfreq
34 */
35 #define bi_tbfreq bi_intfreq
36
37 extern const char* virtex_machine_name;
38 #define PPC4xx_MACHINE_NAME (virtex_machine_name)
39
40 #endif /* !__ASSEMBLY__ */
41
42 /* We don't need anything mapped.  Size of zero will accomplish that. */
43 #define PPC4xx_ONB_IO_PADDR     0u
44 #define PPC4xx_ONB_IO_VADDR     0u
45 #define PPC4xx_ONB_IO_SIZE      0u
46
47 #endif                          /* __ASM_VIRTEX_H__ */
48 #endif                          /* __KERNEL__ */