summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/include/mach/at91_matrix.h
blob: f8996c954131b1bdf88b75958b6d80527b4070a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
 *
 * Under GPLv2
 */

#ifndef __MACH_AT91_MATRIX_H__
#define __MACH_AT91_MATRIX_H__

#ifndef __ASSEMBLY__
extern void __iomem *at91_matrix_base;

#define at91_matrix_read(field) \
	__raw_readl(at91_matrix_base + field)

#define at91_matrix_write(field, value) \
	__raw_writel(value, at91_matrix_base + field)

#else
.extern at91_matrix_base
#endif

#endif /* __MACH_AT91_MATRIX_H__ */