Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/814053/?format=api
{ "id": 814053, "url": "http://patchwork.ozlabs.org/api/patches/814053/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170915051519.25327-3-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-3-wenyou.yang@microchip.com>", "list_archive_url": null, "date": "2017-09-15T05:15:16", "name": "[U-Boot,v2,2/5] board: sama5d3xek: Convert to CONFIG_DM_VIDEO", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "5c813d856e5980344d58ad9004708b54d5187af1", "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-3-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/814053/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/814053/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 3xtkDz6gXsz9sBZ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 15 Sep 2017 15:17:55 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 95457C21F90; Fri, 15 Sep 2017 05:17:50 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 65324C21E31;\n\tFri, 15 Sep 2017 05:17:47 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid ACB92C21EEC; Fri, 15 Sep 2017 05:17:16 +0000 (UTC)", "from DVREDG01.corp.atmel.com (nasmtp01.atmel.com [192.199.1.245])\n\tby lists.denx.de (Postfix) with ESMTPS id 53A7BC21F90\n\tfor <u-boot@lists.denx.de>; Fri, 15 Sep 2017 05:17:15 +0000 (UTC)", "from apsmtp01.atmel.com (10.168.254.30) by DVREDG01.corp.atmel.com\n\t(10.42.103.30) with Microsoft SMTP Server (TLS) id 14.3.235.1;\n\tThu, 14 Sep 2017 23:16:21 -0600", "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:21:21 +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:16 +0800", "Message-ID": "<20170915051519.25327-3-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 2/5] board: sama5d3xek: 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": "From: Wenyou Yang <wenyou.yang@atmel.com>\n\nConvert 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: None\n\n arch/arm/dts/sama5d36ek_cmp.dts | 1 +\n arch/arm/dts/sama5d3_lcd.dtsi | 21 +-------\n arch/arm/dts/sama5d3xdm.dtsi | 26 ++++++++++\n board/atmel/sama5d3xek/sama5d3xek.c | 83 ++----------------------------\n configs/sama5d36ek_cmp_mmc_defconfig | 3 +-\n configs/sama5d36ek_cmp_nandflash_defconfig | 3 +-\n configs/sama5d36ek_cmp_spiflash_defconfig | 3 +-\n configs/sama5d3xek_mmc_defconfig | 3 +-\n configs/sama5d3xek_nandflash_defconfig | 3 +-\n configs/sama5d3xek_spiflash_defconfig | 3 +-\n include/configs/sama5d3xek.h | 9 ----\n 11 files changed, 43 insertions(+), 115 deletions(-)", "diff": "diff --git a/arch/arm/dts/sama5d36ek_cmp.dts b/arch/arm/dts/sama5d36ek_cmp.dts\nindex be41490f63..c17bc9f0dc 100644\n--- a/arch/arm/dts/sama5d36ek_cmp.dts\n+++ b/arch/arm/dts/sama5d36ek_cmp.dts\n@@ -8,6 +8,7 @@\n /dts-v1/;\n #include \"sama5d36.dtsi\"\n #include \"sama5d3xmb_cmp.dtsi\"\n+#include \"sama5d3xdm.dtsi\"\n \n / {\n \tmodel = \"Atmel SAMA5D36-EK\";\ndiff --git a/arch/arm/dts/sama5d3_lcd.dtsi b/arch/arm/dts/sama5d3_lcd.dtsi\nindex 14d7c2bc75..10fb3a97ea 100644\n--- a/arch/arm/dts/sama5d3_lcd.dtsi\n+++ b/arch/arm/dts/sama5d3_lcd.dtsi\n@@ -14,31 +14,12 @@\n \tahb {\n \t\tapb {\n \t\t\thlcdc: hlcdc@f0030000 {\n-\t\t\t\tcompatible = \"atmel,sama5d3-hlcdc\";\n+\t\t\t\tcompatible = \"atmel,at91sam9x5-hlcdc\";\n \t\t\t\treg = <0xf0030000 0x2000>;\n \t\t\t\tinterrupts = <36 IRQ_TYPE_LEVEL_HIGH 0>;\n \t\t\t\tclocks = <&lcdc_clk>, <&lcdck>, <&clk32k>;\n \t\t\t\tclock-names = \"periph_clk\",\"sys_clk\", \"slow_clk\";\n \t\t\t\tstatus = \"disabled\";\n-\n-\t\t\t\thlcdc-display-controller {\n-\t\t\t\t\tcompatible = \"atmel,hlcdc-display-controller\";\n-\t\t\t\t\t#address-cells = <1>;\n-\t\t\t\t\t#size-cells = <0>;\n-\n-\t\t\t\t\tport@0 {\n-\t\t\t\t\t\t#address-cells = <1>;\n-\t\t\t\t\t\t#size-cells = <0>;\n-\t\t\t\t\t\treg = <0>;\n-\t\t\t\t\t};\n-\t\t\t\t};\n-\n-\t\t\t\thlcdc_pwm: hlcdc-pwm {\n-\t\t\t\t\tcompatible = \"atmel,hlcdc-pwm\";\n-\t\t\t\t\tpinctrl-names = \"default\";\n-\t\t\t\t\tpinctrl-0 = <&pinctrl_lcd_pwm>;\n-\t\t\t\t\t#pwm-cells = <3>;\n-\t\t\t\t};\n \t\t\t};\n \n \t\t\tpinctrl@fffff200 {\ndiff --git a/arch/arm/dts/sama5d3xdm.dtsi b/arch/arm/dts/sama5d3xdm.dtsi\nindex 035ab72b39..b3df9af2b4 100644\n--- a/arch/arm/dts/sama5d3xdm.dtsi\n+++ b/arch/arm/dts/sama5d3xdm.dtsi\n@@ -10,6 +10,32 @@\n / {\n \tahb {\n \t\tapb {\n+\t\t\thlcdc: hlcdc@f0030000 {\n+\t\t\t\tatmel,vl-bpix = <4>;\n+\t\t\t\tatmel,output-mode = <24>;\n+\t\t\t\tatmel,guard-time = <1>;\n+\t\t\t\tpinctrl-names = \"default\";\n+\t\t\t\tpinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_pwm &pinctrl_lcd_rgb888_alt>;\n+\t\t\t\tstatus = \"okay\";\n+\t\t\t\tu-boot,dm-pre-reloc;\n+\n+\t\t\t\tdisplay-timings {\n+\t\t\t\t\tu-boot,dm-pre-reloc;\n+\t\t\t\t\t800x480 {\n+\t\t\t\t\t\tclock-frequency = <24000000>;\n+\t\t\t\t\t\thactive = <800>;\n+\t\t\t\t\t\tvactive = <480>;\n+\t\t\t\t\t\thsync-len = <5>;\n+\t\t\t\t\t\thfront-porch = <64>;\n+\t\t\t\t\t\thback-porch = <64>;\n+\t\t\t\t\t\tvfront-porch = <22>;\n+\t\t\t\t\t\tvback-porch = <21>;\n+\t\t\t\t\t\tvsync-len = <5>;\n+\t\t\t\t\t\tu-boot,dm-pre-reloc;\n+\t\t\t\t\t};\n+\t\t\t\t};\n+\t\t\t};\n+\n \t\t\ti2c1: i2c@f0018000 {\n \t\t\t\tqt1070: keyboard@1b {\n \t\t\t\t\tcompatible = \"qt1070\";\ndiff --git a/board/atmel/sama5d3xek/sama5d3xek.c b/board/atmel/sama5d3xek/sama5d3xek.c\nindex 6d473fc06d..98d846fd79 100644\n--- a/board/atmel/sama5d3xek/sama5d3xek.c\n+++ b/board/atmel/sama5d3xek/sama5d3xek.c\n@@ -13,9 +13,7 @@\n #include <asm/arch/gpio.h>\n #include <asm/arch/clk.h>\n #include <debug_uart.h>\n-#include <lcd.h>\n #include <linux/ctype.h>\n-#include <atmel_hlcdc.h>\n #include <phy.h>\n #include <micrel.h>\n #include <spl.h>\n@@ -132,80 +130,6 @@ static void sama5d3xek_mci_hw_init(void)\n }\n #endif\n \n-#ifdef CONFIG_LCD\n-vidinfo_t panel_info = {\n-\t.vl_col = 800,\n-\t.vl_row = 480,\n-\t.vl_clk = 24000000,\n-\t.vl_bpix = LCD_BPP,\n-\t.vl_tft = 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-}\n-\n-void lcd_disable(void)\n-{\n-}\n-\n-static void sama5d3xek_lcd_hw_init(void)\n-{\n-\tgd->fb_base = CONFIG_SAMA5D3_LCD_BASE;\n-\n-\t/* The higher 8 bit of LCD is board related */\n-\tat91_pio3_set_c_periph(AT91_PIO_PORTC, 14, 0);\t/* LCDD16 */\n-\tat91_pio3_set_c_periph(AT91_PIO_PORTC, 13, 0);\t/* LCDD17 */\n-\tat91_pio3_set_c_periph(AT91_PIO_PORTC, 12, 0);\t/* LCDD18 */\n-\tat91_pio3_set_c_periph(AT91_PIO_PORTC, 11, 0);\t/* LCDD19 */\n-\tat91_pio3_set_c_periph(AT91_PIO_PORTC, 10, 0);\t/* LCDD20 */\n-\tat91_pio3_set_c_periph(AT91_PIO_PORTC, 15, 0);\t/* LCDD21 */\n-\tat91_pio3_set_c_periph(AT91_PIO_PORTE, 27, 0);\t/* LCDD22 */\n-\tat91_pio3_set_c_periph(AT91_PIO_PORTE, 28, 0);\t/* LCDD23 */\n-\n-\t/* Configure lower 16 bit of LCD and enable clock */\n-\tat91_lcd_hw_init();\n-}\n-\n-#ifdef CONFIG_LCD_INFO\n-#include <nand.h>\n-#include <version.h>\n-\n-void lcd_show_board_info(void)\n-{\n-\tulong dram_size;\n-\tuint64_t nand_size;\n-\tint i;\n-\tchar temp[32];\n-\n-\tlcd_printf(\"%s\\n\", U_BOOT_VERSION);\n-\tlcd_printf(\"(C) 2013 ATMEL Corp\\n\");\n-\tlcd_printf(\"at91@atmel.com\\n\");\n-\tlcd_printf(\"%s CPU at %s MHz\\n\", get_cpu_name(),\n-\t\t strmhz(temp, get_cpu_clk_rate()));\n-\n-\tdram_size = 0;\n-\tfor (i = 0; i < CONFIG_NR_DRAM_BANKS; i++)\n-\t\tdram_size += gd->bd->bi_dram[i].size;\n-\n-\tnand_size = 0;\n-#ifdef CONFIG_NAND_ATMEL\n-\tfor (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; i++)\n-\t\tnand_size += get_nand_dev_by_index(i)->size;\n-#endif\n-\tlcd_printf(\"%ld MB SDRAM, %lld MB NAND\\n\",\n-\t\t dram_size >> 20, nand_size >> 20);\n-}\n-#endif /* CONFIG_LCD_INFO */\n-#endif /* CONFIG_LCD */\n-\n #ifdef CONFIG_DEBUG_UART_BOARD_INIT\n void board_debug_uart_init(void)\n {\n@@ -240,10 +164,6 @@ int board_init(void)\n #ifdef CONFIG_GENERIC_ATMEL_MCI\n \tsama5d3xek_mci_hw_init();\n #endif\n-#ifdef CONFIG_LCD\n-\tif (has_lcdc())\n-\t\tsama5d3xek_lcd_hw_init();\n-#endif\n \treturn 0;\n }\n \n@@ -269,6 +189,9 @@ int board_late_init(void)\n \tstrcat(name, \"ek.dtb\");\n \tenv_set(\"dtb_name\", name);\n #endif\n+#ifdef CONFIG_DM_VIDEO\n+\tat91_video_show_board_info();\n+#endif\n \treturn 0;\n }\n #endif\ndiff --git a/configs/sama5d36ek_cmp_mmc_defconfig b/configs/sama5d36ek_cmp_mmc_defconfig\nindex b6c60cbcae..7c27812c3f 100644\n--- a/configs/sama5d36ek_cmp_mmc_defconfig\n+++ b/configs/sama5d36ek_cmp_mmc_defconfig\n@@ -55,4 +55,5 @@ CONFIG_DM_SPI=y\n CONFIG_ATMEL_SPI=y\n CONFIG_TIMER=y\n CONFIG_ATMEL_PIT_TIMER=y\n-CONFIG_LCD=y\n+CONFIG_DM_VIDEO=y\n+CONFIG_ATMEL_HLCD=y\ndiff --git a/configs/sama5d36ek_cmp_nandflash_defconfig b/configs/sama5d36ek_cmp_nandflash_defconfig\nindex 01b57efe03..09508dafa4 100644\n--- a/configs/sama5d36ek_cmp_nandflash_defconfig\n+++ b/configs/sama5d36ek_cmp_nandflash_defconfig\n@@ -55,5 +55,6 @@ CONFIG_DM_SPI=y\n CONFIG_ATMEL_SPI=y\n CONFIG_TIMER=y\n CONFIG_ATMEL_PIT_TIMER=y\n-CONFIG_LCD=y\n CONFIG_FAT_WRITE=y\n+CONFIG_DM_VIDEO=y\n+CONFIG_ATMEL_HLCD=y\ndiff --git a/configs/sama5d36ek_cmp_spiflash_defconfig b/configs/sama5d36ek_cmp_spiflash_defconfig\nindex e29e3a8098..1c004ef2ac 100644\n--- a/configs/sama5d36ek_cmp_spiflash_defconfig\n+++ b/configs/sama5d36ek_cmp_spiflash_defconfig\n@@ -55,5 +55,6 @@ CONFIG_DM_SPI=y\n CONFIG_ATMEL_SPI=y\n CONFIG_TIMER=y\n CONFIG_ATMEL_PIT_TIMER=y\n-CONFIG_LCD=y\n+CONFIG_DM_VIDEO=y\n+CONFIG_ATMEL_HLCD=y\n CONFIG_FAT_WRITE=y\ndiff --git a/configs/sama5d3xek_mmc_defconfig b/configs/sama5d3xek_mmc_defconfig\nindex f45449fd93..8b4c37a125 100644\n--- a/configs/sama5d3xek_mmc_defconfig\n+++ b/configs/sama5d3xek_mmc_defconfig\n@@ -81,4 +81,5 @@ CONFIG_USB_EHCI_HCD=y\n CONFIG_USB_STORAGE=y\n CONFIG_USB_GADGET=y\n CONFIG_USB_GADGET_ATMEL_USBA=y\n-CONFIG_LCD=y\n+CONFIG_DM_VIDEO=y\n+CONFIG_ATMEL_HLCD=y\ndiff --git a/configs/sama5d3xek_nandflash_defconfig b/configs/sama5d3xek_nandflash_defconfig\nindex 6217600f01..f9d4b8db3a 100644\n--- a/configs/sama5d3xek_nandflash_defconfig\n+++ b/configs/sama5d3xek_nandflash_defconfig\n@@ -76,5 +76,6 @@ CONFIG_USB_EHCI_HCD=y\n CONFIG_USB_STORAGE=y\n CONFIG_USB_GADGET=y\n CONFIG_USB_GADGET_ATMEL_USBA=y\n-CONFIG_LCD=y\n+CONFIG_DM_VIDEO=y\n+CONFIG_ATMEL_HLCD=y\n CONFIG_FAT_WRITE=y\ndiff --git a/configs/sama5d3xek_spiflash_defconfig b/configs/sama5d3xek_spiflash_defconfig\nindex 2fe08e4e59..7399b3e51f 100644\n--- a/configs/sama5d3xek_spiflash_defconfig\n+++ b/configs/sama5d3xek_spiflash_defconfig\n@@ -77,5 +77,6 @@ CONFIG_USB_EHCI_HCD=y\n CONFIG_USB_STORAGE=y\n CONFIG_USB_GADGET=y\n CONFIG_USB_GADGET_ATMEL_USBA=y\n-CONFIG_LCD=y\n+CONFIG_DM_VIDEO=y\n+CONFIG_ATMEL_HLCD=y\n CONFIG_FAT_WRITE=y\ndiff --git a/include/configs/sama5d3xek.h b/include/configs/sama5d3xek.h\nindex bd93a1e84c..9ec1e76052 100644\n--- a/include/configs/sama5d3xek.h\n+++ b/include/configs/sama5d3xek.h\n@@ -28,15 +28,6 @@\n */\n #define ATMEL_PMC_UHP\t\t\t(1 << 6)\n \n-/* LCD */\n-#define LCD_BPP\t\t\t\tLCD_COLOR16\n-#define LCD_OUTPUT_BPP 24\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 /* board specific (not enough SRAM) */\n #define CONFIG_SAMA5D3_LCD_BASE\t\t0x23E00000\n \n", "prefixes": [ "U-Boot", "v2", "2/5" ] }