Commit | Line | Data |
---|---|---|
fbc9be10 SS |
1 | /* |
2 | * omap4-common.h: OMAP4 specific common header file | |
3 | * | |
4 | * Copyright (C) 2010 Texas Instruments, Inc. | |
5 | * | |
6 | * Author: | |
7 | * Santosh Shilimkar <santosh.shilimkar@ti.com> | |
8 | * | |
9 | * This program is free software; you can redistribute it and/or modify | |
10 | * it under the terms of the GNU General Public License version 2 as | |
11 | * published by the Free Software Foundation. | |
12 | */ | |
13 | #ifndef OMAP_ARCH_OMAP4_COMMON_H | |
14 | #define OMAP_ARCH_OMAP4_COMMON_H | |
15 | ||
7d35b8d0 SS |
16 | /* |
17 | * wfi used in low power code. Directly opcode is used instead | |
18 | * of instruction to avoid mulit-omap build break | |
19 | */ | |
85243a76 DM |
20 | #ifdef CONFIG_THUMB2_KERNEL |
21 | #define do_wfi() __asm__ __volatile__ ("wfi" : : : "memory") | |
22 | #else | |
7d35b8d0 SS |
23 | #define do_wfi() \ |
24 | __asm__ __volatile__ (".word 0xe320f003" : : : "memory") | |
85243a76 | 25 | #endif |
7d35b8d0 | 26 | |
fbc9be10 SS |
27 | #ifdef CONFIG_CACHE_L2X0 |
28 | extern void __iomem *l2cache_base; | |
29 | #endif | |
30 | ||
fbc9be10 SS |
31 | extern void __iomem *gic_dist_base_addr; |
32 | ||
33 | extern void __init gic_init_irq(void); | |
34 | extern void omap_smc1(u32 fn, u32 arg); | |
35 | ||
43b3e189 SS |
36 | #ifdef CONFIG_SMP |
37 | /* Needed for secondary core boot */ | |
38 | extern void omap_secondary_startup(void); | |
39 | extern u32 omap_modify_auxcoreboot0(u32 set_mask, u32 clear_mask); | |
40 | extern void omap_auxcoreboot_addr(u32 cpu_addr); | |
41 | extern u32 omap_read_auxcoreboot0(void); | |
42 | #endif | |
fbc9be10 | 43 | #endif |