1 #ifndef __MACH_ROCKCHIP_COMMON_H
2 #define __MACH_ROCKCHIP_COMMON_H
4 #define RK_DEVICE(VIRT,PHYS,SIZE) \
6 .virtual = (unsigned long)(VIRT), \
7 .pfn = __phys_to_pfn(PHYS), \
12 extern unsigned long rockchip_boot_fn;
13 extern struct smp_operations rockchip_smp_ops;
15 extern int (*ddr_change_freq)(uint32_t nMHz);
16 extern long (*ddr_round_rate)(uint32_t nMHz);
17 extern void (*ddr_set_auto_self_refresh)(bool en);
19 extern int rockchip_cpu_kill(unsigned int cpu);
20 extern void rockchip_cpu_die(unsigned int cpu);
21 extern int rockchip_cpu_disable(unsigned int cpu);
23 #define BOOT_MODE_NORMAL 0
24 #define BOOT_MODE_FACTORY2 1
25 #define BOOT_MODE_RECOVERY 2
26 #define BOOT_MODE_CHARGE 3
27 #define BOOT_MODE_POWER_TEST 4
28 #define BOOT_MODE_OFFMODE_CHARGING 5
29 #define BOOT_MODE_REBOOT 6
30 #define BOOT_MODE_PANIC 7
31 #define BOOT_MODE_WATCHDOG 8
32 #define BOOT_MODE_TSADC 9
34 extern int rockchip_boot_mode(void);
35 extern void __init rockchip_boot_mode_init(u32 flag, u32 mode);
36 extern void rockchip_restart_get_boot_mode(const char *cmd, u32 *flag, u32 *mode);
37 extern void __init rockchip_suspend_init(void);
38 extern void __init rockchip_ion_reserve(void);