Merge branch 'integration' into for-linus
[pandora-kernel.git] / arch / arm / mach-at91 / include / mach / system_rev.h
1 /*
2  * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
3  *
4  * Under GPLv2 only
5  */
6
7 #ifndef __ARCH_SYSTEM_REV_H__
8 #define __ARCH_SYSTEM_REV_H__
9
10 /*
11  * board revision encoding
12  * mach specific
13  * the 16-31 bit are reserved for at91 generic information
14  *
15  * bit 31:
16  *      0 => nand 8 bit
17  *      1 => nand 16 bit
18  */
19 #define BOARD_HAVE_NAND_16BIT   (1 << 31)
20 static inline int board_have_nand_16bit(void)
21 {
22         return system_rev & BOARD_HAVE_NAND_16BIT;
23 }
24
25 #endif /* __ARCH_SYSTEM_REV_H__ */