fsl_soc.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. extern void fsl_rstcr_restart(char *cmd);
  18. /* The different ports that the DIU can be connected to */
  19. enum fsl_diu_monitor_port {
  20. FSL_DIU_PORT_DVI, /* DVI */
  21. FSL_DIU_PORT_LVDS, /* Single-link LVDS */
  22. FSL_DIU_PORT_DLVDS /* Dual-link LVDS */
  23. };
  24. struct platform_diu_data_ops {
  25. u32 (*get_pixel_format)(enum fsl_diu_monitor_port port,
  26. unsigned int bpp);
  27. void (*set_gamma_table)(enum fsl_diu_monitor_port port,
  28. char *gamma_table_base);
  29. void (*set_monitor_port)(enum fsl_diu_monitor_port port);
  30. void (*set_pixel_clock)(unsigned int pixclock);
  31. enum fsl_diu_monitor_port (*valid_monitor_port)
  32. (enum fsl_diu_monitor_port port);
  33. void (*release_bootmem)(void);
  34. };
  35. extern struct platform_diu_data_ops diu_ops;
  36. void fsl_hv_restart(char *cmd);
  37. void fsl_hv_halt(void);
  38. #endif
  39. #endif