2011-04-13 10:34:03 -06:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
|
|
|
*
|
|
|
|
* Under GPLv2 only
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ARCH_SYSTEM_REV_H__
|
|
|
|
#define __ARCH_SYSTEM_REV_H__
|
|
|
|
|
2012-03-28 11:30:01 -06:00
|
|
|
#include <asm/system_info.h>
|
|
|
|
|
2011-04-13 10:34:03 -06:00
|
|
|
/*
|
|
|
|
* board revision encoding
|
|
|
|
* mach specific
|
|
|
|
* the 16-31 bit are reserved for at91 generic information
|
|
|
|
*
|
|
|
|
* bit 31:
|
2011-07-01 04:25:24 -06:00
|
|
|
* 0 => nand 8 bit
|
|
|
|
* 1 => nand 16 bit
|
2011-04-13 10:34:03 -06:00
|
|
|
*/
|
2011-07-01 04:25:24 -06:00
|
|
|
#define BOARD_HAVE_NAND_16BIT (1 << 31)
|
|
|
|
static inline int board_have_nand_16bit(void)
|
2011-04-13 10:34:03 -06:00
|
|
|
{
|
2011-10-24 00:57:32 -06:00
|
|
|
return (system_rev & BOARD_HAVE_NAND_16BIT) ? 1 : 0;
|
2011-04-13 10:34:03 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* __ARCH_SYSTEM_REV_H__ */
|