• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef __PPC_FSL_SOC_H
2 #define __PPC_FSL_SOC_H
3 #ifdef __KERNEL__
4 
5 #include <asm/mmu.h>
6 
7 extern phys_addr_t get_immrbase(void);
8 #if defined(CONFIG_CPM2) || defined(CONFIG_QUICC_ENGINE) || defined(CONFIG_8xx)
9 extern u32 get_brgfreq(void);
10 extern u32 get_baudrate(void);
11 #else
get_brgfreq(void)12 static inline u32 get_brgfreq(void) { return -1; }
get_baudrate(void)13 static inline u32 get_baudrate(void) { return -1; }
14 #endif
15 extern u32 fsl_get_sys_freq(void);
16 
17 struct spi_board_info;
18 struct device_node;
19 
20 extern int fsl_spi_init(struct spi_board_info *board_infos,
21 			unsigned int num_board_infos,
22 			void (*activate_cs)(u8 cs, u8 polarity),
23 			void (*deactivate_cs)(u8 cs, u8 polarity));
24 
25 extern void fsl_rstcr_restart(char *cmd);
26 
27 #if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE)
28 struct platform_diu_data_ops {
29 	unsigned int (*get_pixel_format) (unsigned int bits_per_pixel,
30 		int monitor_port);
31 	void (*set_gamma_table) (int monitor_port, char *gamma_table_base);
32 	void (*set_monitor_port) (int monitor_port);
33 	void (*set_pixel_clock) (unsigned int pixclock);
34 	ssize_t (*show_monitor_port) (int monitor_port, char *buf);
35 	int (*set_sysfs_monitor_port) (int val);
36 };
37 
38 extern struct platform_diu_data_ops diu_ops;
39 #endif
40 
41 #endif
42 #endif
43