system_rev.h 544 B

12345678910111213141516171819202122232425262728
  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. #include <asm/system_info.h>
  9. /*
  10. * board revision encoding
  11. * mach specific
  12. * the 16-31 bit are reserved for at91 generic information
  13. *
  14. * bit 31:
  15. * 0 => nand 8 bit
  16. * 1 => nand 16 bit
  17. */
  18. #define BOARD_HAVE_NAND_16BIT (1 << 31)
  19. static inline int board_have_nand_16bit(void)
  20. {
  21. return (system_rev & BOARD_HAVE_NAND_16BIT) ? 1 : 0;
  22. }
  23. #endif /* __ARCH_SYSTEM_REV_H__ */