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
d4f217cf
Commit
d4f217cf
authored
Sep 26, 2019
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set ecc.size correctly, added NAND_NO_SUBPAGE_WRITE to options
parent
d163c40a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
nand_micron.c
src/drivers/mtd/nand/raw/nand_micron.c
+4
-0
pl353_nand.c
src/drivers/mtd/nand/raw/pl353_nand.c
+1
-5
No files found.
src/drivers/mtd/nand/raw/nand_micron.c
View file @
d4f217cf
...
@@ -763,6 +763,10 @@ static int micron_nand_init(struct nand_chip *chip)
...
@@ -763,6 +763,10 @@ static int micron_nand_init(struct nand_chip *chip)
// chip->id.data[1] is dev_id (0xa3 in Elphel 10393)
// chip->id.data[1] is dev_id (0xa3 in Elphel 10393)
nand_micron_mt29f_init
(
mtd
,
chip
->
id
.
data
[
1
]);
nand_micron_mt29f_init
(
mtd
,
chip
->
id
.
data
[
1
]);
// MT29F8G08ADBDAH4, no subpage write support
if
(
chip
->
id
.
data
[
1
]
==
0xa3
)
chip
->
options
|=
NAND_NO_SUBPAGE_WRITE
;
// Elphel: modification for Micron NAND chips
// Elphel: modification for Micron NAND chips
//TODO: add Micron chip ID checking
//TODO: add Micron chip ID checking
mtd
->
_unlock
=
micron_nand_unlock
;
mtd
->
_unlock
=
micron_nand_unlock
;
...
...
src/drivers/mtd/nand/raw/pl353_nand.c
View file @
d4f217cf
...
@@ -1341,11 +1341,7 @@ static int pl353_nand_probe(struct platform_device *pdev)
...
@@ -1341,11 +1341,7 @@ 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 */
// old:
chip
->
options
=
NAND_BUSWIDTH_AUTO
;
//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