get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 379861,
    "url": "http://patchwork.ozlabs.org/api/patches/379861/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1407998707-9632-19-git-send-email-b18965@freescale.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": "<1407998707-9632-19-git-send-email-b18965@freescale.com>",
    "list_archive_url": null,
    "date": "2014-08-14T06:45:07",
    "name": "[U-Boot,v4,18/18] ls102xa: dcu: Add platform support for DCU on LS1021ATWR board",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "0b556556f435c25919d57e7376d123bc0420d36e",
    "submitter": {
        "id": 13010,
        "url": "http://patchwork.ozlabs.org/api/people/13010/?format=api",
        "name": "Alison Wang",
        "email": "b18965@freescale.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1407998707-9632-19-git-send-email-b18965@freescale.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/379861/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/379861/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 64E8814009B\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 14 Aug 2014 17:37:58 +1000 (EST)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id E4C7AA7430;\n\tThu, 14 Aug 2014 09:37:34 +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 QX1Zdhdr8+w8; Thu, 14 Aug 2014 09:37:34 +0200 (CEST)",
            "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 48EE44B639;\n\tThu, 14 Aug 2014 09:36:22 +0200 (CEST)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 9E820A73F9\n\tfor <u-boot@lists.denx.de>; Thu, 14 Aug 2014 09:35:55 +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 vVN1Mh1q1dU8 for <u-boot@lists.denx.de>;\n\tThu, 14 Aug 2014 09:35:52 +0200 (CEST)",
            "from na01-bn1-obe.outbound.protection.outlook.com\n\t(mail-bn1blp0186.outbound.protection.outlook.com [207.46.163.186])\n\tby theia.denx.de (Postfix) with ESMTPS id E77BA4B615\n\tfor <u-boot@lists.denx.de>; Thu, 14 Aug 2014 09:35:07 +0200 (CEST)",
            "from BN3PR0301CA0020.namprd03.prod.outlook.com (25.160.180.158) by\n\tBY2PR03MB160.namprd03.prod.outlook.com (10.242.36.22) with\n\tMicrosoft\n\tSMTP Server (TLS) id 15.0.1005.10; Thu, 14 Aug 2014 07:35:02 +0000",
            "from BL2FFO11FD046.protection.gbl (2a01:111:f400:7c09::102) by\n\tBN3PR0301CA0020.outlook.office365.com (2a01:111:e400:4000::30) with\n\tMicrosoft SMTP Server (TLS) id 15.0.1005.10 via Frontend Transport;\n\tThu, 14 Aug 2014 07:35:02 +0000",
            "from tx30smr01.am.freescale.net (192.88.168.50) by\n\tBL2FFO11FD046.mail.protection.outlook.com (10.173.161.208) with\n\tMicrosoft SMTP Server (TLS) id 15.0.1010.11 via Frontend Transport;\n\tThu, 14 Aug 2014 07:35:02 +0000",
            "from rock.ap.freescale.net (rock.ap.freescale.net [10.193.20.106])\n\tby tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id\n\ts7E7YJ4r032140; Thu, 14 Aug 2014 00:34:59 -0700"
        ],
        "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": "Alison Wang <b18965@freescale.com>",
        "To": "<yorksun@freescale.com>, <u-boot@lists.denx.de>",
        "Date": "Thu, 14 Aug 2014 14:45:07 +0800",
        "Message-ID": "<1407998707-9632-19-git-send-email-b18965@freescale.com>",
        "X-Mailer": "git-send-email 1.8.0",
        "In-Reply-To": "<1407998707-9632-1-git-send-email-b18965@freescale.com>",
        "References": "<1407998707-9632-1-git-send-email-b18965@freescale.com>",
        "X-EOPAttributedMessage": "0",
        "X-Forefront-Antispam-Report": "CIP:192.88.168.50; CTRY:US; IPV:CAL; IPV:NLI;\n\tEFV:NLI; SFV:NSPM; \n\tSFS:(6009001)(189002)(199003)(54534003)(77156001)(50226001)(4396001)(85852003)(20776003)(84676001)(36756003)(104166001)(80022001)(81542001)(74662001)(97736001)(87286001)(62966002)(50986999)(83072002)(102836001)(50466002)(99396002)(81342001)(85306004)(6806004)(79102001)(21056001)(89996001)(46102001)(68736004)(106466001)(87936001)(19580395003)(33646002)(83322001)(77982001)(48376002)(88136002)(19580405001)(92566001)(76176999)(229853001)(92726001)(64706001)(47776003)(93916002)(105606002)(95666004)(76482001)(44976005)(31966008)(26826002)(104016003)(107046002)(74502001)(42262002);\n\tDIR:OUT; SFP:; SCL:1; SRVR:BY2PR03MB160;\n\tH:tx30smr01.am.freescale.net; FPR:; MLV:ovrnspm;\n\tPTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; ",
        "MIME-Version": "1.0",
        "X-Microsoft-Antispam": "BCL:0;PCL:0;RULEID:;UriScan:;",
        "X-Forefront-PRVS": "03030B9493",
        "Received-SPF": "Fail (protection.outlook.com: domain of freescale.com does not\n\tdesignate 192.88.168.50 as permitted sender)\n\treceiver=protection.outlook.com; \n\tclient-ip=192.88.168.50; helo=tx30smr01.am.freescale.net;",
        "Authentication-Results": "spf=fail (sender IP is 192.88.168.50)\n\tsmtp.mailfrom=alison.wang@freescale.com; ",
        "X-OriginatorOrg": "freescale.com",
        "Subject": "[U-Boot] [PATCH v4 18/18] ls102xa: dcu: Add platform support for\n\tDCU on LS1021ATWR board",
        "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>",
        "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: Wang Huan <b18965@freescale.com>\n\nThis patch adds the TWR_LCD_RGB card/HDMI options and the common\nconfiguration for DCU on LS1021ATWR board.\n\nSigned-off-by: Alison Wang <alison.wang@freescale.com>\n---\nChange log:\n v4: Add commit messages.\n v3: New file.\n\n board/freescale/ls1021atwr/Makefile     |  1 +\n board/freescale/ls1021atwr/dcu.c        | 47 +++++++++++++++++++++++++++++++++\n board/freescale/ls1021atwr/ls1021atwr.c |  6 +++++\n include/configs/ls1021atwr.h            | 18 +++++++++++++\n 4 files changed, 72 insertions(+)\n create mode 100644 board/freescale/ls1021atwr/dcu.c",
    "diff": "diff --git a/board/freescale/ls1021atwr/Makefile b/board/freescale/ls1021atwr/Makefile\nindex b5df668..01296c0 100644\n--- a/board/freescale/ls1021atwr/Makefile\n+++ b/board/freescale/ls1021atwr/Makefile\n@@ -5,3 +5,4 @@\n #\n \n obj-y += ls1021atwr.o\n+obj-$(CONFIG_FSL_DCU_FB) += dcu.o\ndiff --git a/board/freescale/ls1021atwr/dcu.c b/board/freescale/ls1021atwr/dcu.c\nnew file mode 100644\nindex 0000000..8fe4ccb\n--- /dev/null\n+++ b/board/freescale/ls1021atwr/dcu.c\n@@ -0,0 +1,47 @@\n+/*\n+ * Copyright 2014 Freescale Semiconductor, Inc.\n+ *\n+ * FSL DCU Framebuffer driver\n+ *\n+ * SPDX-License-Identifier:\tGPL-2.0+\n+ */\n+\n+#include <common.h>\n+#include <fsl_dcu_fb.h>\n+#include \"div64.h\"\n+#include \"../common/dcu_sii9022a.h\"\n+\n+DECLARE_GLOBAL_DATA_PTR;\n+\n+unsigned int dcu_set_pixel_clock(unsigned int pixclock)\n+{\n+\tunsigned long long div;\n+\n+\tdiv = (unsigned long long)(gd->bus_clk / 1000);\n+\tdiv *= (unsigned long long)pixclock;\n+\tdo_div(div, 1000000000);\n+\n+\treturn div;\n+}\n+\n+int platform_dcu_init(unsigned int xres, unsigned int yres,\n+\t\t      const char *port,\n+\t\t      struct fb_videomode *dcu_fb_videomode)\n+{\n+\tconst char *name;\n+\tunsigned int pixel_format;\n+\n+\tif (strncmp(port, \"twr_lcd\", 4) == 0) {\n+\t\tname = \"TWR_LCD_RGB card\";\n+\t} else {\n+\t\tname = \"HDMI\";\n+\t\tdcu_set_dvi_encoder(dcu_fb_videomode);\n+\t}\n+\n+\tprintf(\"DCU: Switching to %s monitor @ %ux%u\\n\", name, xres, yres);\n+\n+\tpixel_format = 32;\n+\tfsl_dcu_init(xres, yres, pixel_format);\n+\n+\treturn 0;\n+}\ndiff --git a/board/freescale/ls1021atwr/ls1021atwr.c b/board/freescale/ls1021atwr/ls1021atwr.c\nindex 7fdcbcd..e4364dd 100644\n--- a/board/freescale/ls1021atwr/ls1021atwr.c\n+++ b/board/freescale/ls1021atwr/ls1021atwr.c\n@@ -264,6 +264,12 @@ int board_early_init_f(void)\n \tinit_early_memctl_regs();\n #endif\n \n+#ifdef CONFIG_FSL_DCU_FB\n+\tout_be32(&scfg->scfgrevcr, 0xffffffff);\n+\tout_be32(&scfg->pixclkcr, 0x80000000);\n+\tout_be32(&scfg->scfgrevcr, 0x00000000);\n+#endif\n+\n \tout_le32(&cci->ctrl_ord, 0x00000008);\n \n \treturn 0;\ndiff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h\nindex b268a70..fb2cf08 100644\n--- a/include/configs/ls1021atwr.h\n+++ b/include/configs/ls1021atwr.h\n@@ -182,6 +182,24 @@ unsigned long get_board_ddr_clk(void);\n #define CONFIG_GENERIC_MMC\n \n /*\n+ * Video\n+ */\n+#define CONFIG_FSL_DCU_FB\n+\n+#ifdef CONFIG_FSL_DCU_FB\n+#define CONFIG_VIDEO\n+#define CONFIG_CMD_BMP\n+#define CONFIG_CFB_CONSOLE\n+#define CONFIG_VGA_AS_SINGLE_DEVICE\n+#define CONFIG_VIDEO_LOGO\n+#define CONFIG_VIDEO_BMP_LOGO\n+\n+#define CONFIG_FSL_DCU_SII9022A\n+#define CONFIG_SYS_I2C_DVI_BUS_NUM\t1\n+#define CONFIG_SYS_I2C_DVI_ADDR\t\t0x39\n+#endif\n+\n+/*\n  * eTSEC\n  */\n #define CONFIG_TSEC_ENET\n",
    "prefixes": [
        "U-Boot",
        "v4",
        "18/18"
    ]
}