fsl_soc.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef __PPC_FSL_SOC_H
  2. #define __PPC_FSL_SOC_H
  3. #ifdef __KERNEL__
  4. #include <asm/mmu.h>
  5. struct spi_device;
  6. extern phys_addr_t get_immrbase(void);
  7. #if defined(CONFIG_CPM2) || defined(CONFIG_QUICC_ENGINE) || defined(CONFIG_8xx)
  8. extern u32 get_brgfreq(void);
  9. extern u32 get_baudrate(void);
  10. #else
  11. static inline u32 get_brgfreq(void) { return -1; }
  12. static inline u32 get_baudrate(void) { return -1; }
  13. #endif
  14. extern u32 fsl_get_sys_freq(void);
  15. struct spi_board_info;
  16. struct device_node;
  17. /* The different ports that the DIU can be connected to */
  18. enum fsl_diu_monitor_port {
  19. FSL_DIU_PORT_DVI, /* DVI */
  20. FSL_DIU_PORT_LVDS, /* Single-link LVDS */
  21. FSL_DIU_PORT_DLVDS /* Dual-link LVDS */
  22. };
  23. struct platform_diu_data_ops {
  24. u32 (*get_pixel_format)(enum fsl_diu_monitor_port port,
  25. unsigned int bpp);
  26. void (*set_gamma_table)(enum fsl_diu_monitor_port port,
  27. char *gamma_table_base);
  28. void (*set_monitor_port)(enum fsl_diu_monitor_port port);
  29. void (*set_pixel_clock)(unsigned int pixclock);
  30. enum fsl_diu_monitor_port (*valid_monitor_port)
  31. (enum fsl_diu_monitor_port port);
  32. void (*release_bootmem)(void);
  33. };
  34. extern struct platform_diu_data_ops diu_ops;
  35. void __noreturn fsl_hv_restart(char *cmd);
  36. void __noreturn fsl_hv_halt(void);
  37. #endif
  38. #endif