Jean-Christophe PLAGNIOL-VILLARD | 76b2ab7 | 2011-04-14 00:34:03 +0800 | [diff] [blame] | 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 16 bit |
| 17 | * 1 => nand 8 bit |
| 18 | */ |
| 19 | #define BOARD_HAVE_NAND_8BIT (1 << 31) |
| 20 | static int inline board_have_nand_8bit(void) |
| 21 | { |
| 22 | return system_rev & BOARD_HAVE_NAND_8BIT; |
| 23 | } |
| 24 | |
| 25 | #endif /* __ARCH_SYSTEM_REV_H__ */ |