fs_pd.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Platform information definitions.
  3. *
  4. * 2006 (c) MontaVista Software, Inc.
  5. * Vitaly Bordug <vbordug@ru.mvista.com>
  6. *
  7. * This file is licensed under the terms of the GNU General Public License
  8. * version 2. This program is licensed "as is" without any warranty of any
  9. * kind, whether express or implied.
  10. */
  11. #ifndef FS_PD_H
  12. #define FS_PD_H
  13. #include <sysdev/fsl_soc.h>
  14. #include <asm/time.h>
  15. #ifdef CONFIG_CPM2
  16. #include <asm/cpm2.h>
  17. #if defined(CONFIG_8260)
  18. #include <asm/mpc8260.h>
  19. #endif
  20. #define cpm2_map(member) (&cpm2_immr->member)
  21. #define cpm2_map_size(member, size) (&cpm2_immr->member)
  22. #define cpm2_unmap(addr) do {} while(0)
  23. #endif
  24. #ifdef CONFIG_8xx
  25. #include <asm/8xx_immap.h>
  26. #include <asm/mpc8xx.h>
  27. extern immap_t __iomem *mpc8xx_immr;
  28. #define immr_map(member) (&mpc8xx_immr->member)
  29. #define immr_map_size(member, size) (&mpc8xx_immr->member)
  30. #define immr_unmap(addr) do {} while (0)
  31. #endif
  32. static inline int uart_baudrate(void)
  33. {
  34. return get_baudrate();
  35. }
  36. static inline int uart_clock(void)
  37. {
  38. return ppc_proc_freq;
  39. }
  40. #endif