Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
linux-elphel
Commits
d163c40a
Commit
d163c40a
authored
Sep 26, 2019
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better setting of nand ecc step size
parent
df2ceddc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
elphel393-zynq-base.dtsi
src/arch/arm/boot/dts/elphel393-zynq-base.dtsi
+0
-1
nand_micron.c
src/drivers/mtd/nand/raw/nand_micron.c
+1
-4
pl353_nand.c
src/drivers/mtd/nand/raw/pl353_nand.c
+5
-1
No files found.
src/arch/arm/boot/dts/elphel393-zynq-base.dtsi
View file @
d163c40a
...
@@ -313,7 +313,6 @@
...
@@ -313,7 +313,6 @@
compatible
=
"arm,pl353-nand-r2p1"
;
compatible
=
"arm,pl353-nand-r2p1"
;
reg
=
<
0
0
0x1000000
>;
reg
=
<
0
0
0x1000000
>;
nand
-
ecc
-
mode
=
"on-die"
;
nand
-
ecc
-
mode
=
"on-die"
;
nand
-
ecc
-
step
-
size
=
<
2048
>;
/*
arm
,
nand
-
clk
-
freq
-
hz
=
<
0x5f5e100
>;*/
/*
arm
,
nand
-
clk
-
freq
-
hz
=
<
0x5f5e100
>;*/
arm
,
nand
-
width
=
<
0x8
>;
arm
,
nand
-
width
=
<
0x8
>;
arm
,
nand
-
cycle
-
t0
=
<
0x4
>;
arm
,
nand
-
cycle
-
t0
=
<
0x4
>;
...
...
src/drivers/mtd/nand/raw/nand_micron.c
View file @
d163c40a
...
@@ -744,10 +744,7 @@ static int micron_nand_init(struct nand_chip *chip)
...
@@ -744,10 +744,7 @@ static int micron_nand_init(struct nand_chip *chip)
&
micron_nand_on_die_8_ooblayout_ops
);
&
micron_nand_on_die_8_ooblayout_ops
);
chip
->
ecc
.
bytes
=
chip
->
ecc_strength_ds
*
2
;
chip
->
ecc
.
bytes
=
chip
->
ecc_strength_ds
*
2
;
// this is already read from the device tree
chip
->
ecc
.
size
=
512
;
if
(
!
chip
->
ecc
.
size
){
chip
->
ecc
.
size
=
512
;
}
chip
->
ecc
.
strength
=
chip
->
ecc_strength_ds
;
chip
->
ecc
.
strength
=
chip
->
ecc_strength_ds
;
chip
->
ecc
.
algo
=
NAND_ECC_BCH
;
chip
->
ecc
.
algo
=
NAND_ECC_BCH
;
chip
->
ecc
.
read_page
=
micron_nand_read_page_on_die_ecc
;
chip
->
ecc
.
read_page
=
micron_nand_read_page_on_die_ecc
;
...
...
src/drivers/mtd/nand/raw/pl353_nand.c
View file @
d163c40a
...
@@ -1341,7 +1341,11 @@ static int pl353_nand_probe(struct platform_device *pdev)
...
@@ -1341,7 +1341,11 @@ static int pl353_nand_probe(struct platform_device *pdev)
xnfc
->
buswidth
=
val
;
xnfc
->
buswidth
=
val
;
chip
->
chip_delay
=
30
;
chip
->
chip_delay
=
30
;
/* Set the device option and flash width */
/* Set the device option and flash width */
chip
->
options
=
NAND_BUSWIDTH_AUTO
;
// old:
//chip->options = NAND_BUSWIDTH_AUTO;
// new: MT29F8G08ADBDAH4 does not support subpage write,
// setting here, will change later
chip
->
options
=
NAND_BUSWIDTH_AUTO
|
NAND_NO_SUBPAGE_WRITE
;
chip
->
bbt_options
=
NAND_BBT_USE_FLASH
;
chip
->
bbt_options
=
NAND_BBT_USE_FLASH
;
platform_set_drvdata
(
pdev
,
xnfc
);
platform_set_drvdata
(
pdev
,
xnfc
);
chip
->
setup_data_interface
=
pl353_setup_data_interface
;
chip
->
setup_data_interface
=
pl353_setup_data_interface
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment