From patchwork Fri Jan 5 10:28:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 123487 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp630700qgn; Fri, 5 Jan 2018 02:28:57 -0800 (PST) X-Google-Smtp-Source: ACJfBotAaJR3cVXu3Hz0ILW2s9skdYMNPleLR9DsiOg4OnJlwT4oRBj2JfsRV10I62cBNoA/KoaB X-Received: by 10.80.184.161 with SMTP id l30mr3460514ede.294.1515148137030; Fri, 05 Jan 2018 02:28:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515148137; cv=none; d=google.com; s=arc-20160816; b=Ty98/41PH+8MF7qfJ7kItOFRB5j1EfGR7hTJovUVT8kPSJ59SPELczV7nwYjV6oJnt 03ZTX6jNYFzzGwn0X1CAhvLxiNm8uvbx39rZYqynV/9kjmLa38+hY6b52ftIeTiLuA79 fNpxihiTQANJny89ZqaPrwZmxfo+B0UotVGlZ3IePT/RH+TFYWiyGFjJcZVoapA4uJeE OTwD34gvX6hpdWx69xkOrEitr9/CB2zcOhKMfz9+q0h0o7xnVKw6UBpZ4KzId/zHT6a2 i4m2Wb0EgrVkes+udzkOiYohwbaoYpCIg1fmgQ/3Fne4bD2WmBgRdL252cPHECB32iRy tkcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :arc-authentication-results; bh=gHTPoCF8G3AtZzOIKZB/48MhFYJ0Armnlj15de7YThc=; b=FA1Cbx8qIYqD/gOoLIFpIHXuPShdj4sPvuqZS6vM7sfr+CnlTFVDKWPZ3CBvWHlzkv n1z4ZUxCP4ntSgDBFolgBgebBP/gvzb0FmouMGDRo3WsUuI1FFLBn/28Pla7h2sRp1Ae OcGVd2clKu71sDuYspaKqKK+uk8G7TnHt16XFgB1CeORFrCa93i4AmWNBuD4kBXDFtPL vGcgZPFq/HFN62+pxN7DVb55A80NsrOXAS3Svi8ULF1UgXnpYUWJjRdOWSFXxBpXlOr2 gcyegN4clTMutr45E7cvQn2/s2SM3ClrWQvI2NzxCrrB3Fqks8Q3PcbeT1NwPOpOLh9r ZTqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aS6xzZBp; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id p34si2002490edb.501.2018.01.05.02.28.56; Fri, 05 Jan 2018 02:28:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aS6xzZBp; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 9DB3EC21E1D; Fri, 5 Jan 2018 10:28:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id ED1A9C21D5D; Fri, 5 Jan 2018 10:28:49 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4ED9CC21DA2; Fri, 5 Jan 2018 10:28:48 +0000 (UTC) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by lists.denx.de (Postfix) with ESMTPS id E8463C21C51 for ; Fri, 5 Jan 2018 10:28:47 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id n138so1562610wmg.2 for ; Fri, 05 Jan 2018 02:28:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=8LJVkJ9/Zc6ThYYfnjEbbJ70X4qr7T46ELQ8tYIhOig=; b=aS6xzZBpaPAVPRI5UAUqxAWjPDhvrgvKbFkhl/egqUleMxCagouh8rKHSVZyMJhLro JEi3BlHeL66CmDo6n1a4qV1B5nqoIMDBWH7fpq8/2aDzlU4RSbUZyXr304Scvdz+lyCJ OlU16TzNt5Mw7YywZ1c9mF7XRsIR199m/cJHk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=8LJVkJ9/Zc6ThYYfnjEbbJ70X4qr7T46ELQ8tYIhOig=; b=BLMX8w8YVKPkPtyJ1MaUmKkMRowgxJJ5A3CTof2YszbqYxa2jiWHS50/Yl0qN6Th2G ZBFwTwJSUnxar5vU9JNPxGAP0OzO63kO/LcNWBWP5TJ0NHSDDuwigg78qLpo80VwDqPq szOxvGumxnr+0q4MAqKDRdVHSE775RKwbrc1FGiQhDrKeatFvEKHsBtRjtR/4VmaFDr5 gE9bR/DM8vSdh6NC7qKDPnGxGHkA94xNhEQYv+wkSTwupKGp6rxIwbUXwSMtLblgFXpB rBEPzpUQn2t2LRum+7mF8mmCjZyncfgqasHyxjYUDcJRZbNNCxC9gFcd3lC2XTLjcdN3 f4NA== X-Gm-Message-State: AKGB3mK4n6C54EjkwQpn4PxYS1N29p0D7t5vxnRLzgPTs3bwgjI6kV76 6uCMwd3/11zaSD4EJ3Zw37oDKw== X-Received: by 10.28.20.134 with SMTP id 128mr1998468wmu.41.1515148127534; Fri, 05 Jan 2018 02:28:47 -0800 (PST) Received: from igloo.80.58.61.254 (141.pool85-51-114.dynamic.orange.es. [85.51.114.141]) by smtp.gmail.com with ESMTPSA id n33sm10364286wrn.76.2018.01.05.02.28.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jan 2018 02:28:46 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, u-boot@lists.denx.de Date: Fri, 5 Jan 2018 11:28:40 +0100 Message-Id: <1515148122-30049-1-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [U-Boot] [PATCH 01/03] spmi: msm: display the PMIC Arb version (debug) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Signed-off-by: Jorge Ramirez-Ortiz --- drivers/spmi/spmi-msm.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/spmi/spmi-msm.c b/drivers/spmi/spmi-msm.c index c226913..e9bfbb0 100644 --- a/drivers/spmi/spmi-msm.c +++ b/drivers/spmi/spmi-msm.c @@ -17,6 +17,11 @@ DECLARE_GLOBAL_DATA_PTR; + +/* PMIC Arbiter configuration registers */ +#define PMIC_ARB_VERSION 0x0000 +#define PMIC_ARB_VERSION_V2_MIN 0x20010000 + #define ARB_CHANNEL_OFFSET(n) (0x4 * (n)) #define SPMI_CH_OFFSET(chnl) ((chnl) * 0x8000) @@ -148,6 +153,8 @@ static int msm_spmi_probe(struct udevice *dev) struct udevice *parent = dev->parent; struct msm_spmi_priv *priv = dev_get_priv(dev); int node = dev_of_offset(dev); + u32 hw_ver; + bool is_v1; int i; priv->arb_chnl = devfdt_get_addr(dev); @@ -155,6 +162,12 @@ static int msm_spmi_probe(struct udevice *dev) dev_of_offset(parent), node, "reg", 1, NULL, false); priv->spmi_obs = fdtdec_get_addr_size_auto_parent(gd->fdt_blob, dev_of_offset(parent), node, "reg", 2, NULL, false); + + hw_ver = readl(priv->arb_chnl + PMIC_ARB_VERSION - 0x800); + is_v1 = (hw_ver < PMIC_ARB_VERSION_V2_MIN); + + dev_dbg(dev, "PMIC Arb Version-%d (0x%x)\n", (is_v1 ? 1 : 2), hw_ver); + if (priv->arb_chnl == FDT_ADDR_T_NONE || priv->spmi_core == FDT_ADDR_T_NONE || priv->spmi_obs == FDT_ADDR_T_NONE) From patchwork Fri Jan 5 10:28:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 123488 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp631432qgn; Fri, 5 Jan 2018 02:29:51 -0800 (PST) X-Google-Smtp-Source: ACJfBosqJT1oEyH7TjTr+y08DIZIu90aT3COzfgqUPqYeRoUOgnVN0j0l9RapPc+htY74/F7QtfB X-Received: by 10.80.151.153 with SMTP id e25mr3497610edb.31.1515148191318; Fri, 05 Jan 2018 02:29:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515148191; cv=none; d=google.com; s=arc-20160816; b=PnEHNt2rJ/y+CsfBbcgbyH2VlMxOABQyfbmBaswib1Xj5s+Ad1B4zHQK0Zpx7ePdfM jSfn1AdOnI6FIfuXjm+VO8DqiPv3vK8iicqi80grEWvivtV3APtoNruAZBXIKn6cyHuF Cbu29Ykgpe0Sjled+WBYpJo7Uf5/lNxhFeK3mUIbuMxa+zMH4TYXK6nrszSWqPwsG+A+ F69UYPAjUV0VnZbCQfvX7d9XYPxdGZEcJldD42MvI38MM00LWjpKf5oBmhOD7axCLUab 4X8hBppCfeWc71lJLE8YSZClH9EnClbJ4nvUSbUW8NX2d9ludswPOYqWS97Upb5siEOv rgzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:arc-authentication-results; bh=z/ERuiy5H61KqL1VVVsd2Wlg0s2VrgusJw9mP2qTAk8=; b=R21QvhcaCF1HwxZWzPKCD6s25G1UqCwx8RxNK6NF+KZ0smFttECzEGoYkZrDezJbxe omTXOPb+8O/VyeWjLD4T1XCiXU7g+fj1M9J/AtrLXsIk8h5oXtYEDZzCGGLi8d5dYKHP 4ZOle4PwXeRSHz8AfoZTJsZP4Hswpebb4YJCEedhMCikUGGSNPvfjHxUO48qGs6skFHn Uqctj5XybpNAJMCRou1y1tzxFtPbHaQ3Bo7AusViogfsju5Mj/vc50VK5igmKG9dvWc2 TqWqScTcoXw33JH+mOvWgEHYRphYv4dxBPChWBxPCWMhXOcrjqGy6aS/Nlp/QMAS32ej nV3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MnPmWZuA; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id h4si972431edc.528.2018.01.05.02.29.51; Fri, 05 Jan 2018 02:29:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MnPmWZuA; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 87CD7C21E1E; Fri, 5 Jan 2018 10:29:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id D3619C21DFA; Fri, 5 Jan 2018 10:28:50 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7323EC21D5D; Fri, 5 Jan 2018 10:28:49 +0000 (UTC) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by lists.denx.de (Postfix) with ESMTPS id 21334C21C51 for ; Fri, 5 Jan 2018 10:28:49 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id a79so1600377wma.0 for ; Fri, 05 Jan 2018 02:28:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=aBSRqkuzINF+L43PhGaRu0vQ5H+lWpZopIpXlc3xu0I=; b=MnPmWZuAwOfJ373o8Kvdw8pcwnhWU9Z1jjOZ1YX8TeXbGLG4qH643sMCDtNy/HYwe3 gk0+d9hY5VaVMLdM9Kvc4U+CPncCQ2bu1sEFTdmd7nBlyHUP660LriwhpoyxCWOZSmRE iORQw2Db5NIXMFzhnaNC/I30TZ4rWu1IRY/ZE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=aBSRqkuzINF+L43PhGaRu0vQ5H+lWpZopIpXlc3xu0I=; b=RM/kVcBeChjf0tXuFF8KsYY/TNl0OJZUuoKFekZbGBlMtX92b29VuJ9bAIDo7rvPl7 9MVln4iwHH+r7Lz/emhpV89jmhCQyNvRD7s/v6xCLropVLu8E5SuJwbycu/LzHsLTlsc plO4TZhF1O8tCbuxCpcwLdt5xwyMUYeI1Kk3i+YQgj/0N8nJwsQ4rlfTqkzgVQX8KD99 jdC5ql/CkEfrzvIMBNk4RPwaB3cOUR8wn9RBlg8yIWVubYfwa6cFXqz4SSgl9lyClP+V 2qJEuVHDpNIOG4hsVV9XmWvqMSZk0ZCIT6QmRSV9bdJY1LNAHXP27+WM4oK3d1mWGnVO SuoA== X-Gm-Message-State: AKGB3mLkizByoKBK4j4y5F1jDakwDSSj8N5Cth1N7FHIRf6FLiEiuHUX I71AHbQfHqhFjd43qF5FJLMMt6VnK5M= X-Received: by 10.28.15.201 with SMTP id 192mr2010631wmp.88.1515148128770; Fri, 05 Jan 2018 02:28:48 -0800 (PST) Received: from igloo.80.58.61.254 (141.pool85-51-114.dynamic.orange.es. [85.51.114.141]) by smtp.gmail.com with ESMTPSA id n33sm10364286wrn.76.2018.01.05.02.28.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jan 2018 02:28:48 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, u-boot@lists.denx.de Date: Fri, 5 Jan 2018 11:28:41 +0100 Message-Id: <1515148122-30049-2-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515148122-30049-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1515148122-30049-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Subject: [U-Boot] [PATCH 02/03] poplar: configs: increase gunzip buffer size for the kernel X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Signed-off-by: Jorge Ramirez-Ortiz --- include/configs/poplar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/poplar.h b/include/configs/poplar.h index 1c39ed1..8a12b52 100644 --- a/include/configs/poplar.h +++ b/include/configs/poplar.h @@ -18,7 +18,7 @@ #define CONFIG_NR_DRAM_BANKS 2 /* SYS */ -#define CONFIG_SYS_BOOTM_LEN 0x1400000 +#define CONFIG_SYS_BOOTM_LEN SZ_64M #define CONFIG_SYS_INIT_SP_ADDR 0x200000 #define CONFIG_SYS_LOAD_ADDR 0x800000 #define CONFIG_SYS_MALLOC_LEN SZ_32M From patchwork Fri Jan 5 10:28:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 123489 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp634349qgn; Fri, 5 Jan 2018 02:32:46 -0800 (PST) X-Google-Smtp-Source: ACJfBovH9M5PqHNy1ljWVOeCY3Fx15coNkwu/NZnOKt6BqLlO63VsTiKet4IPNq0Zdk1dBq8kwxP X-Received: by 10.80.244.12 with SMTP id r12mr3445225edm.2.1515148366630; Fri, 05 Jan 2018 02:32:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515148366; cv=none; d=google.com; s=arc-20160816; b=O4fgmK+GXWN5xpKZXh2C+mlFSQGht7CVdC6ydZ4kpNAacazyMfFGWtMDCD4iFCpwfO G7ieisVey1LkHDgisrgLxDncfrt06UvzOt95KgyeO9CLlaxLfC4kzxWtLOh66lVH4cCo 0E+fzpyOivmmLk74Wy0KkkjqU6111cPXHAfRH00jKBTSJ089lV5ZqwbPra8kExMa3uuO mSg9gdDkrLdZ6l4CJSS8JUyNNAz+vxdhiHUolVLg/TbXYEmZPkzZyDhiVI7v4AXgH1tq vPSaXu+rMC9aoqs0VFB/4dHQtQFidzvMXHa67k9RGRctGq/9s25px7olXgzanywcDhJa 7/gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:arc-authentication-results; bh=TmAaOUF9i1MgbbQtZhVsu+0v1ppjjpIMQNzpvWz6K9o=; b=0RJfmAL5XPa6BYHBmW9783t9IDMw31ko4GXs7Qhq+7MrmHoKJnnIFKVJ4iojHmr1BT p8/HWn9VoM648m/AD8NflIxUoizlU9se0at4DhyFp64JofkM85SIhOmDw51sS7Pq8CtZ c8CK2JZ1wTcIl/FNE6jWQF5oV5QVi3g2mWPqBh9cgxlEnlrG63M79fL7GNjsuriVl+RU pKpF4h3q1K4baEytiEY2juJmodJ6BvY4L/b2WcrIDJjjYupmkYnufQ2PydSpv3KkNkyy oXVXXcldCqkAGY1RL2I/ZY2OhBajodZ4oEmNTw6MvmjGlmX1crqdZzWyQHWHaxzOhL6g 5Wog== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NyaMd7VQ; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id e16si1584928ede.427.2018.01.05.02.32.46; Fri, 05 Jan 2018 02:32:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NyaMd7VQ; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 08652C21EC8; Fri, 5 Jan 2018 10:32:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id BADBDC21E5A; Fri, 5 Jan 2018 10:28:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4145AC21DC1; Fri, 5 Jan 2018 10:28:54 +0000 (UTC) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by lists.denx.de (Postfix) with ESMTPS id 0AD6EC21E13 for ; Fri, 5 Jan 2018 10:28:51 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id 9so1551704wme.4 for ; Fri, 05 Jan 2018 02:28:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=9pFfsSHGvEpykZaFmJYB2ofWm6ZDsM39EBqArbAirYE=; b=NyaMd7VQigIPqH3oP3/DR8RbaDFx4cbWeHsv1ziud4+2rwT/Y78vW8pMnuhtweSnJ1 yAwAnlfhCTNN+76p+G1JxYO8CyOiIUSNhCAW3d35gI39DfjE1k8VPzppwjcR0j0t9Cow QwARe1QsxMqarktBDiQWFQzFEvNY0NTCn0Oe4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=9pFfsSHGvEpykZaFmJYB2ofWm6ZDsM39EBqArbAirYE=; b=a+RnALDnU9nBba9TGRE1git7FZJSGQNaKZ6HrCTpi2McNOOExv0rc2cIJg/JrIEy8s 6VsRlO0BlRHnbDJMQJwoRpWogf1dSi6/G27BiFV9VMC6doANpT5P4vYoGNgSzxKWz9s2 k76eMYCffFO/gX4MmDhUSb+sKs1xnRKu42CYzDwmEGTKMY0kG/1N071D87FJPk6thZd5 QgXtdob/DRF+fyB1Hf3xUB5h/NDOB7kNkCsfkUSb2wvsLRsMsYD9HJAj1Iq6z/EXV/P3 OmAPxsplyTQq6W+vnh8KpeBafcNgcLAgcfJOgZ/Xbf4WBvFtFQf/nOJTl8GA6tryOcB5 7Opw== X-Gm-Message-State: AKGB3mJh08oZbh7oJmxtyA9lK0iiLMexDvucKP/baW77hJunyzB9os22 Iom3pWkQw/R3ftXQKXnFds2CRg== X-Received: by 10.28.241.1 with SMTP id p1mr2062443wmh.111.1515148130637; Fri, 05 Jan 2018 02:28:50 -0800 (PST) Received: from igloo.80.58.61.254 (141.pool85-51-114.dynamic.orange.es. [85.51.114.141]) by smtp.gmail.com with ESMTPSA id n33sm10364286wrn.76.2018.01.05.02.28.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jan 2018 02:28:49 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, u-boot@lists.denx.de Date: Fri, 5 Jan 2018 11:28:42 +0100 Message-Id: <1515148122-30049-3-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515148122-30049-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1515148122-30049-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Subject: [U-Boot] [PATCH 03/03] dm: core: parse chosen node X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Rob Clark This is the node that would contain, for example, the framebuffer setup by an earlier stage. Signed-off-by: Rob Clark --- arch/sandbox/dts/test.dts | 7 +++++++ drivers/core/root.c | 12 ++++++++++++ test/dm/bus.c | 2 +- test/dm/test-fdt.c | 2 +- 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index e67d428..3f9e788 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -478,6 +478,13 @@ wdt0: wdt@0 { compatible = "sandbox,wdt"; }; + + chosen { + chosen-test { + compatible = "denx,u-boot-fdt-test"; + reg = <9 1>; + }; + }; }; #include "sandbox_pmic.dtsi" diff --git a/drivers/core/root.c b/drivers/core/root.c index 976e2c4..5a1c599 100644 --- a/drivers/core/root.c +++ b/drivers/core/root.c @@ -266,6 +266,18 @@ static int dm_scan_fdt_node(struct udevice *parent, const void *blob, for (offset = fdt_first_subnode(blob, offset); offset > 0; offset = fdt_next_subnode(blob, offset)) { + + /* "chosen" node isn't a device itself but may contain some: */ + if (!strcmp(fdt_get_name(blob, offset, NULL), "chosen")) { + pr_debug("parsing subnodes of \"chosen\"\n"); + + err = dm_scan_fdt_node(parent, blob, offset, + pre_reloc_only); + if (err && !ret) + ret = err; + continue; + } + if (pre_reloc_only && !dm_fdt_pre_reloc(blob, offset)) continue; diff --git a/test/dm/bus.c b/test/dm/bus.c index 7006d41..1da398a 100644 --- a/test/dm/bus.c +++ b/test/dm/bus.c @@ -105,7 +105,7 @@ UCLASS_DRIVER(testbus) = { /* Test that we can probe for children */ static int dm_test_bus_children(struct unit_test_state *uts) { - int num_devices = 6; + int num_devices = 7; struct udevice *bus; struct uclass *uc; diff --git a/test/dm/test-fdt.c b/test/dm/test-fdt.c index dcc2ef8..920ccbf 100644 --- a/test/dm/test-fdt.c +++ b/test/dm/test-fdt.c @@ -167,7 +167,7 @@ int dm_check_devices(struct unit_test_state *uts, int num_devices) /* Test that FDT-based binding works correctly */ static int dm_test_fdt(struct unit_test_state *uts) { - const int num_devices = 6; + const int num_devices = 7; struct udevice *dev; struct uclass *uc; int ret;