ep405.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * arch/ppc/platforms/4xx/ep405.h
  3. *
  4. * Embedded Planet 405GP board
  5. * http://www.embeddedplanet.com
  6. *
  7. * Author: Matthew Locke <mlocke@mvista.com>
  8. *
  9. * 2000 (c) MontaVista, Software, Inc. This file is licensed under
  10. * the terms of the GNU General Public License version 2. This program
  11. * is licensed "as is" without any warranty of any kind, whether express
  12. * or implied.
  13. */
  14. #ifdef __KERNEL__
  15. #ifndef __ASM_EP405_H__
  16. #define __ASM_EP405_H__
  17. /* We have a 405GP core */
  18. #include <platforms/4xx/ibm405gp.h>
  19. #ifndef __ASSEMBLY__
  20. #include <linux/types.h>
  21. typedef struct board_info {
  22. unsigned int bi_memsize; /* DRAM installed, in bytes */
  23. unsigned char bi_enetaddr[6]; /* Local Ethernet MAC address */
  24. unsigned int bi_intfreq; /* Processor speed, in Hz */
  25. unsigned int bi_busfreq; /* PLB Bus speed, in Hz */
  26. unsigned int bi_pci_busfreq; /* PCI Bus speed, in Hz */
  27. unsigned int bi_nvramsize; /* Size of the NVRAM/RTC */
  28. } bd_t;
  29. /* Some 4xx parts use a different timebase frequency from the internal clock.
  30. */
  31. #define bi_tbfreq bi_intfreq
  32. extern u8 *ep405_bcsr;
  33. extern u8 *ep405_nvram;
  34. /* Map for the BCSR and NVRAM space */
  35. #define EP405_BCSR_PADDR ((uint)0xf4000000)
  36. #define EP405_BCSR_SIZE ((uint)16)
  37. #define EP405_NVRAM_PADDR ((uint)0xf4200000)
  38. /* serial defines */
  39. #define BASE_BAUD 399193
  40. #define PPC4xx_MACHINE_NAME "Embedded Planet 405GP"
  41. #endif /* !__ASSEMBLY__ */
  42. #endif /* __ASM_EP405_H__ */
  43. #endif /* __KERNEL__ */