1 /* 2 * Copyright 2001 MontaVista Software Inc. 3 * PPC405 modifications 4 * Author: MontaVista Software, Inc. 5 * Armin Kuster 6 * 7 * Module name: redwood5.h 8 * 9 * Description: 10 * Macros, definitions, and data structures specific to the IBM PowerPC 11 * STB03xxx "Redwood" evaluation board. 12 * 13 * Please read the COPYING file for all license details. 14 */ 15 16 #ifdef __KERNEL__ 17 #ifndef __ASM_REDWOOD5_H__ 18 #define __ASM_REDWOOD5_H__ 19 20 /* Redwood5 has an STB04xxx core */ 21 #include <platforms/ibmstb4.h> 22 23 #ifndef __ASSEMBLY__ 24 typedef struct board_info { 25 unsigned char bi_s_version[4]; /* Version of this structure */ 26 unsigned char bi_r_version[30]; /* Version of the IBM ROM */ 27 unsigned int bi_memsize; /* DRAM installed, in bytes */ 28 unsigned int bi_dummy; /* field shouldn't exist */ 29 unsigned char bi_enetaddr[6]; /* Ethernet MAC address */ 30 unsigned int bi_intfreq; /* Processor speed, in Hz */ 31 unsigned int bi_busfreq; /* Bus speed, in Hz */ 32 unsigned int bi_tbfreq; /* Software timebase freq */ 33 unsigned int bi_opb_busfreq; /* OPB Bus speed, in Hz */ 34 int bi_iic_fast[2]; /* Use fast i2c mode */ 35 } bd_t; 36 #endif /* !__ASSEMBLY__ */ 37 38 39 #define SMC91111_BASE_ADDR 0xf2000300 40 #define SMC91111_IRQ 28 41 42 #ifdef MAX_HWIFS 43 #undef MAX_HWIFS 44 #endif 45 #define MAX_HWIFS 1 46 47 #define _IO_BASE 0 48 #define _ISA_MEM_BASE 0 49 #define PCI_DRAM_OFFSET 0 50 51 #define BASE_BAUD (378000000 / 18 / 16) 52 53 #define PPC4xx_MACHINE_NAME "IBM Redwood5" 54 55 #endif /* __ASM_REDWOOD5_H__ */ 56 #endif /* __KERNEL__ */ 57