// MEM_CFG0_REG |= ONENAND_SYS_CFG1_HF;
this->base = (void *) 0xe7100000;
-// this->base = (void *)CONFIG_SYS_ONENAND_BASE;
+ this->base = (void *)CONFIG_SYS_ONENAND_BASE;
-// s3c_onenand_init(mtd);
+ s3c_onenand_init(mtd);
}
LIB := $(obj)libonenand.a
-#COBJS-$(CONFIG_CMD_ONENAND) := onenand_uboot.o onenand_base.o onenand_bbt.o
-#COBJS-$(CONFIG_S3C64XX) += s3c-onenand.o
-#COBJS-$(CONFIG_S5PC1XX) += s3c-onenand.o
-COBJS-$(CONFIG_S5PC1XX) += onenand_uboot.o lsi_onenand.o
+COBJS-$(CONFIG_CMD_ONENAND) := onenand_uboot.o onenand_base.o onenand_bbt.o
+COBJS-$(CONFIG_S3C64XX) += s3c-onenand.o
+COBJS-$(CONFIG_S5PC1XX) += s3c-onenand.o
+#COBJS-$(CONFIG_S5PC1XX) += onenand_uboot.o lsi_onenand.o
COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)
this->read_bufferram = onenand_read_bufferram;
this->write_bufferram = onenand_write_bufferram;
-
- this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK;
}
erasesize = ONENAND_PAGES_PER_BLOCK * pagesize;
nblocks = (CONFIG_SYS_MONITOR_LEN + erasesize - 1) >> erase_shift;
-#ifdef CONFIG_S5PC1XX
- nblocks = 1;
-#endif
/* NOTE: you must read page from page 1 of block 0 */
/* read the block page by page*/