Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/175278/?format=api
{ "id": 175278, "url": "http://patchwork.ozlabs.org/api/patches/175278/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1344239199-11445-1-git-send-email-monstr@monstr.eu/", "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": "<1344239199-11445-1-git-send-email-monstr@monstr.eu>", "list_archive_url": null, "date": "2012-08-06T07:46:33", "name": "[U-Boot,v2,1/7] microblaze: Add support for device tree driven board configuration", "commit_ref": "b710d9d6c2921982a448903d3c10a14d6ee22ae3", "pull_url": null, "state": "accepted", "archived": false, "hash": "a6ba0c8fcb841cba9783614a161b2cbdb72abf63", "submitter": { "id": 2237, "url": "http://patchwork.ozlabs.org/api/people/2237/?format=api", "name": "Michal Simek", "email": "monstr@monstr.eu" }, "delegate": { "id": 1714, "url": "http://patchwork.ozlabs.org/api/users/1714/?format=api", "username": "vapier", "first_name": "Mike", "last_name": "Frysinger", "email": "vapier@gentoo.org" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1344239199-11445-1-git-send-email-monstr@monstr.eu/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/175278/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/175278/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 42D322C0098\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 6 Aug 2012 17:47:04 +1000 (EST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id E21E22812B;\n\tMon, 6 Aug 2012 09:47:00 +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 LS7IOF6oLMVG; Mon, 6 Aug 2012 09:47:00 +0200 (CEST)", "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 87570280B6;\n\tMon, 6 Aug 2012 09:46:59 +0200 (CEST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 4EEF5280D9\n\tfor <u-boot@lists.denx.de>; Mon, 6 Aug 2012 09:46:58 +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 GJ6DWdP5Iavg for <u-boot@lists.denx.de>;\n\tMon, 6 Aug 2012 09:46:55 +0200 (CEST)", "from mail-wi0-f174.google.com (mail-wi0-f174.google.com\n\t[209.85.212.174])\n\tby theia.denx.de (Postfix) with ESMTPS id 6AFA7280AD\n\tfor <u-boot@lists.denx.de>; Mon, 6 Aug 2012 09:46:53 +0200 (CEST)", "by wibhr14 with SMTP id hr14so1167576wib.9\n\tfor <u-boot@lists.denx.de>; Mon, 06 Aug 2012 00:46:52 -0700 (PDT)", "by 10.216.36.71 with SMTP id v49mr4866541wea.70.1344239206064;\n\tMon, 06 Aug 2012 00:46:46 -0700 (PDT)", "from localhost (nat-2.starnet.cz. [92.62.224.2])\n\tby mx.google.com with ESMTPS id\n\teu4sm14262580wib.2.2012.08.06.00.46.40\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tMon, 06 Aug 2012 00:46:41 -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)", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=google.com; s=20120113;\n\th=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state;\n\tbh=dpJ8VpSl9lIHexBT8IjsMqG3FbptgDjE3Ke3nwLUreo=;\n\tb=NFxRWwRHW/XkvnKr7vEDxphh4Uk39umLxBbD463IqVMUkCQosESnn03cpNfKui2oIN\n\tU05Z5h9SvwLjOCmofzmOP18X8kIMHLsDnJuTtjHZB2w6vEh05gbY3UlXB8Z45/ZpdP/U\n\twON8sEFrsI1Cxaw3THjANb8U1SFzkweyOWmaHLzijGRMwzPB5FD6uqGxlXWXVF+DBOlO\n\t34VGZgXkKBPSrC1Qx01b81IUFQQIkOq2yoyEEoEVTimJ0jeHD2BdBZ1+y60KefJMaX5D\n\tZOkypHjdqS314jt9hRauvlVXWe6dvXOvgARCNQTgYHA5C+7/M6UXuWC2LtY7JYxyB4W7\n\tHDTg==", "From": "Michal Simek <monstr@monstr.eu>", "To": "u-boot@lists.denx.de", "Date": "Mon, 6 Aug 2012 09:46:33 +0200", "Message-Id": "<1344239199-11445-1-git-send-email-monstr@monstr.eu>", "X-Mailer": "git-send-email 1.7.0.4", "X-Gm-Message-State": "ALoCoQkMUGBW9Jip3fgsCN6t3ajQ3pCk40pIrz5FFTTIiEd0FhDJiRIrixLlulUr2mw7d/4JgqsK", "Cc": "linz@li-pro.net", "Subject": "[U-Boot] [PATCH v2 1/7] microblaze: Add support for device tree\n\tdriven board configuration", "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>", "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": "This is minimum code required to be able to use device-tree\nfor u-boot initialization.\nCurrently only for device driver initialization.\n\nLinker script change ensures DTB to be aligned\nfor both options CONFIG_OF_EMBED and CONFIG_OF_SEPARATE.\n\nSigned-off-by: Michal Simek <monstr@monstr.eu>\nCC: Simon Glass <sjg@chromium.org>\n\n---\nv2: Show message about DTB address in bootlog\n---\n arch/microblaze/config.mk | 2 ++\n arch/microblaze/cpu/u-boot.lds | 1 +\n arch/microblaze/include/asm/global_data.h | 1 +\n arch/microblaze/lib/board.c | 24 ++++++++++++++++++++++++\n 4 files changed, 28 insertions(+), 0 deletions(-)", "diff": "diff --git a/arch/microblaze/config.mk b/arch/microblaze/config.mk\nindex aca79e2..b4935f0 100644\n--- a/arch/microblaze/config.mk\n+++ b/arch/microblaze/config.mk\n@@ -31,3 +31,5 @@ CONFIG_STANDALONE_LOAD_ADDR ?= 0x80F00000\n PLATFORM_CPPFLAGS += -ffixed-r31 -D__microblaze__\n \n LDSCRIPT ?= $(SRCTREE)/$(CPUDIR)/u-boot.lds\n+\n+CONFIG_ARCH_DEVICE_TREE := microblaze\ndiff --git a/arch/microblaze/cpu/u-boot.lds b/arch/microblaze/cpu/u-boot.lds\nindex ee41145..d033a28 100644\n--- a/arch/microblaze/cpu/u-boot.lds\n+++ b/arch/microblaze/cpu/u-boot.lds\n@@ -45,6 +45,7 @@ SECTIONS\n \t.data ALIGN(0x4):\n \t{\n \t\t__data_start = .;\n+\t\tdts/libdts.o (.data)\n \t\t*(.data)\n \t\t__data_end = .;\n \t}\ndiff --git a/arch/microblaze/include/asm/global_data.h b/arch/microblaze/include/asm/global_data.h\nindex 6e8537c..e802e4e 100644\n--- a/arch/microblaze/include/asm/global_data.h\n+++ b/arch/microblaze/include/asm/global_data.h\n@@ -43,6 +43,7 @@ typedef\tstruct\tglobal_data {\n \tunsigned long\tprecon_buf_idx;\t/* Pre-Console buffer index */\n #endif\n \tunsigned long\tenv_addr;\t/* Address of Environment struct */\n+\tconst void\t*fdt_blob;\t/* Our device tree, NULL if none */\n \tunsigned long\tenv_valid;\t/* Checksum of Environment valid? */\n \tunsigned long\tfb_base;\t/* base address of frame buffer */\n \tvoid\t\t**jt;\t\t/* jump table */\ndiff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c\nindex b80250a..942e18c 100644\n--- a/arch/microblaze/lib/board.c\n+++ b/arch/microblaze/lib/board.c\n@@ -34,6 +34,7 @@\n #include <net.h>\n #include <asm/processor.h>\n #include <asm/microblaze_intc.h>\n+#include <fdtdec.h>\n \n DECLARE_GLOBAL_DATA_PTR;\n \n@@ -63,6 +64,9 @@ typedef int (init_fnc_t) (void);\n \n init_fnc_t *init_sequence[] = {\n \tenv_init,\n+#ifdef CONFIG_OF_CONTROL\n+\tfdtdec_check_fdt,\n+#endif\n \tserial_init,\n \tconsole_init_f,\n #ifdef CONFIG_SYS_GPIO_0\n@@ -103,6 +107,17 @@ void board_init (void)\n \n \tmonitor_flash_len = __end - __text_start;\n \n+#ifdef CONFIG_OF_EMBED\n+\t/* Get a pointer to the FDT */\n+\tgd->fdt_blob = _binary_dt_dtb_start;\n+#elif defined CONFIG_OF_SEPARATE\n+\t/* FDT is at end of image */\n+\tgd->fdt_blob = (void *)__end;\n+#endif\n+\t/* Allow the early environment to override the fdt address */\n+\tgd->fdt_blob = (void *)getenv_ulong(\"fdtcontroladdr\", 16,\n+\t\t\t\t\t\t(uintptr_t)gd->fdt_blob);\n+\n \t/*\n \t * The Malloc area is immediately below the monitor copy in DRAM\n \t * aka CONFIG_SYS_MONITOR_BASE - Note there is no need for reloc_off\n@@ -121,6 +136,15 @@ void board_init (void)\n \t\t}\n \t}\n \n+#ifdef CONFIG_OF_CONTROL\n+\t/* For now, put this check after the console is ready */\n+\tif (fdtdec_prepare_fdt()) {\n+\t\tpanic(\"** CONFIG_OF_CONTROL defined but no FDT - please see \"\n+\t\t\t\"doc/README.fdt-control\");\n+\t} else\n+\t\tprintf(\"DTB: 0x%x\\n\", (u32)gd->fdt_blob);\n+#endif\n+\n \tputs (\"SDRAM :\\n\");\n \tprintf (\"\\t\\tIcache:%s\\n\", icache_status() ? \"ON\" : \"OFF\");\n \tprintf (\"\\t\\tDcache:%s\\n\", dcache_status() ? \"ON\" : \"OFF\");\n", "prefixes": [ "U-Boot", "v2", "1/7" ] }