Chromium Code Reviews| Index: board/tegra2/common/nand/HY27UF084G2B/tegra2_nand.h |
| diff --git a/board/tegra2/common/nand/HY27UF084G2B/tegra2_nand.h b/board/tegra2/common/nand/HY27UF084G2B/tegra2_nand.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f1839709fe634a582857586b6c2bf50c69b71b4c |
| --- /dev/null |
| +++ b/board/tegra2/common/nand/HY27UF084G2B/tegra2_nand.h |
| @@ -0,0 +1,57 @@ |
| +/* register offset */ |
| +#define NAND_COMMAND_0 0x00 |
| +#define NAND_STATUS_0 0x04 |
| +#define NAND_ISR_0 0x08 |
| +#define NAND_IER_0 0x0C |
| +#define NAND_CONFIG_0 0x10 |
| +#define NAND_TIMING_0 0x14 |
| +#define NAND_RESP_0 0x18 |
| +#define NAND_TIMING2_0 0x1C |
| +#define NAND_CMD_REG1_0 0x20 |
| +#define NAND_CMD_REG2_0 0x24 |
| +#define NAND_ADDR_REG1_0 0x28 |
| +#define NAND_ADDR_REG2_0 0x2C |
| + |
| +#define LP_OPTIONS (NAND_NO_READRDY | NAND_NO_AUTOINCR) |
| + |
| +#define Bit0 0x00000001 |
|
Tom Warren
2011/03/08 20:43:08
All of these are already in common/board.h. Please
|
| +#define Bit1 0x00000002 |
| +#define Bit2 0x00000004 |
| +#define Bit3 0x00000008 |
| +#define Bit4 0x00000010 |
| +#define Bit5 0x00000020 |
| +#define Bit6 0x00000040 |
| +#define Bit7 0x00000080 |
| +#define Bit8 0x00000100 |
| +#define Bit9 0x00000200 |
| +#define Bit10 0x00000400 |
| +#define Bit11 0x00000800 |
| +#define Bit12 0x00001000 |
| +#define Bit13 0x00002000 |
| +#define Bit14 0x00004000 |
| +#define Bit15 0x00008000 |
| +#define Bit16 0x00010000 |
| +#define Bit17 0x00020000 |
| +#define Bit18 0x00040000 |
| +#define Bit19 0x00080000 |
| +#define Bit20 0x00100000 |
| +#define Bit21 0x00200000 |
| +#define Bit22 0x00400000 |
| +#define Bit23 0x00800000 |
| +#define Bit24 0x01000000 |
| +#define Bit25 0x02000000 |
| +#define Bit26 0x04000000 |
| +#define Bit27 0x08000000 |
| +#define Bit28 0x10000000 |
| +#define Bit29 0x20000000 |
| +#define Bit30 0x40000000 |
| +#define Bit31 0x80000000 |
| + |
| +static uint8_t tegra2_nand_read_byte(struct mtd_info *mtd); |
| +static void tegra2_nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len); |
| +static void tegra2_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len); |
| +static int tegra2_nand_waitfor_GO_cleared(struct mtd_info *mtd); |
| +static int tegra2_nand_dev_ready(struct mtd_info *mtd); |
| + |
| + |
| + |