Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/208854/?format=api
{ "id": 208854, "url": "http://patchwork.ozlabs.org/api/patches/208854/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1356957909-20863-2-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-2-git-send-email-jagannadh.teki@gmail.com>", "list_archive_url": null, "date": "2012-12-31T12:45:09", "name": "[U-Boot,v2,2/2] cmd_sf: Add QIOFR(Quad IO Fast Read) read instruction support", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "1659aaa115bcab14e9a44962f463129b40250d72", "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-2-git-send-email-jagannadh.teki@gmail.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/208854/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/208854/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 E2F4B2C00A7\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 31 Dec 2012 23:45:43 +1100 (EST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id B5A074A151;\n\tMon, 31 Dec 2012 13:45:38 +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 BVc7cg5Dnqyn; Mon, 31 Dec 2012 13:45:38 +0100 (CET)", "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id ABEC94A16F;\n\tMon, 31 Dec 2012 13:45:33 +0100 (CET)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 9B89E4A15F\n\tfor <u-boot@lists.denx.de>; Mon, 31 Dec 2012 13:45:29 +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 MzLuQUaoCjyF for <u-boot@lists.denx.de>;\n\tMon, 31 Dec 2012 13:45:28 +0100 (CET)", "from mail-pb0-f52.google.com (mail-pb0-f52.google.com\n\t[209.85.160.52]) by theia.denx.de (Postfix) with ESMTPS id F3C2E4A14C\n\tfor <u-boot@lists.denx.de>; Mon, 31 Dec 2012 13:45:26 +0100 (CET)", "by mail-pb0-f52.google.com with SMTP id ro2so6997623pbb.25\n\tfor <u-boot@lists.denx.de>; Mon, 31 Dec 2012 04:45:25 -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.22\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tMon, 31 Dec 2012 04:45:24 -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:in-reply-to\n\t:references; bh=9BbSp/2bVBvIkG5YccpCmrXaEni0WNgFKCD6vzqpuD4=;\n\tb=NvRpoDa5jB06BrGdecV8G/FeZh6/LRfsCelY+bFrzlAisllmlSkBq6Bpgn4OMsrm2M\n\tIWQt3HD6phyeSTStfl+69NIg0TIK2pMMw1D3nZsnTuhXIAgx8xWsrFwj/zkv4cfYXdgf\n\tbkifhv6GXyBdXER68QJ9TRX82dTdMgDRmHLNUq8jAD3tPRfNP1zxVuyNfnkp6welcm/4\n\tlPk0R9ieq3peMi28S2QxjOd0zDrHmicHkl1mt+j8fnGLOHM9Z64KdMhMpBe4k6uLemlg\n\t2AN/hQh5eF/txo37xGIjvZ297+QGXWFz8O8fhQ3MzuBL++OunHzhuXo2scWnf7z8auM6\n\t2S+Q==", "X-Received": "by 10.69.0.40 with SMTP id av8mr127462166pbd.117.1356957924864; \n\tMon, 31 Dec 2012 04:45:24 -0800 (PST)", "From": "Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>", "To": "u-boot@lists.denx.de", "Date": "Mon, 31 Dec 2012 18:15:09 +0530", "Message-Id": "<1356957909-20863-2-git-send-email-jagannadh.teki@gmail.com>", "X-Mailer": "git-send-email 1.7.0.4", "In-Reply-To": "<1356957909-20863-1-git-send-email-jagannadh.teki@gmail.com>", "References": "<1356957909-20863-1-git-send-email-jagannadh.teki@gmail.com>", "Subject": "[U-Boot] [PATCH v2 2/2] cmd_sf: Add QIOFR(Quad 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 'qiofr'\nread instruction(rd_inst) for 'sf read' and 'sf update' commands.\n\n'qiofr' is similar to the qofr(Quad Output Fast Read) except that it\nimproves performance throughput by allowing input of the\naddress bits using four bits per SCK via four input pins.\n\nExample:\nread 0x2000 length bytes starting at offset 0x0 to memory at 0x10000\nusing qiofr read instruction.\nu-boot> sf read qiofr 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 qiofr read instruction.\nu-boot> sf update pp qiofr 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 | 13 +++++++++----\n include/spi_flash_inst.h | 1 +\n 2 files changed, 10 insertions(+), 4 deletions(-)", "diff": "diff --git a/common/cmd_sf.c b/common/cmd_sf.c\nindex 20879e7..67368c2 100644\n--- a/common/cmd_sf.c\n+++ b/common/cmd_sf.c\n@@ -295,7 +295,10 @@ static int sf_parse_rd_inst_arg(char *arg, u8 *rd_inst, u8 *rd_qeb_req)\n \t\t*rd_qeb_req = 1;\n \t} else if (strcmp(arg, \"diofr\") == 0)\n \t\t*rd_inst = CMD_READ_DUAL_IO_FAST;\n-\telse\n+\telse if (strcmp(arg, \"qiofr\") == 0) {\n+\t\t*rd_inst = CMD_READ_QUAD_IO_FAST;\n+\t\t*rd_qeb_req = 1;\n+\t} else\n \t\treturn 1;\n \n \treturn 0;\n@@ -645,12 +648,13 @@ 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 | diofr `rd_inst' read instructions\\n\"\n+\t\"\t\t\t\t afr | asr | dofr | qofr | diofr | qiofr `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\"\t\t\t\t qiofr (Quad Input/Output Fast Read, ebh)\\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@@ -665,11 +669,12 @@ 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 | diofr `rd_inst' read instructions\\n\"\n+\t\"\t\t\t\t afr | asr | dofr | qofr | diofr | qiofr `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+\t\"\t\t\t\t diofr (Dual Input/Output Fast Read, bbh)\\n\"\n+\t\"\t\t\t\t qiofr (Quad Input/Output Fast Read, ebh)\"\n \tSF_TEST_HELP\n );\ndiff --git a/include/spi_flash_inst.h b/include/spi_flash_inst.h\nindex e718e8e..556e179 100644\n--- a/include/spi_flash_inst.h\n+++ b/include/spi_flash_inst.h\n@@ -34,5 +34,6 @@\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+#define CMD_READ_QUAD_IO_FAST\t\t0xeb\n \n #endif /* _SPI_FLASH_INST_H_ */\n", "prefixes": [ "U-Boot", "v2", "2/2" ] }