initial commit with v3.6.7
[linux-3.6.7-moxart.git] / arch / arm / mach-at91 / include / mach / at91_matrix.h
blob02fae9de746b4eba820e4dd8038e30e35aa2fd9e
1 /*
2 * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
4 * Under GPLv2
5 */
7 #ifndef __MACH_AT91_MATRIX_H__
8 #define __MACH_AT91_MATRIX_H__
10 #ifndef __ASSEMBLY__
11 extern void __iomem *at91_matrix_base;
13 #define at91_matrix_read(field) \
14 __raw_readl(at91_matrix_base + field)
16 #define at91_matrix_write(field, value) \
17 __raw_writel(value, at91_matrix_base + field);
19 #else
20 .extern at91_matrix_base
21 #endif
23 #endif /* __MACH_AT91_MATRIX_H__ */