blob: 2744dfee1ff4875cad6e6b2faac9a292020e2065 [file] [log] [blame]
Santosh Shilimkarfbc9be12010-05-14 12:05:26 -07001/*
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
Santosh Shilimkar7d35b8d2010-08-02 13:18:19 +030016/*
17 * wfi used in low power code. Directly opcode is used instead
18 * of instruction to avoid mulit-omap build break
19 */
20#define do_wfi() \
21 __asm__ __volatile__ (".word 0xe320f003" : : : "memory")
22
Santosh Shilimkarfbc9be12010-05-14 12:05:26 -070023#ifdef CONFIG_CACHE_L2X0
24extern void __iomem *l2cache_base;
25#endif
26
27extern void __iomem *gic_cpu_base_addr;
28extern void __iomem *gic_dist_base_addr;
29
30extern void __init gic_init_irq(void);
31extern void omap_smc1(u32 fn, u32 arg);
32
33#endif