#define onenand_writew(v, a) ((*(volatile unsigned short *)(a)) = (u16) (v))
#define SAMSUNG_MFR_ID 0xEC
+#define NUMONYX_MFR_ID 0x20
#define KFM1G16Q2A_DEV_ID 0x30
#define KFN2G16Q2A_DEV_ID 0x40
-
+#define NAND01GR4E_DEV_ID 0x30
+#define NAND02GR4E_DEV_ID 0x40
+#define NAND04GR4E_DEV_ID 0x58
#define THIS_ONENAND(a) (ONENAND_ADDR + (a))
printf(" ONENAND Flash unsupported\r\n");
return 1;
}
+ } else if (mf_id == NUMONYX_MFR_ID) {
+ if (dev_id == NAND01GR4E_DEV_ID) {
+ printf("Detected Numonyx OneNAND 1G Flash \r\n");
+ return 0;
+ } else if (dev_id == NAND02GR4E_DEV_ID) {
+ printf("Detected Numonyx OneNAND 2G Flash \r\n");
+ return 0;
+ } else if (dev_id == NAND04GR4E_DEV_ID) {
+ printf("Detected Numonyx OneNAND 4G Flash \r\n");
+ return 0;
+ } else {
+ printf("Numonyx OneNAND Flash unsupported \r\n");
+ return 1;
+ }
} else {
printf("ONENAND Flash Unsupported\r\n");
return 1;
#define SDP_SDRC_MDCFG_0_DDR_HYNIX (0x03588019|B_ALL)
#endif
+/* Numonyx devices */
+#define MK65KX001AM_SDRC_MCDCFG (0x02584019|B_ALL)
+#define MK65KX002AM_SDRC_MCDCFG (0x03588019|B_ALL)
+
#define SDP_SDRC_MR_0_DDR 0x00000032
/* Diabling power down mode using CKE pin */