Merge remote-tracking branch 'moduleh/module.h-split'
[linux-2.6/next.git] / arch / arm / mach-at91 / include / mach / system_rev.h
blob8f4866045b41e213172c761f522ffca720a5802e
1 /*
2 * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
4 * Under GPLv2 only
5 */
7 #ifndef __ARCH_SYSTEM_REV_H__
8 #define __ARCH_SYSTEM_REV_H__
11 * board revision encoding
12 * mach specific
13 * the 16-31 bit are reserved for at91 generic information
15 * bit 31:
16 * 0 => nand 8 bit
17 * 1 => nand 16 bit
19 #define BOARD_HAVE_NAND_16BIT (1 << 31)
20 static inline int board_have_nand_16bit(void)
22 return system_rev & BOARD_HAVE_NAND_16BIT;
25 #endif /* __ARCH_SYSTEM_REV_H__ */