common.h (712cba5d87a6c0e980ee5fad45734e189c4d7151) | common.h (8a8be46afeaa47aed1debe7e9b18152f9826a6b7) |
---|---|
1/* 2 * Header for code common to all OMAP2+ machines. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License as published by the 6 * Free Software Foundation; either version 2 of the License, or (at your 7 * option) any later version. 8 * --- 248 unchanged lines hidden (view full) --- 257extern bool gic_dist_disabled(void); 258extern void gic_timer_retrigger(void); 259extern void omap_smc1(u32 fn, u32 arg); 260extern void omap4_sar_ram_init(void); 261extern void __iomem *omap4_get_sar_ram_base(void); 262extern void omap4_mpuss_early_init(void); 263extern void omap_do_wfi(void); 264 | 1/* 2 * Header for code common to all OMAP2+ machines. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License as published by the 6 * Free Software Foundation; either version 2 of the License, or (at your 7 * option) any later version. 8 * --- 248 unchanged lines hidden (view full) --- 257extern bool gic_dist_disabled(void); 258extern void gic_timer_retrigger(void); 259extern void omap_smc1(u32 fn, u32 arg); 260extern void omap4_sar_ram_init(void); 261extern void __iomem *omap4_get_sar_ram_base(void); 262extern void omap4_mpuss_early_init(void); 263extern void omap_do_wfi(void); 264 |
265extern void omap4_secondary_startup(void); 266extern void omap4460_secondary_startup(void); | |
267 268#ifdef CONFIG_SMP 269/* Needed for secondary core boot */ 270extern u32 omap_modify_auxcoreboot0(u32 set_mask, u32 clear_mask); 271extern void omap_auxcoreboot_addr(u32 cpu_addr); 272extern u32 omap_read_auxcoreboot0(void); 273 274extern void omap4_cpu_die(unsigned int cpu); 275extern int omap4_cpu_kill(unsigned int cpu); 276 277extern const struct smp_operations omap4_smp_ops; | 265 266#ifdef CONFIG_SMP 267/* Needed for secondary core boot */ 268extern u32 omap_modify_auxcoreboot0(u32 set_mask, u32 clear_mask); 269extern void omap_auxcoreboot_addr(u32 cpu_addr); 270extern u32 omap_read_auxcoreboot0(void); 271 272extern void omap4_cpu_die(unsigned int cpu); 273extern int omap4_cpu_kill(unsigned int cpu); 274 275extern const struct smp_operations omap4_smp_ops; |
278 279extern void omap5_secondary_startup(void); 280extern void omap5_secondary_hyp_startup(void); | |
281#endif 282 283#if defined(CONFIG_SMP) && defined(CONFIG_PM) 284extern int omap4_mpuss_init(void); 285extern int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state); | 276#endif 277 278#if defined(CONFIG_SMP) && defined(CONFIG_PM) 279extern int omap4_mpuss_init(void); 280extern int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state); |
286extern int omap4_finish_suspend(unsigned long cpu_state); 287extern void omap4_cpu_resume(void); | |
288extern int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state); 289#else 290static inline int omap4_enter_lowpower(unsigned int cpu, 291 unsigned int power_state) 292{ 293 cpu_do_idle(); 294 return 0; 295} --- 4 unchanged lines hidden (view full) --- 300 return 0; 301} 302 303static inline int omap4_mpuss_init(void) 304{ 305 return 0; 306} 307 | 281extern int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state); 282#else 283static inline int omap4_enter_lowpower(unsigned int cpu, 284 unsigned int power_state) 285{ 286 cpu_do_idle(); 287 return 0; 288} --- 4 unchanged lines hidden (view full) --- 293 return 0; 294} 295 296static inline int omap4_mpuss_init(void) 297{ 298 return 0; 299} 300 |
301#endif 302 303#ifdef CONFIG_ARCH_OMAP4 304void omap4_secondary_startup(void); 305void omap4460_secondary_startup(void); 306int omap4_finish_suspend(unsigned long cpu_state); 307void omap4_cpu_resume(void); 308#else 309static inline void omap4_secondary_startup(void) 310{ 311} 312 313static inline void omap4460_secondary_startup(void) 314{ 315} |
|
308static inline int omap4_finish_suspend(unsigned long cpu_state) 309{ 310 return 0; 311} | 316static inline int omap4_finish_suspend(unsigned long cpu_state) 317{ 318 return 0; 319} |
312 | |
313static inline void omap4_cpu_resume(void) | 320static inline void omap4_cpu_resume(void) |
314{} | 321{ 322} 323#endif |
315 | 324 |
325#if defined(CONFIG_SOC_OMAP5) || defined(CONFIG_SOC_DRA7XX) 326void omap5_secondary_startup(void); 327void omap5_secondary_hyp_startup(void); 328#else 329static inline void omap5_secondary_startup(void) 330{ 331} 332 333static inline void omap5_secondary_hyp_startup(void) 334{ 335} |
|
316#endif 317 318void pdata_quirks_init(const struct of_device_id *); 319void omap_auxdata_legacy_init(struct device *dev); 320void omap_pcs_legacy_init(int irq, void (*rearm)(void)); 321 322struct omap_sdrc_params; 323extern void omap_sdrc_init(struct omap_sdrc_params *sdrc_cs0, --- 15 unchanged lines hidden --- | 336#endif 337 338void pdata_quirks_init(const struct of_device_id *); 339void omap_auxdata_legacy_init(struct device *dev); 340void omap_pcs_legacy_init(int irq, void (*rearm)(void)); 341 342struct omap_sdrc_params; 343extern void omap_sdrc_init(struct omap_sdrc_params *sdrc_cs0, --- 15 unchanged lines hidden --- |