bubinga.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * Support for IBM PPC 405EP evaluation board (Bubinga).
  3. *
  4. * Author: SAW (IBM), derived from walnut.h.
  5. * Maintained by MontaVista Software <source@mvista.com>
  6. *
  7. * 2003 (c) MontaVista Softare Inc. This file is licensed under the
  8. * terms of the GNU General Public License version 2. This program is
  9. * licensed "as is" without any warranty of any kind, whether express
  10. * or implied.
  11. */
  12. #ifdef __KERNEL__
  13. #ifndef __BUBINGA_H__
  14. #define __BUBINGA_H__
  15. /* 405EP */
  16. #include <platforms/4xx/ibm405ep.h>
  17. #ifndef __ASSEMBLY__
  18. /*
  19. * Data structure defining board information maintained by the boot
  20. * ROM on IBM's evaluation board. An effort has been made to
  21. * keep the field names consistent with the 8xx 'bd_t' board info
  22. * structures.
  23. */
  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 char bi_enetaddr[2][6]; /* Local Ethernet MAC address */ unsigned char bi_pci_enetaddr[6]; /* PCI Ethernet MAC address */
  29. unsigned int bi_intfreq; /* Processor speed, in Hz */
  30. unsigned int bi_busfreq; /* PLB Bus speed, in Hz */
  31. unsigned int bi_pci_busfreq; /* PCI Bus speed, in Hz */
  32. unsigned int bi_opb_busfreq; /* OPB Bus speed, in Hz */
  33. unsigned int bi_pllouta_freq; /* PLL OUTA speed, in Hz */
  34. } bd_t;
  35. /* Some 4xx parts use a different timebase frequency from the internal clock.
  36. */
  37. #define bi_tbfreq bi_intfreq
  38. /* Memory map for the Bubinga board.
  39. * Generic 4xx plus RTC.
  40. */
  41. extern void *bubinga_rtc_base;
  42. #define BUBINGA_RTC_PADDR ((uint)0xf0000000)
  43. #define BUBINGA_RTC_VADDR BUBINGA_RTC_PADDR
  44. #define BUBINGA_RTC_SIZE ((uint)8*1024)
  45. /* The UART clock is based off an internal clock -
  46. * define BASE_BAUD based on the internal clock and divider(s).
  47. * Since BASE_BAUD must be a constant, we will initialize it
  48. * using clock/divider values which OpenBIOS initializes
  49. * for typical configurations at various CPU speeds.
  50. * The base baud is calculated as (FWDA / EXT UART DIV / 16)
  51. */
  52. #define BASE_BAUD 0
  53. #define BUBINGA_FPGA_BASE 0xF0300000
  54. #define PPC4xx_MACHINE_NAME "IBM Bubinga"
  55. #endif /* !__ASSEMBLY__ */
  56. #endif /* __BUBINGA_H__ */
  57. #endif /* __KERNEL__ */