walnut.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * arch/ppc/platforms/4xx/walnut.h
  3. *
  4. * Macros, definitions, and data structures specific to the IBM PowerPC
  5. * 405GP "Walnut" evaluation board.
  6. *
  7. * Authors: Grant Erickson <grant@lcse.umn.edu>, Frank Rowand
  8. * <frank_rowand@mvista.com>, Debbie Chu <debbie_chu@mvista.com> or
  9. * source@mvista.com
  10. *
  11. * Copyright (c) 1999 Grant Erickson <grant@lcse.umn.edu>
  12. *
  13. * 2000 (c) MontaVista, Software, Inc. This file is licensed under
  14. * the terms of the GNU General Public License version 2. This program
  15. * is licensed "as is" without any warranty of any kind, whether express
  16. * or implied.
  17. */
  18. #ifdef __KERNEL__
  19. #ifndef __ASM_WALNUT_H__
  20. #define __ASM_WALNUT_H__
  21. /* We have a 405GP core */
  22. #include <platforms/4xx/ibm405gp.h>
  23. #ifndef __ASSEMBLY__
  24. /*
  25. * Data structure defining board information maintained by the boot
  26. * ROM on IBM's "Walnut" evaluation board. An effort has been made to
  27. * keep the field names consistent with the 8xx 'bd_t' board info
  28. * structures.
  29. */
  30. typedef struct board_info {
  31. unsigned char bi_s_version[4]; /* Version of this structure */
  32. unsigned char bi_r_version[30]; /* Version of the IBM ROM */
  33. unsigned int bi_memsize; /* DRAM installed, in bytes */
  34. unsigned char bi_enetaddr[6]; /* Local Ethernet MAC address */
  35. unsigned char bi_pci_enetaddr[6]; /* PCI Ethernet MAC address */
  36. unsigned int bi_intfreq; /* Processor speed, in Hz */
  37. unsigned int bi_busfreq; /* PLB Bus speed, in Hz */
  38. unsigned int bi_pci_busfreq; /* PCI Bus speed, in Hz */
  39. } bd_t;
  40. /* Some 4xx parts use a different timebase frequency from the internal clock.
  41. */
  42. #define bi_tbfreq bi_intfreq
  43. /* Memory map for the IBM "Walnut" 405GP evaluation board.
  44. * Generic 4xx plus RTC.
  45. */
  46. extern void *walnut_rtc_base;
  47. #define WALNUT_RTC_PADDR ((uint)0xf0000000)
  48. #define WALNUT_RTC_VADDR WALNUT_RTC_PADDR
  49. #define WALNUT_RTC_SIZE ((uint)8*1024)
  50. #ifdef CONFIG_PPC405GP_INTERNAL_CLOCK
  51. #define BASE_BAUD 201600
  52. #else
  53. #define BASE_BAUD 691200
  54. #endif
  55. #define WALNUT_PS2_BASE 0xF0100000
  56. #define WALNUT_FPGA_BASE 0xF0300000
  57. #define PPC4xx_MACHINE_NAME "IBM Walnut"
  58. #endif /* !__ASSEMBLY__ */
  59. #endif /* __ASM_WALNUT_H__ */
  60. #endif /* __KERNEL__ */