spi-topcliff-pch: supports a spi mode setup and bit order setup by IO control
[zen-stable.git] / arch / arm / mach-at91 / include / mach / system_rev.h
blobec164a4124c9b27aa0c3b72325dc91ec13ddc673
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) ? 1 : 0;
25 #endif /* __ARCH_SYSTEM_REV_H__ */