get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 814056,
    "url": "http://patchwork.ozlabs.org/api/patches/814056/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170915051519.25327-6-wenyou.yang@microchip.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": "<20170915051519.25327-6-wenyou.yang@microchip.com>",
    "list_archive_url": null,
    "date": "2017-09-15T05:15:19",
    "name": "[U-Boot,v2,5/5] board: at91sam9x5ek: Convert to CONFIG_DM_VIDEO",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "20fd81d4fb08ea64f23f8728faf1f50f9699911c",
    "submitter": {
        "id": 69532,
        "url": "http://patchwork.ozlabs.org/api/people/69532/?format=api",
        "name": "Wenyou Yang",
        "email": "Wenyou.Yang@microchip.com"
    },
    "delegate": {
        "id": 1700,
        "url": "http://patchwork.ozlabs.org/api/users/1700/?format=api",
        "username": "ag",
        "first_name": "Anatolij",
        "last_name": "Gustschin",
        "email": "agust@denx.de"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170915051519.25327-6-wenyou.yang@microchip.com/mbox/",
    "series": [
        {
            "id": 3214,
            "url": "http://patchwork.ozlabs.org/api/series/3214/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=3214",
            "date": "2017-09-15T05:15:14",
            "name": "board: atmel: Convert to support video driver model",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/3214/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/814056/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/814056/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",
        "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xtkHK4n3lz9sBZ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 15 Sep 2017 15:19:57 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 65509C21F9C; Fri, 15 Sep 2017 05:19:19 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id B63ABC21F0B;\n\tFri, 15 Sep 2017 05:19:15 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 5076BC21F12; Fri, 15 Sep 2017 05:18:14 +0000 (UTC)",
            "from eusmtp01.atmel.com (eusmtp01.atmel.com [212.144.249.243])\n\tby lists.denx.de (Postfix) with ESMTPS id 607BCC21F81\n\tfor <u-boot@lists.denx.de>; Fri, 15 Sep 2017 05:18:09 +0000 (UTC)",
            "from apsmtp01.atmel.com (10.168.254.30) by eusmtp01.atmel.com\n\t(10.145.145.31) with Microsoft SMTP Server id 14.3.235.1;\n\tFri, 15 Sep 2017 07:17:18 +0200",
            "from shaarm01.corp.atmel.com (10.168.254.13) by\n\tapsmtp01.corp.atmel.com (10.168.254.30) with Microsoft SMTP Server id\n\t14.3.235.1; Fri, 15 Sep 2017 13:22:17 +0800"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED\n\tautolearn=unavailable autolearn_force=no version=3.4.0",
        "From": "Wenyou Yang <wenyou.yang@microchip.com>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Fri, 15 Sep 2017 13:15:19 +0800",
        "Message-ID": "<20170915051519.25327-6-wenyou.yang@microchip.com>",
        "X-Mailer": "git-send-email 2.13.0",
        "In-Reply-To": "<20170915051519.25327-1-wenyou.yang@microchip.com>",
        "References": "<20170915051519.25327-1-wenyou.yang@microchip.com>",
        "MIME-Version": "1.0",
        "Cc": "Tom Rini <trini@konsulko.com>",
        "Subject": "[U-Boot] [PATCH v2 5/5] board: at91sam9x5ek: Convert to\n\tCONFIG_DM_VIDEO",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.18",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/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": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>"
    },
    "content": "Convert the board to support the video driver model, add the device\ntree node, and remove the unnecessary code.\n\nSigned-off-by: Wenyou Yang <wenyou.yang@microchip.com>\n---\n\nChanges in v2:\n - Rebase the u-boot/master (5541543f686).\n - Drop the applied patches.\n - Improve the commit log.\n\n arch/arm/mach-at91/Kconfig               |   1 +\n board/atmel/at91sam9x5ek/at91sam9x5ek.c  | 111 ++-----------------------------\n configs/at91sam9x5ek_dataflash_defconfig |   3 +-\n configs/at91sam9x5ek_mmc_defconfig       |   3 +-\n configs/at91sam9x5ek_nandflash_defconfig |   3 +-\n configs/at91sam9x5ek_spiflash_defconfig  |   3 +-\n include/configs/at91sam9x5ek.h           |  10 ---\n 7 files changed, 16 insertions(+), 118 deletions(-)",
    "diff": "diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig\nindex ebd865ab5b..7e85b69679 100644\n--- a/arch/arm/mach-at91/Kconfig\n+++ b/arch/arm/mach-at91/Kconfig\n@@ -141,6 +141,7 @@ config TARGET_AT91SAM9X5EK\n \tselect AT91SAM9X5\n \tselect SUPPORT_SPL\n \tselect BOARD_EARLY_INIT_F\n+\tselect BOARD_LATE_INIT\n \n config TARGET_SAMA5D2_PTC\n \tbool \"SAMA5D2 PTC board\"\ndiff --git a/board/atmel/at91sam9x5ek/at91sam9x5ek.c b/board/atmel/at91sam9x5ek/at91sam9x5ek.c\nindex be6dd4a6d3..d69831ad15 100644\n--- a/board/atmel/at91sam9x5ek/at91sam9x5ek.c\n+++ b/board/atmel/at91sam9x5ek/at91sam9x5ek.c\n@@ -13,12 +13,6 @@\n #include <asm/arch/clk.h>\n #include <asm/arch/gpio.h>\n #include <debug_uart.h>\n-#include <lcd.h>\n-#include <atmel_hlcdc.h>\n-#ifdef CONFIG_LCD_INFO\n-#include <nand.h>\n-#include <version.h>\n-#endif\n #include <asm/mach-types.h>\n \n DECLARE_GLOBAL_DATA_PTR;\n@@ -86,103 +80,15 @@ static void at91sam9x5ek_nand_hw_init(void)\n }\n #endif\n \n-#ifdef CONFIG_LCD\n-vidinfo_t panel_info = {\n-\t.vl_col\t= 800,\n-\t.vl_row = 480,\n-\t.vl_clk = 24000000,\n-\t.vl_sync = LCDC_LCDCFG5_HSPOL | LCDC_LCDCFG5_VSPOL,\n-\t.vl_bpix = LCD_BPP,\n-\t.vl_tft = 1,\n-\t.vl_clk_pol = 1,\n-\t.vl_hsync_len = 128,\n-\t.vl_left_margin = 64,\n-\t.vl_right_margin = 64,\n-\t.vl_vsync_len = 2,\n-\t.vl_upper_margin = 22,\n-\t.vl_lower_margin = 21,\n-\t.mmio = ATMEL_BASE_LCDC,\n-};\n-\n-void lcd_enable(void)\n-{\n-\tif (has_lcdc())\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 29, 1);\t/* power up */\n-}\n-\n-void lcd_disable(void)\n-{\n-\tif (has_lcdc())\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 29, 0);\t/* power down */\n-}\n-\n-static void at91sam9x5ek_lcd_hw_init(void)\n-{\n-\tif (has_lcdc()) {\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 26, 0);\t/* LCDPWM */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 27, 0);\t/* LCDVSYNC */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 28, 0);\t/* LCDHSYNC */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 24, 0);\t/* LCDDISP */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 29, 0);\t/* LCDDEN */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 30, 0);\t/* LCDPCK */\n-\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 0, 0);\t/* LCDD0 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 1, 0);\t/* LCDD1 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 2, 0);\t/* LCDD2 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 3, 0);\t/* LCDD3 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 4, 0);\t/* LCDD4 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 5, 0);\t/* LCDD5 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 6, 0);\t/* LCDD6 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 7, 0);\t/* LCDD7 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 8, 0);\t/* LCDD8 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 9, 0);\t/* LCDD9 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 10, 0);\t/* LCDD10 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 11, 0);\t/* LCDD11 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 12, 0);\t/* LCDD12 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 13, 0);\t/* LCDD13 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 14, 0);\t/* LCDD14 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 15, 0);\t/* LCDD15 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 16, 0);\t/* LCDD16 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 17, 0);\t/* LCDD17 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 18, 0);\t/* LCDD18 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 19, 0);\t/* LCDD19 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 20, 0);\t/* LCDD20 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 21, 0);\t/* LCDD21 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 22, 0);\t/* LCDD22 */\n-\t\tat91_pio3_set_a_periph(AT91_PIO_PORTC, 23, 0);\t/* LCDD23 */\n-\n-\t\tat91_periph_clk_enable(ATMEL_ID_LCDC);\n-\t}\n-}\n-\n-#ifdef CONFIG_LCD_INFO\n-void lcd_show_board_info(void)\n+#ifdef CONFIG_BOARD_LATE_INIT\n+int board_late_init(void)\n {\n-\tulong dram_size, nand_size;\n-\tint i;\n-\tchar temp[32];\n-\n-\tif (has_lcdc()) {\n-\t\tlcd_printf(\"%s\\n\", U_BOOT_VERSION);\n-\t\tlcd_printf(\"(C) 2012 ATMEL Corp\\n\");\n-\t\tlcd_printf(\"at91support@atmel.com\\n\");\n-\t\tlcd_printf(\"%s CPU at %s MHz\\n\",\n-\t\t\tget_cpu_name(),\n-\t\t\tstrmhz(temp, get_cpu_clk_rate()));\n-\n-\t\tdram_size = 0;\n-\t\tfor (i = 0; i < CONFIG_NR_DRAM_BANKS; i++)\n-\t\t\tdram_size += gd->bd->bi_dram[i].size;\n-\t\tnand_size = 0;\n-\t\tfor (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; i++)\n-\t\t\tnand_size += get_nand_dev_by_index(i)->size;\n-\t\tlcd_printf(\"  %ld MB SDRAM, %ld MB NAND\\n\",\n-\t\t\tdram_size >> 20,\n-\t\t\tnand_size >> 20);\n-\t}\n+#ifdef CONFIG_DM_VIDEO\n+\tat91_video_show_board_info();\n+#endif\n+\treturn 0;\n }\n-#endif /* CONFIG_LCD_INFO */\n-#endif /* CONFIG_LCD */\n+#endif\n \n #ifdef CONFIG_DEBUG_UART_BOARD_INIT\n void board_debug_uart_init(void)\n@@ -216,9 +122,6 @@ int board_init(void)\n #if defined(CONFIG_USB_OHCI_NEW) || defined(CONFIG_USB_EHCI_HCD)\n \tat91_uhp_hw_init();\n #endif\n-#ifdef CONFIG_LCD\n-\tat91sam9x5ek_lcd_hw_init();\n-#endif\n \treturn 0;\n }\n \ndiff --git a/configs/at91sam9x5ek_dataflash_defconfig b/configs/at91sam9x5ek_dataflash_defconfig\nindex 9d61dd8de0..c417eb8c10 100644\n--- a/configs/at91sam9x5ek_dataflash_defconfig\n+++ b/configs/at91sam9x5ek_dataflash_defconfig\n@@ -60,4 +60,5 @@ CONFIG_USB=y\n CONFIG_DM_USB=y\n CONFIG_USB_EHCI_HCD=y\n CONFIG_USB_STORAGE=y\n-CONFIG_LCD=y\n+CONFIG_DM_VIDEO=y\n+CONFIG_ATMEL_HLCD=y\ndiff --git a/configs/at91sam9x5ek_mmc_defconfig b/configs/at91sam9x5ek_mmc_defconfig\nindex 9fa4801480..e0a24a5b48 100644\n--- a/configs/at91sam9x5ek_mmc_defconfig\n+++ b/configs/at91sam9x5ek_mmc_defconfig\n@@ -60,4 +60,5 @@ CONFIG_USB=y\n CONFIG_DM_USB=y\n CONFIG_USB_EHCI_HCD=y\n CONFIG_USB_STORAGE=y\n-CONFIG_LCD=y\n+CONFIG_DM_VIDEO=y\n+CONFIG_ATMEL_HLCD=y\ndiff --git a/configs/at91sam9x5ek_nandflash_defconfig b/configs/at91sam9x5ek_nandflash_defconfig\nindex b28bec7f0b..0e8c07f609 100644\n--- a/configs/at91sam9x5ek_nandflash_defconfig\n+++ b/configs/at91sam9x5ek_nandflash_defconfig\n@@ -60,4 +60,5 @@ CONFIG_USB=y\n CONFIG_DM_USB=y\n CONFIG_USB_EHCI_HCD=y\n CONFIG_USB_STORAGE=y\n-CONFIG_LCD=y\n+CONFIG_DM_VIDEO=y\n+CONFIG_ATMEL_HLCD=y\ndiff --git a/configs/at91sam9x5ek_spiflash_defconfig b/configs/at91sam9x5ek_spiflash_defconfig\nindex 838d8a0ad7..70e96ecc2f 100644\n--- a/configs/at91sam9x5ek_spiflash_defconfig\n+++ b/configs/at91sam9x5ek_spiflash_defconfig\n@@ -60,4 +60,5 @@ CONFIG_USB=y\n CONFIG_DM_USB=y\n CONFIG_USB_EHCI_HCD=y\n CONFIG_USB_STORAGE=y\n-CONFIG_LCD=y\n+CONFIG_DM_VIDEO=y\n+CONFIG_ATMEL_HLCD=y\ndiff --git a/include/configs/at91sam9x5ek.h b/include/configs/at91sam9x5ek.h\nindex 1d4971c59f..9450784521 100644\n--- a/include/configs/at91sam9x5ek.h\n+++ b/include/configs/at91sam9x5ek.h\n@@ -23,16 +23,6 @@\n /* general purpose I/O */\n #define CONFIG_ATMEL_LEGACY\t\t/* required until (g)pio is fixed */\n \n-/* LCD */\n-#define LCD_BPP\t\t\tLCD_COLOR16\n-#define LCD_OUTPUT_BPP\t\t24\n-#define CONFIG_LCD_LOGO\n-#define CONFIG_LCD_INFO\n-#define CONFIG_LCD_INFO_BELOW_LOGO\n-#define CONFIG_ATMEL_HLCD\n-#define CONFIG_ATMEL_LCD_RGB565\n-\n-\n /*\n  * BOOTP options\n  */\n",
    "prefixes": [
        "U-Boot",
        "v2",
        "5/5"
    ]
}