mpc85xx.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * include/asm-powerpc/mpc85xx.h
  3. *
  4. * MPC85xx definitions
  5. *
  6. * Maintainer: Kumar Gala <galak@kernel.crashing.org>
  7. *
  8. * Copyright 2004 Freescale Semiconductor, Inc
  9. *
  10. * This program is free software; you can redistribute it and/or modify it
  11. * under the terms of the GNU General Public License as published by the
  12. * Free Software Foundation; either version 2 of the License, or (at your
  13. * option) any later version.
  14. */
  15. #ifdef __KERNEL__
  16. #ifndef __ASM_MPC85xx_H__
  17. #define __ASM_MPC85xx_H__
  18. #include <asm/mmu.h>
  19. #ifdef CONFIG_85xx
  20. #if defined(CONFIG_MPC8540_ADS) || defined(CONFIG_MPC8560_ADS)
  21. #include <platforms/85xx/mpc85xx_ads.h>
  22. #endif
  23. #if defined(CONFIG_MPC8555_CDS) || defined(CONFIG_MPC8548_CDS)
  24. #include <platforms/85xx/mpc8555_cds.h>
  25. #endif
  26. #ifdef CONFIG_MPC85xx_CDS
  27. #include <platforms/85xx/mpc85xx_cds.h>
  28. #endif
  29. #define _IO_BASE isa_io_base
  30. #define _ISA_MEM_BASE isa_mem_base
  31. #ifdef CONFIG_PCI
  32. #define PCI_DRAM_OFFSET pci_dram_offset
  33. #else
  34. #define PCI_DRAM_OFFSET 0
  35. #endif
  36. /* Let modules/drivers get at CCSRBAR */
  37. extern phys_addr_t get_ccsrbar(void);
  38. #ifdef MODULE
  39. #define CCSRBAR get_ccsrbar()
  40. #else
  41. #define CCSRBAR BOARD_CCSRBAR
  42. #endif
  43. #endif /* CONFIG_85xx */
  44. #endif /* __ASM_MPC85xx_H__ */
  45. #endif /* __KERNEL__ */