redwood6.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Macros, definitions, and data structures specific to the IBM PowerPC
  3. * STBx25xx "Redwood6" evaluation board.
  4. *
  5. * Author: Armin Kuster <akuster@mvista.com>
  6. *
  7. * 2002 (c) MontaVista, Software, Inc. This file is licensed under
  8. * the terms of the GNU General Public License version 2. This program
  9. * is licensed "as is" without any warranty of any kind, whether express
  10. * or implied.
  11. */
  12. #ifdef __KERNEL__
  13. #ifndef __ASM_REDWOOD5_H__
  14. #define __ASM_REDWOOD5_H__
  15. /* Redwood6 has an STBx25xx core */
  16. #include <platforms/4xx/ibmstbx25.h>
  17. #ifndef __ASSEMBLY__
  18. typedef struct board_info {
  19. unsigned char bi_s_version[4]; /* Version of this structure */
  20. unsigned char bi_r_version[30]; /* Version of the IBM ROM */
  21. unsigned int bi_memsize; /* DRAM installed, in bytes */
  22. unsigned int bi_dummy; /* field shouldn't exist */
  23. unsigned char bi_enetaddr[6]; /* Ethernet MAC address */
  24. unsigned int bi_intfreq; /* Processor speed, in Hz */
  25. unsigned int bi_busfreq; /* Bus speed, in Hz */
  26. unsigned int bi_tbfreq; /* Software timebase freq */
  27. } bd_t;
  28. #endif /* !__ASSEMBLY__ */
  29. #define SMC91111_BASE_ADDR 0xf2030300
  30. #define SMC91111_REG_SIZE 16
  31. #define SMC91111_IRQ 27
  32. #define IDE_XLINUX_MUX_BASE 0xf2040000
  33. #define IDE_DMA_ADDR 0xfce00000
  34. #ifdef MAX_HWIFS
  35. #undef MAX_HWIFS
  36. #endif
  37. #define MAX_HWIFS 1
  38. #define _IO_BASE 0
  39. #define _ISA_MEM_BASE 0
  40. #define PCI_DRAM_OFFSET 0
  41. #define BASE_BAUD (378000000 / 18 / 16)
  42. #define PPC4xx_MACHINE_NAME "IBM Redwood6"
  43. #endif /* __ASM_REDWOOD5_H__ */
  44. #endif /* __KERNEL__ */