Commit 7966cce2 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

lock/unlock nand

parent dd37465e
...@@ -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>;
......
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-01-25 18:34:24.065782741 -0700 --- a/drivers/mtd/nand/pl35x_nand.c 2016-02-19 13:41:57.660680389 -0700
+++ b/drivers/mtd/nand/pl35x_nand.c 2016-01-25 18:55:51.945806920 -0700 +++ b/drivers/mtd/nand/pl35x_nand.c 2016-02-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);
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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment