zhikui.cui 32181ca03d NAND: unify slcnand&spinand mtdparts code [1/1]
PD#SWPL-224631

Problem:
mtd partition in spinand and slcnand have no difference,
should unify there code

Solution:
1. spinand partitions table define in dts keep same format with slc nand:
partitions {
	#address = <1>;
	#size-cells= <1>;

	partition@n {
		label = "part_name";
		reg = < ... >;
	};
};
instead of:
partition = <&partitions>;
partitions: partitions{
	part_name {
		offset = < ... >;
		size = < ... >;
	};
}

2. the definition of SLCNAND bl_mode in dts remains the same
as that of SPINAND
bl_mode = <0> : NAND_FIPMODE_COMPACT;
bl_mode = <1> : NAND_FIPMODE_DISCRETE;
bl_mode = <2> : NAND_FIPMODE_ADVANCE;
in this way, SLCNAND does not need to define bl2ex_mode in platform data by
meosn_nand.c

Change-Id: I32d1b1b55e6c927d73937f8f748d8285f3c6dff3
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2025-09-25 14:03:05 +08:00
2025-06-23 21:15:59 -07:00
S
Description
No description provided
118 MiB
Languages
C 98.9%
Perl 0.4%
Makefile 0.4%
Shell 0.2%