system_rev.h 504 B

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