Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
b478c775
Commit
b478c775
authored
Oct 27, 2006
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MTD] CAFÉ NAND: Add 'slowtiming' parameter, default usedma and checkecc on
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
dcc41bc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
drivers/mtd/nand/cafe.c
drivers/mtd/nand/cafe.c
+15
-11
No files found.
drivers/mtd/nand/cafe.c
View file @
b478c775
...
...
@@ -58,7 +58,7 @@ struct cafe_priv {
};
static
int
usedma
=
0
;
static
int
usedma
=
1
;
module_param
(
usedma
,
int
,
0644
);
static
int
skipbbt
=
0
;
...
...
@@ -67,9 +67,12 @@ module_param(skipbbt, int, 0644);
static
int
debug
=
0
;
module_param
(
debug
,
int
,
0644
);
static
int
checkecc
=
0
;
static
int
checkecc
=
1
;
module_param
(
checkecc
,
int
,
0644
);
static
int
slowtiming
=
0
;
module_param
(
slowtiming
,
int
,
0644
);
/* Hrm. Why isn't this already conditional on something in the struct device? */
#define cafe_dev_dbg(dev, args...) do { if (debug) dev_dbg(dev, ##args); } while(0)
...
...
@@ -604,15 +607,16 @@ static int __devinit cafe_nand_probe(struct pci_dev *pdev,
/* Timings from Marvell's test code (not verified or calculated by us) */
writel
(
0xffffffff
,
cafe
->
mmio
+
CAFE_NAND_IRQ_MASK
);
#if 1
writel
(
0x01010a0a
,
cafe
->
mmio
+
CAFE_NAND_TIMING1
);
writel
(
0x24121212
,
cafe
->
mmio
+
CAFE_NAND_TIMING2
);
writel
(
0x11000000
,
cafe
->
mmio
+
CAFE_NAND_TIMING3
);
#else
writel
(
0xffffffff
,
cafe
->
mmio
+
CAFE_NAND_TIMING1
);
writel
(
0xffffffff
,
cafe
->
mmio
+
CAFE_NAND_TIMING2
);
writel
(
0xffffffff
,
cafe
->
mmio
+
CAFE_NAND_TIMING3
);
#endif
if
(
!
slowtiming
)
{
writel
(
0x01010a0a
,
cafe
->
mmio
+
CAFE_NAND_TIMING1
);
writel
(
0x24121212
,
cafe
->
mmio
+
CAFE_NAND_TIMING2
);
writel
(
0x11000000
,
cafe
->
mmio
+
CAFE_NAND_TIMING3
);
}
else
{
writel
(
0xffffffff
,
cafe
->
mmio
+
CAFE_NAND_TIMING1
);
writel
(
0xffffffff
,
cafe
->
mmio
+
CAFE_NAND_TIMING2
);
writel
(
0xffffffff
,
cafe
->
mmio
+
CAFE_NAND_TIMING3
);
}
writel
(
0xffffffff
,
cafe
->
mmio
+
CAFE_NAND_IRQ_MASK
);
err
=
request_irq
(
pdev
->
irq
,
&
cafe_nand_interrupt
,
SA_SHIRQ
,
"CAFE NAND"
,
mtd
);
if
(
err
)
{
...
...
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