Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
linux
linux-davinci-2.6.23
Commits
d29d6626
Commit
d29d6626
authored
Oct 07, 2008
by
Tom Bruno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix NAND lock error on boot after upgrade to newer than factory firmware
parent
972e3b99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
drivers/mtd/nand/davinci_nand.c
drivers/mtd/nand/davinci_nand.c
+13
-1
No files found.
drivers/mtd/nand/davinci_nand.c
View file @
d29d6626
...
...
@@ -49,6 +49,7 @@
#include <asm/arch/hardware.h>
#include <asm/arch/nand.h>
#include <asm/arch/mux.h>
#include <asm/arch/gpio.h>
#include <asm/mach/flash.h>
...
...
@@ -149,9 +150,20 @@ static void nand_davinci_hwcontrol(struct mtd_info *mtd, int cmd,
writeb
(
cmd
,
chip
->
IO_ADDR_W
);
}
/* Set WP on deselect, write enable on select */
static
void
nand_davinci_select_chip
(
struct
mtd_info
*
mtd
,
int
chip
)
{
/* do nothing */
#ifdef CONFIG_MACH_NTOSD_644XA
#define GPIO_NAND_WP 41
gpio_direction_output
(
GPIO
(
GPIO_NAND_WP
),
0
);
/* set output */
if
(
chip
<
0
){
gpio_set_value
(
GPIO
(
GPIO_NAND_WP
),
0
);
}
else
{
gpio_set_value
(
GPIO
(
GPIO_NAND_WP
),
1
);
}
#endif
}
#ifdef CONFIG_NAND_FLASH_HW_ECC
...
...
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