fs_pd.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. extern immap_t __iomem *mpc8xx_immr;
  27. #define immr_map(member) (&mpc8xx_immr->member)
  28. #define immr_map_size(member, size) (&mpc8xx_immr->member)
  29. #define immr_unmap(addr) do {} while (0)
  30. #endif
  31. static inline int uart_baudrate(void)
  32. {
  33. return get_baudrate();
  34. }
  35. static inline int uart_clock(void)
  36. {
  37. return ppc_proc_freq;
  38. }
  39. #endif