Commit Graph

13 Commits

Author SHA1 Message Date
Bichao Zheng 3d744698f9 spinand: remove meson mtd erase interface [1/1]
PD#SWPL-136164

Problem:
No need to implement the erase interface for mtd

Solution:
remove meson mtd erase interface

Verify:
S1A

Change-Id: Id214b1551018586304dfffee06ba8d6cecbcb14d
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2023-08-16 02:29:00 -07:00
Bichao Zheng ccc09fb175 spinand: adjust meson bbt [1/1]
PD#SWPL-136164

Problem:
if oob bit flips, may misidentify bad blocks

Solution:
find meson bbt directly.

Verify:
c3

Change-Id: I66e168963a3210052d154256c6b9ec0f6a1b862f
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2023-08-15 04:19:30 -07:00
Bichao Zheng 540d825988 spinfc: add new spi nfc driver [1/1]
PD#SWPL-133132

Problem:
adopt new spi flash controller with ecc engine

Solution:
add a new spi nfc flash driver

Verify:
s1a

Change-Id: I551d27ac29effe2bd0bb090a8cc9bc9897080a20
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2023-08-15 10:36:49 +08:00
Bichao Zheng 20f5935b04 bf201: nand partition confirmation [1/1]
PD#SWPL-124386

Problem:
1. Reduce bootloader area

Solution:
1. remove ddrfip area
2. Reduce RSV to 14 blocks.
3. Reduce backup of BL2E BL2X DEVFIP to 2
4. Bootloader area reduced from 0x1600000 to 0x940000 bytes

Verify:
s4

Change-Id: I97187d33f211c7a5ab60e4cda2b369defb8363dd
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2023-06-16 20:23:48 -07:00
Feng Chen 2d1b3f30de spinand: cannot be mounted normally [1/1]
PD#SWPL-123829

Problem:
nand cannot be mounted normally.

Solution:
modify oob layout for BBM

Verify:
a1

Change-Id: I19b038cf6e9a5196d0637467d2572eb1178a9496
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2023-05-19 01:56:14 -07:00
Feng Chen 7b9735c463 spinand: add env_size for a1 [1/1]
PD#SWPL-115118

Problem:
error cause by different env size
define under uboot and kernel

Solution:
add env_size in dts

Verify:
a1

Change-Id: I2abfa546e38d650524da52641a7958f1c1f50d4b
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2023-03-23 05:12:12 -07:00
Feng Chen dc764e2a01 spinand: add F50L1G41LB support [1/1]
PD#SH-13003

Problem:
spinand need F50L1G41LB support

Solution:
add flash id support

Verify:
a1_ad403

Change-Id: Icf9a78b3e8268063eaea628f0304c4f7c751eeac
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2023-02-19 22:05:31 -08:00
Feng Chen 9a7b2542e8 spi-nand: modify check bad block rule in add partition method [1/1]
PD#SWPL-100114

Problem:
factory bad blocks and the other bad blocks
both in the return result of mtd check bad
blocks method, but in add partitions process
that not safety, because system partition might
use the same block in next startup.

Solution:
only skip factory bad blocks in add partitions
method.

Verify:
c3_aw419

Signed-off-by: Feng Chen <feng.chen@amlogic.com>
Change-Id: If9b0b10f41c07052ef955c1ebf3193ab657ec09e
2022-12-07 02:01:28 -07:00
Bichao Zheng 2a4446af15 spi nand: c3 fix mtd0 write&read fail [1/1]
PD#SWPL-88624

Problem:
1. swupdate mtd0 fail

Solution:
1. add front info page support.

Verify:
c3

Change-Id: I99da5578b4d130656924fcdbd96ac7e85a1d0d8e
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2022-07-21 03:53:12 -07:00
Bichao Zheng 3ed03c5332 nand: fix rsv read fail [1/2]
PD#SWPL-86523

Problem:
rsv read fail when bit flip

Solution:
Use mtd api instead

Verify:
c3

Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
Change-Id: I4fc9c94b2e47235c7a7d5a1c5fd592d84223f0ab
2022-06-30 18:20:42 +08:00
Bichao Zheng ff62e3deaa spinand: fix compile fail [1/1]
PD#SWPL-83836

Problem:
1. mk_smarthome32_clang compile fail.

Solution:
2. initialization variable.

Verify:
c3_aw419

Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
Change-Id: I679e652e8a1f39b4933856ab72ce60850faccfd3
2022-06-30 18:09:28 +08:00
Bichao Zheng 7b68997a51 spinand: C3 add spinand support [1/1]
PD#SWPL-83836

Problem:
need add spinand support

Solution:
1. enabled spinand default
2. disabled emmc
3. add new partition
4. enabled ubifs support

Verify:
c3_aw419

Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
Change-Id: Ic1e679d30f5bd23cb30115fe380b9a08e60b18f3
2022-06-30 18:09:28 +08:00
Bichao Zheng 0d4c1967ad spinand: add spi nand support [1/1]
PD#SWPL-77466

Problem:
need to support spi nand

Solution:
1. add spi nand support
2. add spifc v2 support

Verify:
A1

Change-Id: I183e52931a3b87b7d13ce6b7d930c2e16a6e0a25
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2022-05-12 17:50:20 +08:00