blob: a5c36cbd04cc3f31adf2435b7afdf79011559bf1 [file] [log] [blame]
Duy Truong790f06d2013-02-13 16:38:12 -08001/* Copyright (c) 2011, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12#ifndef __MACH_SCM_IO_H
13#define __MACH_SCM_IO_H
14
15#include <linux/types.h>
16
17#ifdef CONFIG_MSM_SECURE_IO
18
19extern u32 secure_readl(void __iomem *c);
20extern void secure_writel(u32 v, void __iomem *c);
21
22#else
23
24#define secure_readl(c) readl(c)
25#define secure_writel(v, c) writel(v, c)
26
27#endif
28
29#endif