Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/208853/?format=api
{ "id": 208853, "url": "http://patchwork.ozlabs.org/api/patches/208853/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1356957909-20863-1-git-send-email-jagannadh.teki@gmail.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1356957909-20863-1-git-send-email-jagannadh.teki@gmail.com>", "list_archive_url": null, "date": "2012-12-31T12:45:08", "name": "[U-Boot,v2,1/2] cmd_sf: Add DIOFR(Dual IO Fast Read) read instruction support", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "c30292f386a99b5c8bea57d4f59af499b81d4997", "submitter": { "id": 20045, "url": "http://patchwork.ozlabs.org/api/people/20045/?format=api", "name": "Jagan Teki", "email": "jagannadh.teki@gmail.com" }, "delegate": { "id": 17739, "url": "http://patchwork.ozlabs.org/api/users/17739/?format=api", "username": "jagan", "first_name": "Jagannadha Sutradharudu", "last_name": "Teki", "email": "jagannadh.teki@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1356957909-20863-1-git-send-email-jagannadh.teki@gmail.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/208853/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/208853/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Received": [ "from theia.denx.de (theia.denx.de [85.214.87.163])\n\tby ozlabs.org (Postfix) with ESMTP id 2A44D2C00A7\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 31 Dec 2012 23:45:34 +1100 (EST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id B3A2E4A14D;\n\tMon, 31 Dec 2012 13:45:31 +0100 (CET)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id nxEwvSwVx0Jn; Mon, 31 Dec 2012 13:45:31 +0100 (CET)", "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id AA1474A151;\n\tMon, 31 Dec 2012 13:45:28 +0100 (CET)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 1BFEF4A14D\n\tfor <u-boot@lists.denx.de>; Mon, 31 Dec 2012 13:45:27 +0100 (CET)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id OWYshiR2L9Qe for <u-boot@lists.denx.de>;\n\tMon, 31 Dec 2012 13:45:26 +0100 (CET)", "from mail-da0-f46.google.com (mail-da0-f46.google.com\n\t[209.85.210.46]) by theia.denx.de (Postfix) with ESMTPS id 08DAB4A14C\n\tfor <u-boot@lists.denx.de>; Mon, 31 Dec 2012 13:45:24 +0100 (CET)", "by mail-da0-f46.google.com with SMTP id p5so5716926dak.5\n\tfor <u-boot@lists.denx.de>; Mon, 31 Dec 2012 04:45:22 -0800 (PST)", "from localhost.localdomain ([49.204.11.250])\n\tby mx.google.com with ESMTPS id\n\tov4sm24823864pbb.45.2012.12.31.04.45.20\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tMon, 31 Dec 2012 04:45:21 -0800 (PST)" ], "X-Virus-Scanned": [ "Debian amavisd-new at theia.denx.de", "Debian amavisd-new at theia.denx.de" ], "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tNOT_IN_BL_NJABL=-1.5 (only DNSBL check requested)", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\n\th=x-received:from:to:cc:subject:date:message-id:x-mailer;\n\tbh=RgIs6vwDMP1x2nE7y1hjjfYNjX2IAC331gjfumU1S4k=;\n\tb=CBLna6E+O/np3IZDTpaqrQGESKCil8pgX1Lr9LK8MVL6K8jNO9FbG/qEBEzEYFT5Qs\n\tgUZ/Nd5TVPc660WDEGB2Ygt0utvDOeeDJOpAruVxcKbiwUw+NaKnEqf4QO6nKRxnKI+L\n\tg2KLceKt8ew5bA0AkkyIYroLdIqYhHVHoNmd6wnv6HfvaerPFChazP2tr5A5m9C+W/xR\n\t6XaEs+76u6Vl4Eb/xcK5Cbk9qlXaR3UJMXhmKDW4hpOgxlZM7Zr5ZQ2DQynQBCpalcl6\n\tOSZ+u+zpqzBOPHSgD41vd9XIOGCPZBvOGSOw1SqiYPIqC+9MTR9grId6H2QnF4LXOdKy\n\tIFxg==", "X-Received": "by 10.68.125.195 with SMTP id\n\tms3mr126282296pbb.149.1356957922609; \n\tMon, 31 Dec 2012 04:45:22 -0800 (PST)", "From": "Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>", "To": "u-boot@lists.denx.de", "Date": "Mon, 31 Dec 2012 18:15:08 +0530", "Message-Id": "<1356957909-20863-1-git-send-email-jagannadh.teki@gmail.com>", "X-Mailer": "git-send-email 1.7.0.4", "Subject": "[U-Boot] [PATCH v2 1/2] cmd_sf: Add DIOFR(Dual IO Fast Read) read\n\tinstruction support", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.11", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<http://lists.denx.de/mailman/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<http://lists.denx.de/pipermail/u-boot>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "u-boot-bounces@lists.denx.de", "Errors-To": "u-boot-bounces@lists.denx.de" }, "content": "This patch provides a support to read a flash using 'diofr'\nread instruction(rd_inst) for 'sf read' and 'sf update' commands.\n\n'diofr' is similar to the dofr(Dual Output Fast Read) except that it\nimproves performance throughput by allowing input of the\naddress bits using two bits per SCK via two input pins.\n\nExample:\nread 0x2000 length bytes starting at offset 0x0 to memory at 0x10000\nusing diofr read instruction.\nu-boot> sf read diofr 0x10000 0x0 0x2000\n\nerase and write 0x2000 length bytes from memory at 0x10000 address to\nflash offset at 0x0 using pp write instruction and diofr read instruction.\nu-boot> sf update pp diofr 0x10000 0x0 0x2000\n\nSigned-off-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>\n---\nChanges in v2: Added command help on U_BOOT_CMD\n\n common/cmd_sf.c | 12 ++++++++----\n include/spi_flash_inst.h | 1 +\n 2 files changed, 9 insertions(+), 4 deletions(-)", "diff": "diff --git a/common/cmd_sf.c b/common/cmd_sf.c\nindex a07effd..20879e7 100644\n--- a/common/cmd_sf.c\n+++ b/common/cmd_sf.c\n@@ -293,7 +293,9 @@ static int sf_parse_rd_inst_arg(char *arg, u8 *rd_inst, u8 *rd_qeb_req)\n \telse if (strcmp(arg, \"qofr\") == 0) {\n \t\t*rd_inst = CMD_READ_QUAD_OUTPUT_FAST;\n \t\t*rd_qeb_req = 1;\n-\t} else\n+\t} else if (strcmp(arg, \"diofr\") == 0)\n+\t\t*rd_inst = CMD_READ_DUAL_IO_FAST;\n+\telse\n \t\treturn 1;\n \n \treturn 0;\n@@ -643,11 +645,12 @@ U_BOOT_CMD(\n \t\"sf read rd_inst addr offset len\\n\"\n \t\"\t\t\t\t- read `len' bytes starting at\\n\"\n \t\"\t\t\t\t `offset' to memory at `addr' using\\n\"\n-\t\"\t\t\t\t afr | asr | dofr | qofr `rd_inst' read instructions\\n\"\n+\t\"\t\t\t\t afr | asr | dofr | qofr | diofr `rd_inst' read instructions\\n\"\n \t\"\t\t\t\t afr (Array Fast Read, 0bh)\\n\"\n \t\"\t\t\t\t asr (Array Slow Read, 02b)\\n\"\n \t\"\t\t\t\t dofr (Dual Output Fast Read, 3bh)\\n\"\n \t\"\t\t\t\t qofr (Quad Output Fast Read, 6bh)\\n\"\n+\t\"\t\t\t\t diofr (Dual Input/Output Fast Read, bbh)\\n\"\n \t\"sf write wr_inst addr offset len\\n\"\n \t\"\t\t\t\t- write `len' bytes from memory\\n\"\n \t\"\t\t\t\t at `addr' to flash at `offset' using\\n\"\n@@ -662,10 +665,11 @@ U_BOOT_CMD(\n \t\"\t\t\t\t pp | qpp `wr_inst' write instructions and\\n\"\n \t\"\t\t\t\t pp (Page Program, 02h)\\n\"\n \t\"\t\t\t\t qpp (Quad Page Program, 32h)\\n\"\n-\t\"\t\t\t\t afr | asr | dofr | qofr `rd_inst' read instructions\\n\"\n+\t\"\t\t\t\t afr | asr | dofr | qofr | diofr `rd_inst' read instructions\\n\"\n \t\"\t\t\t\t afr (Array Fast Read, 0bh)\\n\"\n \t\"\t\t\t\t asr (Array Slow Read, 02b)\\n\"\n \t\"\t\t\t\t dofr (Dual Output Fast Read, 3bh)\\n\"\n-\t\"\t\t\t\t qofr (Quad Output Fast Read, 6bh)\"\n+\t\"\t\t\t\t qofr (Quad Output Fast Read, 6bh)\\n\"\n+\t\"\t\t\t\t diofr (Dual Input/Output Fast Read, bbh)\"\n \tSF_TEST_HELP\n );\ndiff --git a/include/spi_flash_inst.h b/include/spi_flash_inst.h\nindex 67b22c8..e718e8e 100644\n--- a/include/spi_flash_inst.h\n+++ b/include/spi_flash_inst.h\n@@ -33,5 +33,6 @@\n #define CMD_READ_ARRAY_SLOW\t\t0x03\n #define CMD_READ_DUAL_OUTPUT_FAST\t0x3b\n #define CMD_READ_QUAD_OUTPUT_FAST\t0x6b\n+#define CMD_READ_DUAL_IO_FAST\t\t0xbb\n \n #endif /* _SPI_FLASH_INST_H_ */\n", "prefixes": [ "U-Boot", "v2", "1/2" ] }