Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meta-elphel393
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
meta-elphel393
Commits
7966cce2
Commit
7966cce2
authored
Feb 25, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lock/unlock nand
parent
dd37465e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
elphel393.dts
conf/machine/boards/elphel393/elphel393.dts
+1
-1
pl35x_nand.c.patch
recipes-kernel/linux/linux-xlnx/pl35x_nand.c.patch
+14
-2
linux-xlnx_4.0.bbappend
recipes-kernel/linux/linux-xlnx_4.0.bbappend
+1
-1
No files found.
conf/machine/boards/elphel393/elphel393.dts
View file @
7966cce2
...
@@ -402,7 +402,7 @@
...
@@ -402,7 +402,7 @@
ps7_nand_0: ps7-nand@e1000000 {
ps7_nand_0: ps7-nand@e1000000 {
compatible = "arm,pl353-nand-r2p1";
compatible = "arm,pl353-nand-r2p1";
reg = < 0xe1000000 0x1000000 >;
reg = < 0xe1000000 0x1000000 >;
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>;
arm,nand-cycle-t1 = <0x4>;
arm,nand-cycle-t1 = <0x4>;
...
...
recipes-kernel/linux/linux-xlnx/
xilinx_nandps_elphel393
.patch
→
recipes-kernel/linux/linux-xlnx/
pl35x_nand.c
.patch
View file @
7966cce2
diff -Naur a/drivers/mtd/nand/pl35x_nand.c b/drivers/mtd/nand/pl35x_nand.c
diff -Naur a/drivers/mtd/nand/pl35x_nand.c b/drivers/mtd/nand/pl35x_nand.c
--- a/drivers/mtd/nand/pl35x_nand.c 2016-0
1-25 18:34:24.065782741
-0700
--- a/drivers/mtd/nand/pl35x_nand.c 2016-0
2-19 13:41:57.660680389
-0700
+++ b/drivers/mtd/nand/pl35x_nand.c 2016-0
1-25 18:55:51.945806920
-0700
+++ b/drivers/mtd/nand/pl35x_nand.c 2016-0
2-24 19:58:58.208889453
-0700
@@ -117,6 +117,9 @@
@@ -117,6 +117,9 @@
{NAND_CMD_PARAM, NAND_CMD_NONE, 1, NAND_CMD_NONE},
{NAND_CMD_PARAM, NAND_CMD_NONE, 1, NAND_CMD_NONE},
{NAND_CMD_GET_FEATURES, NAND_CMD_NONE, 1, NAND_CMD_NONE},
{NAND_CMD_GET_FEATURES, NAND_CMD_NONE, 1, NAND_CMD_NONE},
...
@@ -11,3 +11,15 @@ diff -Naur a/drivers/mtd/nand/pl35x_nand.c b/drivers/mtd/nand/pl35x_nand.c
...
@@ -11,3 +11,15 @@ diff -Naur a/drivers/mtd/nand/pl35x_nand.c b/drivers/mtd/nand/pl35x_nand.c
{NAND_CMD_NONE, NAND_CMD_NONE, 0, 0},
{NAND_CMD_NONE, NAND_CMD_NONE, 0, 0},
/* Add all the flash commands supported by the flash device and Linux */
/* Add all the flash commands supported by the flash device and Linux */
/*
/*
@@ -1082,6 +1085,11 @@
return -ENXIO;
}
+ //elphel393 modification for Micron NAND chips
+ //TODO: add Micron chip ID checking
+ mtd->_unlock = nand_unlock;
+ mtd->_lock = nand_lock;
+
ppdata.of_node = pdev->dev.of_node;
mtd_device_parse_register(&xnand->mtd, NULL, &ppdata, NULL, 0);
recipes-kernel/linux/linux-xlnx_4.0.bbappend
View file @
7966cce2
FILESEXTRAPATHS_append := "${THISDIR}/linux-xlnx:"
FILESEXTRAPATHS_append := "${THISDIR}/linux-xlnx:"
FILESEXTRAPATHS_prepend := "${THISDIR}/config:"
FILESEXTRAPATHS_prepend := "${THISDIR}/config:"
SRC_URI_append += " file://
xilinx_nandps_elphel393
.patch"
SRC_URI_append += " file://
pl35x_nand.c
.patch"
SRC_URI_append += " file://xilinx_emacps.c.patch"
SRC_URI_append += " file://xilinx_emacps.c.patch"
SRC_URI_append += " file://xilinx_uartps.c.patch"
SRC_URI_append += " file://xilinx_uartps.c.patch"
SRC_URI_append += " file://si5338_vsc330x.patch"
SRC_URI_append += " file://si5338_vsc330x.patch"
...
...
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