From 9df731a176aab8e03b984b681b1bea01ccff6644 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 06 Nov 2023 07:23:06 +0000 Subject: [PATCH] rk3568 rt uboot init --- u-boot/drivers/mtd/nand/spi/foresee.c | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/u-boot/drivers/mtd/nand/spi/foresee.c b/u-boot/drivers/mtd/nand/spi/foresee.c index a67931f..5b3286e 100644 --- a/u-boot/drivers/mtd/nand/spi/foresee.c +++ b/u-boot/drivers/mtd/nand/spi/foresee.c @@ -28,7 +28,7 @@ static SPINAND_OP_VARIANTS(update_cache_variants, SPINAND_PROG_LOAD_X4(false, 0, NULL, 0), - SPINAND_PROG_LOAD(false, 0, NULL, 0)); + SPINAND_PROG_LOAD(true, 0, NULL, 0)); static int fsxxndxxg_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *region) @@ -117,6 +117,24 @@ &update_cache_variants), SPINAND_HAS_QE_BIT, SPINAND_ECCINFO(&fsxxndxxg_ooblayout, NULL)), + SPINAND_INFO("F35UQA002G-WWT", + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x62), + NAND_MEMORG(1, 2048, 64, 64, 2048, 1, 1, 1), + NAND_ECCREQ(1, 512), + SPINAND_INFO_OP_VARIANTS(&read_cache_variants, + &write_cache_variants, + &update_cache_variants), + SPINAND_HAS_QE_BIT, + SPINAND_ECCINFO(&fsxxndxxg_ooblayout, NULL)), + SPINAND_INFO("F35UQA001G-WWT", + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x61), + NAND_MEMORG(1, 2048, 64, 64, 1024, 1, 1, 1), + NAND_ECCREQ(1, 512), + SPINAND_INFO_OP_VARIANTS(&read_cache_variants, + &write_cache_variants, + &update_cache_variants), + SPINAND_HAS_QE_BIT, + SPINAND_ECCINFO(&fsxxndxxg_ooblayout, NULL)), }; static const struct spinand_manufacturer_ops foresee_spinand_manuf_ops = { -- Gitblit v1.6.2