1 #ifndef __PPC_FSL_SOC_H
2 #define __PPC_FSL_SOC_H
7 extern phys_addr_t
get_immrbase(void);
8 extern u32
get_brgfreq(void);
9 extern u32
get_baudrate(void);
10 extern u32
fsl_get_sys_freq(void);
12 struct spi_board_info
;
15 extern int fsl_spi_init(struct spi_board_info
*board_infos
,
16 unsigned int num_board_infos
,
17 void (*activate_cs
)(u8 cs
, u8 polarity
),
18 void (*deactivate_cs
)(u8 cs
, u8 polarity
));
20 extern void fsl_rstcr_restart(char *cmd
);
22 #if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE)
23 struct platform_diu_data_ops
{
24 unsigned int (*get_pixel_format
) (unsigned int bits_per_pixel
,
26 void (*set_gamma_table
) (int monitor_port
, char *gamma_table_base
);
27 void (*set_monitor_port
) (int monitor_port
);
28 void (*set_pixel_clock
) (unsigned int pixclock
);
29 ssize_t (*show_monitor_port
) (int monitor_port
, char *buf
);
30 int (*set_sysfs_monitor_port
) (int val
);
33 extern struct platform_diu_data_ops diu_ops
;