get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/110124/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 110124,
    "url": "http://patchwork.ozlabs.org/api/patches/110124/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1313462214-3716-3-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": "<1313462214-3716-3-git-send-email-agnel.joel@gmail.com>",
    "list_archive_url": null,
    "date": "2011-08-16T02:36:54",
    "name": "[U-Boot,3/3] BeagleBoard: Configure DVI/S-video",
    "commit_ref": "3f16ab9102b45e80258821e503ea24d3598ada14",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "70e54fa99a1ee4458ae70a02448c2cbb04277899",
    "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/1313462214-3716-3-git-send-email-agnel.joel@gmail.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/110124/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/110124/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 AF13CB6F72\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 16 Aug 2011 12:39:27 +1000 (EST)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 20F5828083;\n\tTue, 16 Aug 2011 04:39:26 +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 56-H21qtLY5K; Tue, 16 Aug 2011 04:39:25 +0200 (CEST)",
            "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 93C7828084;\n\tTue, 16 Aug 2011 04:39:23 +0200 (CEST)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id E77AC2808B\n\tfor <u-boot@lists.denx.de>; Tue, 16 Aug 2011 04:39:20 +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 ptTWQsOxXtBP for <u-boot@lists.denx.de>;\n\tTue, 16 Aug 2011 04:39:20 +0200 (CEST)",
            "from mail-yx0-f172.google.com (mail-yx0-f172.google.com\n\t[209.85.213.172])\n\tby theia.denx.de (Postfix) with ESMTPS id B453C28083\n\tfor <u-boot@lists.denx.de>; Tue, 16 Aug 2011 04:39:18 +0200 (CEST)",
            "by yxp4 with SMTP id 4so3276772yxp.3\n\tfor <u-boot@lists.denx.de>; Mon, 15 Aug 2011 19:39:17 -0700 (PDT)",
            "by 10.236.187.71 with SMTP id x47mr14486918yhm.258.1313462357126; \n\tMon, 15 Aug 2011 19:39:17 -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 r28sm878581yhm.52.2011.08.15.19.39.06\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tMon, 15 Aug 2011 19:39:16 -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:36:54 -0500",
        "Message-Id": "<1313462214-3716-3-git-send-email-agnel.joel@gmail.com>",
        "X-Mailer": "git-send-email 1.7.1",
        "In-Reply-To": "<1313462214-3716-1-git-send-email-agnel.joel@gmail.com>",
        "References": "<1313462214-3716-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 3/3] BeagleBoard: Configure DVI/S-video",
        "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": "From: Jason Kridner <jkridner@beagleboard.org>\n\nBased on patches from Syed Mohammed Khasim (khasim@ti.com).\n\nConfigures the output of the BeagleBoard DVI to be orange.\nConfigures the output of the BeagleBoard S-Video to be a colorbar.\n\nChanged display_init to beagle_display_init as suggested by Igor Grinberg:\nhttp://www.mail-archive.com/u-boot@lists.denx.de/msg51446.html\n\nSigned-off-by: Jason Kridner <jkridner@beagleboard.org>\nSigned-off-by: Joel A Fernandes <agnel.joel@gmail.com>\n---\n board/ti/beagle/beagle.c |   24 +++++++++++++\n board/ti/beagle/beagle.h |   86 ++++++++++++++++++++++++++++++++++++++++++++++\n 2 files changed, 110 insertions(+), 0 deletions(-)",
    "diff": "diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c\nindex 8dc8dfa..13fe39b 100644\n--- a/board/ti/beagle/beagle.c\n+++ b/board/ti/beagle/beagle.c\n@@ -165,6 +165,28 @@ unsigned int get_expansion_id(void)\n }\n \n /*\n+ * Configure DSS to display background color on DVID\n+ * Configure VENC to display color bar on S-Video\n+ */\n+void beagle_display_init(void)\n+{\n+\tomap3_dss_venc_config(&venc_config_std_tv, VENC_HEIGHT, VENC_WIDTH);\n+\tswitch (get_board_revision()) {\n+\tcase REVISION_AXBX:\n+\tcase REVISION_CX:\n+\tcase REVISION_C4:\n+\t\tomap3_dss_panel_config(&dvid_cfg);\n+\t\tbreak;\n+\tcase REVISION_XM_A:\n+\tcase REVISION_XM_B:\n+\tcase REVISION_XM_C:\n+\tdefault:\n+\t\tomap3_dss_panel_config(&dvid_cfg_xm);\n+\t\tbreak;\n+\t}\n+}\n+\n+/*\n  * Routine: misc_init_r\n  * Description: Configure board specific parts\n  */\n@@ -324,6 +346,8 @@ int misc_init_r(void)\n \t\tGPIO15 | GPIO14 | GPIO13 | GPIO12), &gpio5_base->oe);\n \n \tdieid_num_r();\n+\tbeagle_display_init();\n+\tomap3_dss_enable();\n \n \treturn 0;\n }\ndiff --git a/board/ti/beagle/beagle.h b/board/ti/beagle/beagle.h\nindex 04247cd..18bfaa8 100644\n--- a/board/ti/beagle/beagle.h\n+++ b/board/ti/beagle/beagle.h\n@@ -23,6 +23,8 @@\n #ifndef _BEAGLE_H_\n #define _BEAGLE_H_\n \n+#include <asm/arch/dss.h>\n+\n const omap3_sysinfo sysinfo = {\n \tDDR_STACKED,\n \t\"OMAP3 Beagle board\",\n@@ -472,4 +474,88 @@ const omap3_sysinfo sysinfo = {\n \tMUX_VAL(CP(MMC2_DAT6),      (IDIS | PTU | EN  | M4)) /*GPIO_138 BT_EN*/\\\n \tMUX_VAL(CP(MMC2_DAT7),      (IDIS | PTU | EN  | M4)) /*GPIO_139 WLAN_EN*/\n \n+/*\n+ * Display Configuration\n+ */\n+\n+#define DVI_BEAGLE_ORANGE_COL\t\t0x00FF8000\n+#define VENC_HEIGHT\t\t\t0x00ef\n+#define VENC_WIDTH\t\t\t0x027f\n+\n+/*\n+ * Configure VENC in DSS for Beagle to generate Color Bar\n+ *\n+ * Kindly refer to OMAP TRM for definition of these values.\n+ */\n+static const struct venc_regs venc_config_std_tv = {\n+\t.status\t\t\t\t\t= 0x0000001B,\n+\t.f_control\t\t\t\t= 0x00000040,\n+\t.vidout_ctrl\t\t\t\t= 0x00000000,\n+\t.sync_ctrl\t\t\t\t= 0x00008000,\n+\t.llen\t\t\t\t\t= 0x00008359,\n+\t.flens\t\t\t\t\t= 0x0000020C,\n+\t.hfltr_ctrl\t\t\t\t= 0x00000000,\n+\t.cc_carr_wss_carr\t\t\t= 0x043F2631,\n+\t.c_phase\t\t\t\t= 0x00000024,\n+\t.gain_u\t\t\t\t\t= 0x00000130,\n+\t.gain_v\t\t\t\t\t= 0x00000198,\n+\t.gain_y\t\t\t\t\t= 0x000001C0,\n+\t.black_level\t\t\t\t= 0x0000006A,\n+\t.blank_level\t\t\t\t= 0x0000005C,\n+\t.x_color\t\t\t\t= 0x00000000,\n+\t.m_control\t\t\t\t= 0x00000001,\n+\t.bstamp_wss_data\t\t\t= 0x0000003F,\n+\t.s_carr\t\t\t\t\t= 0x21F07C1F,\n+\t.line21\t\t\t\t\t= 0x00000000,\n+\t.ln_sel\t\t\t\t\t= 0x00000015,\n+\t.l21__wc_ctl\t\t\t\t= 0x00001400,\n+\t.htrigger_vtrigger\t\t\t= 0x00000000,\n+\t.savid__eavid\t\t\t\t= 0x069300F4,\n+\t.flen__fal\t\t\t\t= 0x0016020C,\n+\t.lal__phase_reset\t\t\t= 0x00060107,\n+\t.hs_int_start_stop_x\t\t\t= 0x008D034E,\n+\t.hs_ext_start_stop_x\t\t\t= 0x000F0359,\n+\t.vs_int_start_x\t\t\t\t= 0x01A00000,\n+\t.vs_int_stop_x__vs_int_start_y\t\t= 0x020501A0,\n+\t.vs_int_stop_y__vs_ext_start_x\t\t= 0x01AC0024,\n+\t.vs_ext_stop_x__vs_ext_start_y\t\t= 0x020D01AC,\n+\t.vs_ext_stop_y\t\t\t\t= 0x00000006,\n+\t.avid_start_stop_x\t\t\t= 0x03480079,\n+\t.avid_start_stop_y\t\t\t= 0x02040024,\n+\t.fid_int_start_x__fid_int_start_y\t= 0x0001008A,\n+\t.fid_int_offset_y__fid_ext_start_x\t= 0x01AC0106,\n+\t.fid_ext_start_y__fid_ext_offset_y\t= 0x01060006,\n+\t.tvdetgp_int_start_stop_x\t\t= 0x00140001,\n+\t.tvdetgp_int_start_stop_y\t\t= 0x00010001,\n+\t.gen_ctrl\t\t\t\t= 0x00FF0000,\n+\t.output_control\t\t\t\t= 0x0000000D,\n+\t.dac_b__dac_c\t\t\t\t= 0x00000000\n+};\n+\n+/*\n+ * Configure Timings for DVI D\n+ */\n+static const struct panel_config dvid_cfg = {\n+\t.timing_h\t= 0x0ff03f31, /* Horizantal timing */\n+\t.timing_v\t= 0x01400504, /* Vertical timing */\n+\t.pol_freq\t= 0x00007028, /* Pol Freq */\n+\t.divisor\t= 0x00010006, /* 72Mhz Pixel Clock */\n+\t.lcd_size\t= 0x02ff03ff, /* 1024x768 */\n+\t.panel_type\t= 0x01, /* TFT */\n+\t.data_lines\t= 0x03, /* 24 Bit RGB */\n+\t.load_mode\t= 0x02, /* Frame Mode */\n+\t.panel_color\t= DVI_BEAGLE_ORANGE_COL /* ORANGE */\n+};\n+\n+static const struct panel_config dvid_cfg_xm = {\n+\t.timing_h\t= 0x1a4024c9, /* Horizantal timing */\n+\t.timing_v\t= 0x02c00509, /* Vertical timing */\n+\t.pol_freq\t= 0x00007028, /* Pol Freq */\n+\t.divisor\t= 0x00010001, /* 96MHz Pixel Clock */\n+\t.lcd_size\t= 0x02ff03ff, /* 1024x768 */\n+\t.panel_type\t= 0x01, /* TFT */\n+\t.data_lines\t= 0x03, /* 24 Bit RGB */\n+\t.load_mode\t= 0x02, /* Frame Mode */\n+\t.panel_color\t= DVI_BEAGLE_ORANGE_COL /* ORANGE */\n+};\n #endif\n",
    "prefixes": [
        "U-Boot",
        "3/3"
    ]
}