ep405.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Embedded Planet 405GP board
  3. * http://www.embeddedplanet.com
  4. *
  5. * Author: Matthew Locke <mlocke@mvista.com>
  6. *
  7. * 2000 (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_EP405_H__
  14. #define __ASM_EP405_H__
  15. /* We have a 405GP core */
  16. #include <platforms/4xx/ibm405gp.h>
  17. #ifndef __ASSEMBLY__
  18. #include <linux/types.h>
  19. typedef struct board_info {
  20. unsigned int bi_memsize; /* DRAM installed, in bytes */
  21. unsigned char bi_enetaddr[6]; /* Local Ethernet MAC address */
  22. unsigned int bi_intfreq; /* Processor speed, in Hz */
  23. unsigned int bi_busfreq; /* PLB Bus speed, in Hz */
  24. unsigned int bi_pci_busfreq; /* PCI Bus speed, in Hz */
  25. unsigned int bi_nvramsize; /* Size of the NVRAM/RTC */
  26. } bd_t;
  27. /* Some 4xx parts use a different timebase frequency from the internal clock.
  28. */
  29. #define bi_tbfreq bi_intfreq
  30. extern u8 *ep405_bcsr;
  31. extern u8 *ep405_nvram;
  32. /* Map for the BCSR and NVRAM space */
  33. #define EP405_BCSR_PADDR ((uint)0xf4000000)
  34. #define EP405_BCSR_SIZE ((uint)16)
  35. #define EP405_NVRAM_PADDR ((uint)0xf4200000)
  36. /* serial defines */
  37. #define BASE_BAUD 399193
  38. #define PPC4xx_MACHINE_NAME "Embedded Planet 405GP"
  39. #endif /* !__ASSEMBLY__ */
  40. #endif /* __ASM_EP405_H__ */
  41. #endif /* __KERNEL__ */