Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
u-boot-stm32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sami Nurmenniemi
u-boot-stm32
Commits
098aca41
Commit
098aca41
authored
Mar 27, 2015
by
Sergei Poselenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RT #108546. Fixed error in NAND driver - ECC soft errors didn't not correct.
parent
039e3fca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/mtd/nand/fsl_nfc.c
drivers/mtd/nand/fsl_nfc.c
+4
-4
No files found.
drivers/mtd/nand/fsl_nfc.c
View file @
098aca41
...
...
@@ -45,9 +45,9 @@
/* Timeouts */
#define NFC_RESET_TIMEOUT 1000
/* 1 ms */
#define NFC_TIMEOUT 5000
/* 1/10 s */
#define ECC_SRAM_ADDR
0x100
#define ECC_STATUS_MASK 0x80
#define ECC_ERR_COUNT 0x3F
#define ECC_SRAM_ADDR
(0x840 >> 3)
#define ECC_STATUS_MASK
0x80
#define ECC_ERR_COUNT
0x3F
#ifndef MIN
#define MIN(x, y) ((x < y) ? x : y)
...
...
@@ -182,7 +182,7 @@ static void fsl_nfc_done(struct mtd_info *mtd)
start
=
get_timer
(
0
);
while
(
!
nfc_get_field
(
mtd
,
NFC_IRQ_STATUS
,
CMD_DON
E_IRQ_MASK
))
{
while
(
!
nfc_get_field
(
mtd
,
NFC_IRQ_STATUS
,
IDL
E_IRQ_MASK
))
{
if
(
get_timer
(
start
)
>
NFC_TIMEOUT
)
{
printf
(
"Timeout while waiting for BUSY.
\n
"
);
break
;
...
...
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