blob: 9c744e4285a023c21fe7d7e12876e4443fc43a51 [file] [log] [blame]
Kumar Galaeed32002006-01-13 11:19:13 -06001#ifndef __PPC_FSL_SOC_H
2#define __PPC_FSL_SOC_H
3#ifdef __KERNEL__
4
Scott Wood3d574ab2006-09-21 13:11:52 -05005#include <asm/mmu.h>
6
Kumar Galaeed32002006-01-13 11:19:13 -06007extern phys_addr_t get_immrbase(void);
Anton Vorontsova5dae762008-12-05 23:10:26 +03008#if defined(CONFIG_CPM2) || defined(CONFIG_QUICC_ENGINE) || defined(CONFIG_8xx)
Vitaly Bordugfba43662006-09-21 17:26:34 +04009extern u32 get_brgfreq(void);
10extern u32 get_baudrate(void);
Anton Vorontsova5dae762008-12-05 23:10:26 +030011#else
12static inline u32 get_brgfreq(void) { return -1; }
13static inline u32 get_baudrate(void) { return -1; }
14#endif
Scott Wood38664092008-04-15 13:52:34 -050015extern u32 fsl_get_sys_freq(void);
Kumar Galaeed32002006-01-13 11:19:13 -060016
Anton Vorontsov26f6cb92007-08-23 15:35:56 +040017struct spi_board_info;
Scott Woodd49747b2007-10-09 12:37:13 -050018struct device_node;
Anton Vorontsov26f6cb92007-08-23 15:35:56 +040019
20extern 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
Kumar Galae1c15752007-10-04 01:04:57 -050025extern void fsl_rstcr_restart(char *cmd);
York Sun6f90a8bd2008-04-28 02:15:36 -070026
27#if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE)
York Sun6f90a8bd2008-04-28 02:15:36 -070028struct platform_diu_data_ops {
York Sun6f90a8bd2008-04-28 02:15:36 -070029 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
38extern struct platform_diu_data_ops diu_ops;
York Sun6f90a8bd2008-04-28 02:15:36 -070039#endif
40
Kumar Galaeed32002006-01-13 11:19:13 -060041#endif
42#endif