M7350/kernel/arch/arm/mach-at91/include/mach/at91_matrix.h

24 lines
468 B
C
Raw Permalink Normal View History

2024-09-09 08:52:07 +00:00
/*
* 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) \
2024-09-09 08:57:42 +00:00
__raw_writel(value, at91_matrix_base + field)
2024-09-09 08:52:07 +00:00
#else
.extern at91_matrix_base
#endif
#endif /* __MACH_AT91_MATRIX_H__ */