mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
32181ca03d77993cd7f4ecd66286fad7ebff170f
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>
Description
No description provided
Languages
C
98.9%
Perl
0.4%
Makefile
0.4%
Shell
0.2%