2 * Basic Virtex platform defines, included by <asm/ibm4xx.h>
4 * 2005-2007 (c) Secret Lab Technologies Ltd.
5 * 2002-2004 (c) MontaVista Software, Inc.
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.
13 #ifndef __ASM_VIRTEX_H__
14 #define __ASM_VIRTEX_H__
16 #include <asm/ibm405.h>
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 */
23 /* Device type enumeration for platform bus definitions */
25 enum ppc_sys_devices {
26 VIRTEX_UART, NUM_PPC_SYS_DEVS,
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 */
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
40 #define bi_tbfreq bi_intfreq
42 extern const char* virtex_machine_name;
43 #define PPC4xx_MACHINE_NAME (virtex_machine_name)
45 #endif /* !__ASSEMBLY__ */
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
52 #endif /* __ASM_VIRTEX_H__ */
53 #endif /* __KERNEL__ */