Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/110130/?format=api
{ "id": 110130, "url": "http://patchwork.ozlabs.org/api/patches/110130/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1313462527-3876-6-git-send-email-agnel.joel@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": "<1313462527-3876-6-git-send-email-agnel.joel@gmail.com>", "list_archive_url": null, "date": "2011-08-16T02:42:06", "name": "[U-Boot,6/7] OMAP3: Add function to get state of a GPIO output", "commit_ref": null, "pull_url": null, "state": "awaiting-upstream", "archived": false, "hash": "fe1bcb820867981164577f5caea8cddf9f4355c5", "submitter": { "id": 8387, "url": "http://patchwork.ozlabs.org/api/people/8387/?format=api", "name": "Joel Fernandes", "email": "agnel.joel@gmail.com" }, "delegate": { "id": 1713, "url": "http://patchwork.ozlabs.org/api/users/1713/?format=api", "username": "spaulraj", "first_name": "Sandeep", "last_name": "Paulraj", "email": "s-paulraj@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1313462527-3876-6-git-send-email-agnel.joel@gmail.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/110130/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/110130/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 42BBEB6F69\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 16 Aug 2011 12:44:46 +1000 (EST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 7EFBF280B4;\n\tTue, 16 Aug 2011 04:44:36 +0200 (CEST)", "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 78skFSyxE5vP; Tue, 16 Aug 2011 04:44:36 +0200 (CEST)", "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 8E472280B6;\n\tTue, 16 Aug 2011 04:44:23 +0200 (CEST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 5615C28086\n\tfor <u-boot@lists.denx.de>; Tue, 16 Aug 2011 04:44:21 +0200 (CEST)", "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 KgKODcrzS3+R for <u-boot@lists.denx.de>;\n\tTue, 16 Aug 2011 04:44:20 +0200 (CEST)", "from mail-gw0-f44.google.com (mail-gw0-f44.google.com\n\t[74.125.83.44])\n\tby theia.denx.de (Postfix) with ESMTPS id 0A23F280AD\n\tfor <u-boot@lists.denx.de>; Tue, 16 Aug 2011 04:44:18 +0200 (CEST)", "by mail-gw0-f44.google.com with SMTP id 20so3319423gwb.3\n\tfor <u-boot@lists.denx.de>; Mon, 15 Aug 2011 19:44:18 -0700 (PDT)", "by 10.91.159.12 with SMTP id l12mr1939881ago.203.1313462658656;\n\tMon, 15 Aug 2011 19:44:18 -0700 (PDT)", "from localhost.localdomain\n\t(ip65-46-142-190.z142-46-65.customer.algx.net [65.46.142.190])\n\tby mx.google.com with ESMTPS id t11sm2208874and.3.2011.08.15.19.44.15\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tMon, 15 Aug 2011 19:44:18 -0700 (PDT)" ], "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)", "From": "Joel A Fernandes <agnel.joel@gmail.com>", "To": "u-boot@lists.denx.de", "Date": "Mon, 15 Aug 2011 21:42:06 -0500", "Message-Id": "<1313462527-3876-6-git-send-email-agnel.joel@gmail.com>", "X-Mailer": "git-send-email 1.7.1", "In-Reply-To": "<1313462527-3876-1-git-send-email-agnel.joel@gmail.com>", "References": "<1313462527-3876-1-git-send-email-agnel.joel@gmail.com>", "Cc": "Syed Mohammed Khasim <khasim@ti.com>, k-kooi@ti.com, jdk@ti.com", "Subject": "[U-Boot] [PATCH 6/7] OMAP3: Add function to get state of a GPIO\n\toutput", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.9", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<http://lists.denx.de/mailman/listinfo/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": "Read directly from OMAP24XX_GPIO_DATAOUT to get the output state of the GPIO pin\n\nSigned-off-by: Joel A Fernandes <agnel.joel@gmail.com>\nSigned-off-by: Jason Kridner <jkridner@beagleboard.org>\n---\n arch/arm/cpu/armv7/omap3/gpio.c | 20 ++++++++++++++++++++\n arch/arm/include/asm/arch-omap3/gpio.h | 2 ++\n 2 files changed, 22 insertions(+), 0 deletions(-)", "diff": "diff --git a/arch/arm/cpu/armv7/omap3/gpio.c b/arch/arm/cpu/armv7/omap3/gpio.c\nindex aeb6066..c8bb551 100644\n--- a/arch/arm/cpu/armv7/omap3/gpio.c\n+++ b/arch/arm/cpu/armv7/omap3/gpio.c\n@@ -160,6 +160,26 @@ int omap_get_gpio_datain(int gpio)\n \t\t\t& (1 << get_gpio_index(gpio))) != 0;\n }\n \n+int omap_get_gpio_dataout(int gpio)\n+{\n+\tstruct gpio_bank *bank;\n+\tvoid *reg;\n+\n+\tif (check_gpio(gpio) < 0)\n+\t\treturn -EINVAL;\n+\tbank = get_gpio_bank(gpio);\n+\treg = bank->base;\n+\tswitch (bank->method) {\n+\tcase METHOD_GPIO_24XX:\n+\t\treg += OMAP24XX_GPIO_DATAOUT;\n+\t\tbreak;\n+\tdefault:\n+\t\treturn -EINVAL;\n+\t}\n+\treturn (__raw_readl(reg)\n+\t\t\t& (1 << get_gpio_index(gpio))) != 0;\n+}\n+\n static void _reset_gpio(struct gpio_bank *bank, int gpio)\n {\n \t_set_gpio_direction(bank, get_gpio_index(gpio), 1);\ndiff --git a/arch/arm/include/asm/arch-omap3/gpio.h b/arch/arm/include/asm/arch-omap3/gpio.h\nindex 30f633c..81615bc 100644\n--- a/arch/arm/include/asm/arch-omap3/gpio.h\n+++ b/arch/arm/include/asm/arch-omap3/gpio.h\n@@ -82,5 +82,7 @@ void omap_set_gpio_direction(int gpio, int is_input);\n void omap_set_gpio_dataout(int gpio, int enable);\n /* Get the value of a gpio input */\n int omap_get_gpio_datain(int gpio);\n+/* Get the value of a gpio output */\n+int omap_get_gpio_dataout(int gpio);\n \n #endif /* _GPIO_H_ */\n", "prefixes": [ "U-Boot", "6/7" ] }