From patchwork Fri Jan 5 10:29:51 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: 123494 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp637771qgn; Fri, 5 Jan 2018 02:36:25 -0800 (PST) X-Google-Smtp-Source: ACJfBouLDZ3FgAMtw7JQKzIkQMAW9IuH+PVN2fc1a8LBTJZLOInR+SxNhNGmTXfubRaJkYKk39v7 X-Received: by 10.80.146.161 with SMTP id k30mr3593580eda.300.1515148585014; Fri, 05 Jan 2018 02:36:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515148585; cv=none; d=google.com; s=arc-20160816; b=KXFKfOtQMgybtgLC4/CyLXpjaejF7NqOp0d+EaBVMUV2USD3MyAZOwV2+p7tggaFFV EWMyIM3xtajJ1es2lQ8uafuL38TjEfwsKmtoVg2fjGvoVA9YIGr8FhXm039BfdL5bFbw 2d095kTPNqa/zlYmB4uZiEdm2OHOUtmyOZpDCjH8JybDWBSNz02zlqDdoGJKjPo2H5oo c1u1kMC/wHJ4monvz5HPhzSVBJobPIuMtfhHc0Kp84gUEYVIgJHDPiyYSHBu3UlcN/QI KKNkHJVni0V4bISy/dLwRd5FMWfe5QLUiFy+Q+EKbLmtiMJc8BGZrTDr+JrEt2Ifq5kN 8pgQ== 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=kz9jdP+CTNwm9s+oWjaxzPYdoG94sjXSPH97y3d/X2c=; b=fsVaYhzVxeJ6mSmT0oR7Wh7TWACaCCEASRUs63jg/9o0DXLpAoa6xXiPp9UEateuhk 6P2EZGR0oU9gAv1IJmS1XYttB4T57uTHuXZN5FxQ5j3M1U6Mk+p0Icl+ftSxXdg7AkF+ lY6S5MFHZ6jMB8araCIct6is+NdIvZz04VoAo8ttO6aFKe8ZkKL1paK1Q4bA5KCR3st9 qOBYA2FZhL7Vf5Xjxo9bjtbyeD2oOpQBwe2DN42GuxyoiWmaxAuoQOFiMIgtTYUpfiWF grFlw37sUo1RmvCWxadggNb//6HDrnISKFVXJJ79fZXbjEkiKNCyytwFSgIN/v7CR68u xvig== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FlVay/IT; 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 g61si2078472ede.22.2018.01.05.02.36.24; Fri, 05 Jan 2018 02:36:25 -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=FlVay/IT; 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 814D1C21DDA; Fri, 5 Jan 2018 10:35:52 +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_H2, 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 38A4AC21E30; Fri, 5 Jan 2018 10:31:36 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 85640C21E4C; Fri, 5 Jan 2018 10:31:34 +0000 (UTC) Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by lists.denx.de (Postfix) with ESMTPS id 1A308C21E31 for ; Fri, 5 Jan 2018 10:30:02 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id w107so3955182wrb.9 for ; Fri, 05 Jan 2018 02:30:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ff7oFcgEFtoZS3CPKuVWnWEY5j2w01qIKTjhbuI+a3Q=; b=FlVay/ITlqriPSUwgKHdH/tGiYde/O/zna4dYQ3ZFDGiQulD1MYGnqxWJ0BrTslPQn g6ch0gCmj6ekZIrhAqmakMfD5uoFz/trC3rT5Oeo4r9+kx4UAzSosuA3y2utPB5/BcrO zDopqzXCQDEJ9Z5oxsJ5oeh2Am3Z85XloNW1Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ff7oFcgEFtoZS3CPKuVWnWEY5j2w01qIKTjhbuI+a3Q=; b=EUPMl1D0ncwd6uJvPRTWZgaWnIpRkoPrY8BL1+GKbRv5JF9W42Io2p+FUePu8rxZgB xiLxovMVBQbdgZY3LrnNh0kai0Abxl2vBMhi2XGHWFDKq+q6bOfGM6mhblU9fnt3P03E D8oAsUiOSwGqtxOQUMDzEyetSmKAO1dqsOIBjbhnRiDb+GJHlV6sJKLVEn+tIJDJS71d Z13qJ0YOma835V4elZsJvjvB+U8Qyira4uv63FWWDuJT/Q7HzhIHgEk6DNm1LuKvsbBA 7vN8+ss3RkDalAnMczrO6KKAz4rWBCAYsH72Zs7qm/jdGfa+UvaYLWStiJ9XukqA1tWy XCBQ== X-Gm-Message-State: AKGB3mKaQ5QrfLxr5hKezbqvi3sL8EXxVT4L09Hk595YjZS6milL/I/u KzgJSTc2xS/gIZViW2OqNUWcyg== X-Received: by 10.223.196.251 with SMTP id o56mr2143914wrf.201.1515148201758; Fri, 05 Jan 2018 02:30:01 -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 w40sm3719020wrc.79.2018.01.05.02.30.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jan 2018 02:30:01 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, u-boot@lists.denx.de Date: Fri, 5 Jan 2018 11:29:51 +0100 Message-Id: <1515148197-30234-1-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [U-Boot] [PATCH 01/07] db410c: 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" the kernel fails to boot when it goes over the limit. Signed-off-by: Jorge Ramirez-Ortiz --- include/configs/dragonboard410c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/dragonboard410c.h b/include/configs/dragonboard410c.h index d2447b2..3c5bb8a 100644 --- a/include/configs/dragonboard410c.h +++ b/include/configs/dragonboard410c.h @@ -23,7 +23,7 @@ #define CONFIG_SYS_TEXT_BASE 0x80080000 #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fff0) #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x80000) -#define CONFIG_SYS_BOOTM_LEN 0x1000000 /* 16MB max kernel size */ +#define CONFIG_SYS_BOOTM_LEN SZ_64M /* UART */ From patchwork Fri Jan 5 10:29:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 123499 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp640341qgn; Fri, 5 Jan 2018 02:39:37 -0800 (PST) X-Google-Smtp-Source: ACJfBouIVXoXbX882Svt9am4OsZ4ym4MIEsbfsMrIAwy31RzWAJ///UXXYGCSKBmTXn0rO+IOXeS X-Received: by 10.80.181.57 with SMTP id y54mr3499626edd.79.1515148777626; Fri, 05 Jan 2018 02:39:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515148777; cv=none; d=google.com; s=arc-20160816; b=YJC2+6kuh06AEXI5LN/oBm+x162vU6rnK9yCth1LgvVCS8nCPbmzYuxIj8oVD0vGPn M4f0npQsJSnJVuvCEyFArDBl1B6L+K3mSPHLqa7qxw56XyyYFDuKbFW79kJ5ldsJHqMw sKqeq1S+m9hsMyR765g4yANivtnk+QOyL1d+vbAkZtrF/5h+eo6F7qY9fO+J2e57+Toe VECvyoCEdXGGNjS5Csu8tU+WQCxxaUGsBca2sgENErCktFO9nepwaX+pKqQ/Iqctz/dQ 7hhhjRxVNiw735wgVQNFtaQ/5WpjIrxbQzWsIoJhvTU+B5D4y5NMt8T83PZJlkvPifIX VOTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=TpfwQ6r7v+/i6miiMS6/uPvfmLicCzygJUunFBKJ88s=; b=xGtxcGFXdMZUu3vgfI7aCwYw0z9Y0MGUbIWrY3mQEKt1vvSh2RR1IHlt7MGkB3Y1ck z3BXUqPpsqggo09lL+4p4sIaBRlB4FVf9eOQsvOJ3mEHaaLAzK5Sk3eOkXzIbKwrRSqm RoPLZyzTDkSdPfz/0J1qDY9xqwzyWc2uf6HTsI/AzNQ6BUvXcotaIX20P1STwoBMJKfv dGlf4I//SurvOh6X89dy5M7lazq806dsM7lLkuFrnePNU5Rf+7j/JFqO75ONkDqPdZYq R2CeWQw85qqjCgvLVZKi7iPFU+IQ2Sp30qjPVZwQ9r0lvoq2IpCYXFCgD8FH2fEYAoOt gSOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=N9WjoIQH; 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 5si1321778edo.285.2018.01.05.02.39.37; Fri, 05 Jan 2018 02:39:37 -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=N9WjoIQH; 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 433CBC21E16; Fri, 5 Jan 2018 10:36:09 +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_H2, 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 6FDECC21E70; Fri, 5 Jan 2018 10:31:37 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C12A0C21E31; Fri, 5 Jan 2018 10:31:34 +0000 (UTC) Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by lists.denx.de (Postfix) with ESMTPS id 8AC0AC21E9C for ; Fri, 5 Jan 2018 10:30:03 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id l41so3959786wre.11 for ; Fri, 05 Jan 2018 02:30:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4Z6+SXu/bt1rmjj2hxEMdikIHE1gxRT4vGK8uhXT0Rw=; b=N9WjoIQHm/O/nMlRWu+EO4O6+WsYa1H2/EEw45ooOxmfiTLu1J/ZOBHAP9d767xHRI +NiQaPynJmqZ9j+9MXZyG2sZeUyznauIUhRVTJL3sRwdreGI7q0Ye80jhA95MYFfQA6t mTW38PhafoSdOOKtJtcyLFZxQIcV50wjuN7Bk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4Z6+SXu/bt1rmjj2hxEMdikIHE1gxRT4vGK8uhXT0Rw=; b=uWI4fKNZeR6TWLqrNmp8M/Ktb+pOo9FM5HuY26C+iQcGb7mbqakDZV8ALPOBG85D3I u5VCBQnxpAHRtU76lHaaSr1LprgrctR00lxpzoYk3TWwd73Y56DeiEdXk54IPzmOaCMr a8S5FyjBofhjmJEzKAHiNWOaxLlQXrS9+7QFc5vYAg5DxnoP7wb82YUsbQlgROESMeAs cxBqXOj5D4YIdOdFx1LUJVveAJrUgkQirTc6eixvmakX/hW4VjiknjNS2YZwqekWcXQ7 /L3hVnr6M/v7U7xHHQ1a68o9b1HUBv7nrs4bztbi1eOEo0xOG7CugvKaFQxnRptAoOlP NCNg== X-Gm-Message-State: AKGB3mJwB2gDpyVcGoGXEt8EB/boPpFn3GymRrv9DQVTwdQW8jyB89Vg 3ys4rjuBFlZvLaht1iOiP6K2a8vqhV4= X-Received: by 10.223.159.75 with SMTP id f11mr2209851wrg.180.1515148203149; Fri, 05 Jan 2018 02:30:03 -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 w40sm3719020wrc.79.2018.01.05.02.30.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jan 2018 02:30:02 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, u-boot@lists.denx.de Date: Fri, 5 Jan 2018 11:29:52 +0100 Message-Id: <1515148197-30234-2-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515148197-30234-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1515148197-30234-1-git-send-email-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Subject: [U-Boot] [PATCH 02/07] db410c: update wlan and bt mac addresses from firmware 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The firmware that runs before u-boot modifies u-boot's device tree adding the local-mac-address and local-bd-address properties for the compatibles "qcom,wcnss-bt" and "qcom,wcnss-wlan". This commit reads that firmware, retrieves the properties and fixups the device tree that is passed to the kernel before booting. Signed-off-by: Jorge Ramirez-Ortiz --- arch/arm/dts/dragonboard410c.dts | 10 +++++ board/qualcomm/dragonboard410c/Makefile | 1 + board/qualcomm/dragonboard410c/dragonboard410c.c | 49 +++++++++++++++++++++--- board/qualcomm/dragonboard410c/lowlevel_init.S | 28 ++++++++++++++ configs/dragonboard410c_defconfig | 3 ++ 5 files changed, 85 insertions(+), 6 deletions(-) create mode 100644 board/qualcomm/dragonboard410c/lowlevel_init.S diff --git a/arch/arm/dts/dragonboard410c.dts b/arch/arm/dts/dragonboard410c.dts index 7746622..25aeac4 100644 --- a/arch/arm/dts/dragonboard410c.dts +++ b/arch/arm/dts/dragonboard410c.dts @@ -86,6 +86,16 @@ clock-frequency = <200000000>; }; + wcnss { + bt { + compatible="qcom,wcnss-bt"; + }; + + wifi { + compatible="qcom,wcnss-wlan"; + }; + }; + spmi@200f000 { compatible = "qcom,spmi-pmic-arb"; reg = <0x200f800 0x200 0x2400000 0x400000 0x2c00000 0x400000>; diff --git a/board/qualcomm/dragonboard410c/Makefile b/board/qualcomm/dragonboard410c/Makefile index cd67808..5082383 100644 --- a/board/qualcomm/dragonboard410c/Makefile +++ b/board/qualcomm/dragonboard410c/Makefile @@ -5,4 +5,5 @@ # obj-y := dragonboard410c.o +obj-y += lowlevel_init.o extra-y += head.o diff --git a/board/qualcomm/dragonboard410c/dragonboard410c.c b/board/qualcomm/dragonboard410c/dragonboard410c.c index 848e278..99fc91b 100644 --- a/board/qualcomm/dragonboard410c/dragonboard410c.c +++ b/board/qualcomm/dragonboard410c/dragonboard410c.c @@ -10,9 +10,16 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; +/* pointer to the device tree ammended by the firmware */ +extern const void *fw_dtb; + +static char wlan_mac[ARP_HLEN]; +static char bt_mac[ARP_HLEN]; + int dram_init(void) { gd->ram_size = PHYS_SDRAM_1_SIZE; @@ -27,7 +34,6 @@ int dram_init_banksize(void) return 0; } - int board_prepare_usb(enum usb_init_type type) { static struct udevice *pmic_gpio; @@ -96,11 +102,6 @@ int board_prepare_usb(enum usb_init_type type) return 0; } -int board_init(void) -{ - return 0; -} - /* Check for vol- button - if pressed - stop autoboot */ int misc_init_r(void) { @@ -134,3 +135,39 @@ int misc_init_r(void) return 0; } + +int board_init(void) +{ + int offset, len; + const char *mac; + + /* take a copy of the firmware information (the user could unknownly + overwrite that DDR via tftp or other means) */ + + offset = fdt_node_offset_by_compatible(fw_dtb, -1, "qcom,wcnss-wlan"); + if (offset >= 0) { + mac = fdt_getprop(fw_dtb, offset, "local-mac-address", &len); + if (mac) + memcpy(wlan_mac, mac, ARP_HLEN); + } + + offset = fdt_node_offset_by_compatible(fw_dtb, -1, "qcom,wcnss-bt"); + if (offset >= 0) { + mac = fdt_getprop(fw_dtb, offset, "local-bd-address", &len); + if (mac) + memcpy(bt_mac, mac, ARP_HLEN); + } + + return 0; +} + +int ft_board_setup(void *blob, bd_t *bd) +{ + do_fixup_by_compat(blob, "qcom,wcnss-wlan", "local-mac-address", + wlan_mac, ARP_HLEN, 1); + + do_fixup_by_compat(blob, "qcom,wcnss-bt", "local-bd-address", + bt_mac, ARP_HLEN, 1); + + return 0; +} diff --git a/board/qualcomm/dragonboard410c/lowlevel_init.S b/board/qualcomm/dragonboard410c/lowlevel_init.S new file mode 100644 index 0000000..15b2d0c --- /dev/null +++ b/board/qualcomm/dragonboard410c/lowlevel_init.S @@ -0,0 +1,28 @@ +/* + * (C) Copyright 2016 + * Cédric Schieli + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include + +.align 8 +.global fw_dtb +fw_dtb: + .dword 0x0 + +/* + * Routine: save_boot_params (called after reset from start.S) + * Description: save ATAG/FDT address provided by the firmware at boot time + */ + +.global save_boot_params +save_boot_params: + + /* The firmware provided ATAG/FDT address can be found in r2/x0 */ + adr x8, fw_dtb + str x0, [x8] + + /* Returns */ + b save_boot_params_ret diff --git a/configs/dragonboard410c_defconfig b/configs/dragonboard410c_defconfig index b71bff7..cfe9be9 100644 --- a/configs/dragonboard410c_defconfig +++ b/configs/dragonboard410c_defconfig @@ -44,3 +44,6 @@ CONFIG_USB_ETHER_ASIX88179=y CONFIG_USB_ETHER_MCS7830=y CONFIG_USB_ETHER_SMSC95XX=y CONFIG_OF_LIBFDT_OVERLAY=y +CONFIG_OF_CONTROL=y +CONFIG_ENV_IS_IN_MMC=y +CONFIG_OF_BOARD_SETUP=y From patchwork Fri Jan 5 10:29:53 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: 123498 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp640270qgn; Fri, 5 Jan 2018 02:39:31 -0800 (PST) X-Google-Smtp-Source: ACJfBosFq9tf2Bc68HY6MUQb+XZE5gP245HCrmM+xOk2t7WDo2Dmz3iX5FMHRHV21asKrF3GQvku X-Received: by 10.80.180.18 with SMTP id b18mr3496611edh.260.1515148771358; Fri, 05 Jan 2018 02:39:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515148771; cv=none; d=google.com; s=arc-20160816; b=LBuljBexSrA7zn0A3qK2lvKJSC4tqLVOxP1vtCTnA216+rs39XFxqwg3UKutDtrhm5 urB1kdkoxd+rN4V3ZGufnTqeKgsuopFCykpheNRAxMryvlUOUd8AvyvjOu0ZyvQn4jsJ apPxYOeJNU9KnO2u/sjPi6Mkon3d1Fg3zqI0LUW9CX5D4XRWrk1RXkuAJD+krHLCRh/Q 2UDryBozkpEDotTxxqeAFanXVScOz4zDKI6dgsM4V7xkhg9uGsBF6kb0xZLxTadrl86E wSw1WFaIbTEcNunDC3udlQCnSDVcKmHkHIf9XhrbXFKk6NCHLv1zgqX7anFXd742zKb8 5taQ== 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=gQVu+WyqdqBt9OsAfiIbI8mucXO9GteOZPDn6M7CK2o=; b=wSkB4QYT7R8xY1E4Dg5Rc4luNGir4h2zgw3gtCUISZx8Jd18fmdjc1cuxuRqmJ7veX LpwHsd3kqTQuTsNGe42kNm6wxEo5HrqnfrZH/6QVRUldU2HQHexW1M32u5OuswFhQuDJ Uyn8d+WabFb7j00xneeRXD0UY4bkI//xgrSHE9+5SoChUIvlfZ2Wa5Q5OJqaQ6GrUW6w hGtUGi24kDsrdjbNHLjOtoDPLtNZlzFEjdBuau/pKwqtHldjB1cngCk1w81LpKgRZ1TU CJgaGMhvMpRYeL8UthEZkGfbhFuVkYsp6DFECaizrh6TIsqoQNBEGi/vT6WCyDeGKEZl NOqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TNl1MGFW; 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 94si1489507edo.485.2018.01.05.02.39.31; Fri, 05 Jan 2018 02:39:31 -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=TNl1MGFW; 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 EA324C21E3E; Fri, 5 Jan 2018 10:36:27 +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 E1637C21E64; Fri, 5 Jan 2018 10:31:38 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 06443C21E31; Fri, 5 Jan 2018 10:31:34 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by lists.denx.de (Postfix) with ESMTPS id 1AF63C21EAE for ; Fri, 5 Jan 2018 10:30:05 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id g75so1597094wme.0 for ; Fri, 05 Jan 2018 02:30:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jdlN9v1ai5qwPJoq4mJk4OLXHYNPr+A+MIMueHLys20=; b=TNl1MGFWVeG1HyksGxQ7fIW+yNMjKMuLdPEhRVJubjA0FSwJ/TYaTsqhvdbEl97Upv Dh8Du5JY+AO0nTiUVarfrfrenNIhsiDxGl7U0fvOZGtJAItB5WWVMBCan0TkzN40jxPU AYodBV+vP6ePGiF8wVlrSbLIbqAf5VRemQETg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jdlN9v1ai5qwPJoq4mJk4OLXHYNPr+A+MIMueHLys20=; b=qaDJP3A8voMWrxclDw7IJl9xkmgtd6Wt9+gYUly3LlQ/6YjmW87z94PjW01vF+vc8f pSvDg1g1dbUoSCy8V4g6Qd2zy0oLBpEeh0xcj0gLJL8nKcCEFNXrQmnLIZqHqUTm5wfh 2IW/s0H7BxNisZ/ENe92ANTvP4UNR+HpjQYdiyQ3iZeQuJkbsJszr3azOaFhlFj0m/VF Iw+j/9TG7zSMW+X8fsmo3v4MMpm+7UnAUMHew9Jq6QwdJkBIrnzhWBHrFlKtwcaNxp4U JXsguLp/c9u/6zYnJ2K3VOOJdda+Wx71Do4bg2s/oBOeh7CrCOXSXwLTRDxKQfBZXzx7 7YAg== X-Gm-Message-State: AKGB3mIk9opLgg4p6bsa+ofPM85aKuB0tfbYZMQxHnQU+XZMxvnLvIW9 TUdrvzAOMoD9Ap6NZKsl55yiXw== X-Received: by 10.28.1.196 with SMTP id 187mr2077961wmb.154.1515148204594; Fri, 05 Jan 2018 02:30:04 -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 w40sm3719020wrc.79.2018.01.05.02.30.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jan 2018 02:30:03 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, u-boot@lists.denx.de Date: Fri, 5 Jan 2018 11:29:53 +0100 Message-Id: <1515148197-30234-3-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515148197-30234-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1515148197-30234-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Subject: [U-Boot] [PATCH 03/07] db410c: replace reset driver with psci 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" this should be the norm for armv8 platforms. Signed-off-by: Jorge Ramirez-Ortiz --- arch/arm/dts/dragonboard410c.dts | 5 --- board/qualcomm/dragonboard410c/dragonboard410c.c | 5 +++ configs/dragonboard410c_defconfig | 2 +- drivers/sysreset/Makefile | 2 -- drivers/sysreset/sysreset_snapdragon.c | 40 ------------------------ 5 files changed, 6 insertions(+), 48 deletions(-) delete mode 100644 drivers/sysreset/sysreset_snapdragon.c diff --git a/arch/arm/dts/dragonboard410c.dts b/arch/arm/dts/dragonboard410c.dts index 25aeac4..b67e588 100644 --- a/arch/arm/dts/dragonboard410c.dts +++ b/arch/arm/dts/dragonboard410c.dts @@ -48,11 +48,6 @@ clock = <&clkc 4>; }; - restart@4ab000 { - compatible = "qcom,pshold"; - reg = <0x4ab000 0x4>; - }; - soc_gpios: pinctrl@1000000 { compatible = "qcom,apq8016-pinctrl"; reg = <0x1000000 0x300000>; diff --git a/board/qualcomm/dragonboard410c/dragonboard410c.c b/board/qualcomm/dragonboard410c/dragonboard410c.c index 99fc91b..8ef4338 100644 --- a/board/qualcomm/dragonboard410c/dragonboard410c.c +++ b/board/qualcomm/dragonboard410c/dragonboard410c.c @@ -171,3 +171,8 @@ int ft_board_setup(void *blob, bd_t *bd) return 0; } + +void reset_cpu(ulong addr) +{ + psci_system_reset(); +} diff --git a/configs/dragonboard410c_defconfig b/configs/dragonboard410c_defconfig index cfe9be9..de923ad 100644 --- a/configs/dragonboard410c_defconfig +++ b/configs/dragonboard410c_defconfig @@ -30,7 +30,6 @@ CONFIG_DM_PMIC=y CONFIG_PMIC_PM8916=y CONFIG_MSM_SERIAL=y CONFIG_SPMI_MSM=y -CONFIG_SYSRESET=y CONFIG_USB=y CONFIG_DM_USB=y CONFIG_USB_EHCI_HCD=y @@ -47,3 +46,4 @@ CONFIG_OF_LIBFDT_OVERLAY=y CONFIG_OF_CONTROL=y CONFIG_ENV_IS_IN_MMC=y CONFIG_OF_BOARD_SETUP=y +CONFIG_PSCI_RESET=y diff --git a/drivers/sysreset/Makefile b/drivers/sysreset/Makefile index 2e9598e..000c288 100644 --- a/drivers/sysreset/Makefile +++ b/drivers/sysreset/Makefile @@ -8,10 +8,8 @@ obj-$(CONFIG_SYSRESET) += sysreset-uclass.o obj-$(CONFIG_SYSRESET_PSCI) += sysreset_psci.o obj-$(CONFIG_SYSRESET_SYSCON) += sysreset_syscon.o obj-$(CONFIG_SYSRESET_WATCHDOG) += sysreset_watchdog.o - obj-$(CONFIG_ARCH_ROCKCHIP) += sysreset_rockchip.o obj-$(CONFIG_SANDBOX) += sysreset_sandbox.o -obj-$(CONFIG_ARCH_SNAPDRAGON) += sysreset_snapdragon.o obj-$(CONFIG_ARCH_STI) += sysreset_sti.o obj-$(CONFIG_TARGET_XTFPGA) += sysreset_xtfpga.o obj-$(CONFIG_ARCH_ASPEED) += sysreset_ast.o diff --git a/drivers/sysreset/sysreset_snapdragon.c b/drivers/sysreset/sysreset_snapdragon.c deleted file mode 100644 index 9869813..0000000 --- a/drivers/sysreset/sysreset_snapdragon.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Qualcomm APQ8016 reset controller driver - * - * (C) Copyright 2015 Mateusz Kulikowski - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#include -#include -#include -#include -#include - -DECLARE_GLOBAL_DATA_PTR; - -static int msm_sysreset_request(struct udevice *dev, enum sysreset_t type) -{ - phys_addr_t addr = devfdt_get_addr(dev); - if (!addr) - return -EINVAL; - writel(0, addr); - return -EINPROGRESS; -} - -static struct sysreset_ops msm_sysreset_ops = { - .request = msm_sysreset_request, -}; - -static const struct udevice_id msm_sysreset_ids[] = { - { .compatible = "qcom,pshold" }, - { } -}; - -U_BOOT_DRIVER(msm_reset) = { - .name = "msm_sysreset", - .id = UCLASS_SYSRESET, - .of_match = msm_sysreset_ids, - .ops = &msm_sysreset_ops, -}; From patchwork Fri Jan 5 10:29:54 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: 123496 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp639433qgn; Fri, 5 Jan 2018 02:38:26 -0800 (PST) X-Google-Smtp-Source: ACJfBov1eL51GaZ7F9HJ9MRVHJ4XqvbMi43rF0DD3GfwfgEqFTyMP+5+RMxvp79auZtpTzcOVSof X-Received: by 10.80.217.76 with SMTP id u12mr3494991edj.171.1515148706401; Fri, 05 Jan 2018 02:38:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515148706; cv=none; d=google.com; s=arc-20160816; b=gYr8FKWAOJTaR038GACH5D7GjnRvtkLo/5OoCGX+5Ra6Y+ofdPpDlvl8DjaRd/GOVH cx3lkTDRXmbplJb56lSlQ8zP5X9aCvLRxlxbtQeoo3wpM6y4dkw28fzjeDacW+EX8JPA bXeC08OJpFhP68mn282Ix4c6CGLy7Mnm3No1yfmW02qQTU+tTiJTvvATnaRxNlrAnFrm wd7lqmxm43+pAPPJzBNM/yck0Ulh4CGWdQLi41lMVLqsOBlpEk3dwjXyyrLcnSKoyQ0Y HRYWFH8CDeLgebOoxMu4/AN7WZRWRmfCP6M8NzGQdbEGjxvsSNjpwd8miQpwAKeEBAiO B7Gg== 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=6o5DxjGEyMWCwPBz++uswl2hlaVvqiafwJQMe78MdRg=; b=mZx9E8llPLkWO3Gubkc0ZReWuqEVJrWfWFM/8DTg68oW/DprrjMq5o9mXa9VzVNm7r KG33id51gdDzWCRRhG0/pIE0BPKr67W6yQNRZ3pbQn+LnAndiFjyZH1Rxk5kjea8Kebb nmXdEqIcJH23xmZjBnljQY0460n2xLnd+tC39wxuWcdh1b4gbN84hHoSwGChX9qb4/Rm 6M8K2Pol3Ay2swhmVTFxeaZjs8ER0jz3ekHpKylIDKwPe5H7UJGhyTqw6TOSlLcBMpY+ /UsKfbdSF5XXG7mPTBHpfuVIpAE/v1e1OHbPRBCbySoR4FCPzImrZvNvIZS9pnbc8yhr KbcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SYPo3ruS; 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 b15si968797edf.329.2018.01.05.02.38.26; Fri, 05 Jan 2018 02:38:26 -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=SYPo3ruS; 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 05A1FC21DFA; Fri, 5 Jan 2018 10:36:45 +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_H2, 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 98A56C21E9B; Fri, 5 Jan 2018 10:31:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CB58CC21E4C; Fri, 5 Jan 2018 10:31:35 +0000 (UTC) Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by lists.denx.de (Postfix) with ESMTPS id 50CEBC21E13 for ; Fri, 5 Jan 2018 10:30:06 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id w107so3955360wrb.9 for ; Fri, 05 Jan 2018 02:30:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zAuMPiQsqtCOBU1vbUwCdf0jvKNVylQBt2xrTCp6vS8=; b=SYPo3ruSFHYTXe84Bf8GM4fV31XhVrASpVn8hKN/h9ARbpvelfUUhI5cO16dZMCnkL vgpSdYORhRe1P86uHPnWcaIrLzQLNRm0dtPw+pIZo/FyKdon15ShjhOq6vRVdXSYTECp JsFoHOeN8J9t9AHCgCnMnhVhKY9wVwqJ79k7I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zAuMPiQsqtCOBU1vbUwCdf0jvKNVylQBt2xrTCp6vS8=; b=BnBfdQC7VTO7W4mujm1zc/pom01dB1/BU1ONv7LpyC6bB+yYWfvsagU1M4W/v3V2gk J1VXkeidkVvDD+EgTSOHck1On4yagCnuQT/Ow2NZ8x9fmuSLvW3i0ydpXs+bMLwXb9fE ZwIsLgpELyCWuOwNk4ydEjo9SmpJ9lzRLQgVUHw6EVPGLPCcnqG4KdSbvrOzxpYey1Iv vAFIJMWydjJ0mCXKqCb1BN3e/rVeeliVM0HaBJeO5z4i+qWEYSLW8SXK7JH33nj8R/L2 jdv2BPexRrAs8Htmkjkrn4aCUPeiL6MhMK8gBaO202qq/+CTpBG8VGVAyNOEaatAjFnM 0zjg== X-Gm-Message-State: AKGB3mKWyHx/vN2ev8AR13WF0jzqGCI/g4e0Ou1cADyyCPMWxoof9Vop EQibxPWO0bk2T5TsjB/TkcSToQ== X-Received: by 10.223.178.242 with SMTP id g105mr1376008wrd.213.1515148205916; Fri, 05 Jan 2018 02:30:05 -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 w40sm3719020wrc.79.2018.01.05.02.30.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jan 2018 02:30:05 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, u-boot@lists.denx.de Date: Fri, 5 Jan 2018 11:29:54 +0100 Message-Id: <1515148197-30234-4-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515148197-30234-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1515148197-30234-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Subject: [U-Boot] [PATCH 04/07] fdtdec: allow board to provide fdt for CONFIG_OF_SEPARATE 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 Similar to CONFIG_OF_BOARD, but in this case the fdt is still built by u-boot build. This allows the board to patch the fdt, etc. In the specific case of dragonboard 410c, we pass the u-boot generated fdt to the previous stage of bootloader (by embedding it in the u-boot.img that is loaded by lk/aboot), which patches the fdt and passes it back to u-boot. Signed-off-by: Rob Clark --- include/fdtdec.h | 3 ++- lib/fdtdec.c | 35 +++++++++++++++++++++++------------ 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index 0fb3e07..4afb9ac 100644 --- a/include/fdtdec.h +++ b/include/fdtdec.h @@ -990,7 +990,8 @@ int fdtdec_setup(void); /** * Board-specific FDT initialization. Returns the address to a device tree blob. - * Called when CONFIG_OF_BOARD is defined. + * Called when CONFIG_OF_BOARD is defined, or if CONFIG_OF_SEPARATE is defined + * and the board implements it. */ void *board_fdt_blob_setup(void); diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 30ec6b9..cc3dfd6 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -1272,6 +1272,28 @@ static int uncompress_blob(const void *src, ulong sz_src, void **dstp) # endif #endif +#if CONFIG_IS_ENABLED(OF_SEPARATE) +/* + * For CONFIG_OF_SEPARATE, the board may optionally implement this to + * provide and/or fixup the fdt. + */ +__weak void *board_fdt_blob_setup(void) +{ + void *fdt_blob = NULL; +#ifdef CONFIG_SPL_BUILD + /* FDT is at end of BSS unless it is in a different memory region */ + if (IS_ENABLED(CONFIG_SPL_SEPARATE_BSS)) + fdt_blob = (ulong *)&_image_binary_end; + else + fdt_blob = (ulong *)&__bss_end; +#else + /* FDT is at end of image */ + fdt_blob = (ulong *)&_end; +#endif + return fdt_blob; +} +#endif + int fdtdec_setup(void) { #if CONFIG_IS_ENABLED(OF_CONTROL) @@ -1285,18 +1307,7 @@ int fdtdec_setup(void) # else gd->fdt_blob = __dtb_dt_begin; # endif -# elif defined CONFIG_OF_SEPARATE -# ifdef CONFIG_SPL_BUILD - /* FDT is at end of BSS unless it is in a different memory region */ - if (IS_ENABLED(CONFIG_SPL_SEPARATE_BSS)) - gd->fdt_blob = (ulong *)&_image_binary_end; - else - gd->fdt_blob = (ulong *)&__bss_end; -# else - /* FDT is at end of image */ - gd->fdt_blob = (ulong *)&_end; -# endif -# elif defined(CONFIG_OF_BOARD) +# elif defined(CONFIG_OF_BOARD) || defined (CONFIG_OF_SEPARATE) /* Allow the board to override the fdt address. */ gd->fdt_blob = board_fdt_blob_setup(); # elif defined(CONFIG_OF_HOSTFILE) From patchwork Fri Jan 5 10:29:55 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: 123497 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp640167qgn; Fri, 5 Jan 2018 02:39:24 -0800 (PST) X-Google-Smtp-Source: ACJfBouBsddnt7aeJ+ir04+dxaJcX5mVmI7YjtJmXQnzpLPFCUE6/+TZ4grFrfxnafcTq9lk1Zrg X-Received: by 10.80.180.236 with SMTP id x41mr3608779edd.241.1515148764695; Fri, 05 Jan 2018 02:39:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515148764; cv=none; d=google.com; s=arc-20160816; b=I6k/t7kWbUqt4CGTRbvBGXCJbITBRdqOR/Ek2eFGOh3MT82OO4GDRylktRHDfgBnAI Zy3+XlwJjB5UcN/6gulmEwxS5ox3emngzGod+IKEEowEWyvg+XX5mijY+TNiq1EgDZji LBr3PwieGRg8ZT3M1i//OmNVe1dLXqWRtawocSDT7L7wk350fc5vjedk1Mpc/kOQmIqN xDiuLVkVd6OdxlQDgrDzS79uHTg2hk/J+osTJJADk+N1d22Uo9CPNYNQWvjHXlbbZKSG FNnA/g+wpKWp+5ZB92QM16hfYY9jmyPV6ZIntQolWhbkB52jSCi36kq5Su/LJFSCWVlT 9O3g== 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=/ZuqaSxGzKkOYOlaBnTEYb5XIQpMQuhgdc5B85UABWw=; b=0G40oTn5HcH8x8dG9oxzMZVMF+9/Y1odiOqP+JhRh0z0TJe8SyGrzw0Og9S9LaShY8 xm6hSuWgVwiyFnlaThASF1nCYmFJrFWb8kkI/H8pwYTNNe2vHFmh/e/QzfhjoAkEyc6C ZwUnnFFVeXcFAg3cYDzor5V1zDBY/YNbR1oWCiVebiuVd9nm2mEPnjeLwuZ79TiMdkAB HPDp9syQFOKqD1iKt0KIn9up1uh0uvqcTcJE1/9zfSkCel4B+/ZwWNZ3Y33xopIs2Hks FW/l5ews9inl9ELOGIKFBzLax3OsfXsuNFxQBZCUBrabgqj64MciyhiBDdCT+lglpraU eOww== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dptpi3zB; 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 31si3410089ede.425.2018.01.05.02.39.24; Fri, 05 Jan 2018 02:39:24 -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=dptpi3zB; 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 4D794C21E14; Fri, 5 Jan 2018 10:37:36 +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 3816BC21EC2; Fri, 5 Jan 2018 10:32:46 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AE4FFC21EA6; Fri, 5 Jan 2018 10:32:40 +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 AC5EFC21E42 for ; Fri, 5 Jan 2018 10:30:07 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id 9so1558847wme.4 for ; Fri, 05 Jan 2018 02:30:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+UtnboSB9B19vLq2gJas75cDHsqjbUxUyvalJUMf1IA=; b=dptpi3zB5r+ze8U3MfiC5ik5TRnIrQ7iAJPwOSdXAzb1s8LpmyzcPD5DohNCjL/tRP 0H07U5MBTPfzRi+ym9HfdzJqbAzpbE3wrk6sysHrKuwyufC9MZYIQHK8womCSI/mtpnB TJHi+HjEd7JkNtHP2LKDkxCmwCMFLdmWLVtjQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+UtnboSB9B19vLq2gJas75cDHsqjbUxUyvalJUMf1IA=; b=QRi57JECbdHyGFdNuSFYiCEN8eXzHLm1ijh+46X2VCEmayJHZK6JxSkqRTlMVcFEFX 9JuRqEzSj5DrU91OYqfk/bPwTtkTUAJKMCcK4+fdhBOOnx3U0BCCdHf8oYfgxm+tcnke vSeBPPrX+rz9FIhzMfuzX7dB29/YrTp+G1an3KPOJPxGQaD7y2l8LFoNWTlwlkrP2hpT +8P6GYwja7yFTfBB/FeknNjfO8ujgyiLEFQ4ppCRVVcPFrfeQATnoXFgcRJUJIASnR+r fYTw707uEkX8pX816+2RHDH/wxBgQQ9vHHdJ85AKePtDYg6rmNSKQRAZBpC3npQamBOF i6qg== X-Gm-Message-State: AKGB3mKf0Te8pRL3DQ43UGHCdFHVHwq8oLf+jibKQWZy/hgPYbTx5izd gP9mrp+/fc0HqhIiRi/BlTDRMA== X-Received: by 10.28.111.11 with SMTP id k11mr1913311wmc.119.1515148207282; Fri, 05 Jan 2018 02:30:07 -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 w40sm3719020wrc.79.2018.01.05.02.30.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jan 2018 02:30:06 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, u-boot@lists.denx.de Date: Fri, 5 Jan 2018 11:29:55 +0100 Message-Id: <1515148197-30234-5-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515148197-30234-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1515148197-30234-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Subject: [U-Boot] [PATCH 05/07] db410c: use the device tree parsed by the lk loader. 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" We dont need to keep copies of the properties that we are going to fixup since we will be using the dtb provided by the firmware. Signed-off-by: Jorge Ramirez-Ortiz --- board/qualcomm/dragonboard410c/dragonboard410c.c | 71 ++++++++++++++---------- configs/dragonboard410c_defconfig | 1 + 2 files changed, 44 insertions(+), 28 deletions(-) diff --git a/board/qualcomm/dragonboard410c/dragonboard410c.c b/board/qualcomm/dragonboard410c/dragonboard410c.c index 8ef4338..236160a 100644 --- a/board/qualcomm/dragonboard410c/dragonboard410c.c +++ b/board/qualcomm/dragonboard410c/dragonboard410c.c @@ -15,14 +15,22 @@ DECLARE_GLOBAL_DATA_PTR; /* pointer to the device tree ammended by the firmware */ -extern const void *fw_dtb; +extern void *fw_dtb; -static char wlan_mac[ARP_HLEN]; -static char bt_mac[ARP_HLEN]; +void *board_fdt_blob_setup(void) +{ + if (fdt_magic(fw_dtb) != FDT_MAGIC) { + printf("Firmware provided invalid dtb!\n"); + return NULL; + } + + return fw_dtb; +} int dram_init(void) { gd->ram_size = PHYS_SDRAM_1_SIZE; + return 0; } @@ -138,36 +146,43 @@ int misc_init_r(void) int board_init(void) { - int offset, len; - const char *mac; - - /* take a copy of the firmware information (the user could unknownly - overwrite that DDR via tftp or other means) */ - - offset = fdt_node_offset_by_compatible(fw_dtb, -1, "qcom,wcnss-wlan"); - if (offset >= 0) { - mac = fdt_getprop(fw_dtb, offset, "local-mac-address", &len); - if (mac) - memcpy(wlan_mac, mac, ARP_HLEN); - } - - offset = fdt_node_offset_by_compatible(fw_dtb, -1, "qcom,wcnss-bt"); - if (offset >= 0) { - mac = fdt_getprop(fw_dtb, offset, "local-bd-address", &len); - if (mac) - memcpy(bt_mac, mac, ARP_HLEN); - } - return 0; } int ft_board_setup(void *blob, bd_t *bd) { - do_fixup_by_compat(blob, "qcom,wcnss-wlan", "local-mac-address", - wlan_mac, ARP_HLEN, 1); - - do_fixup_by_compat(blob, "qcom,wcnss-bt", "local-bd-address", - bt_mac, ARP_HLEN, 1); + int offset, len, i; + const char *mac; + struct { + const char *compatible; + const char *property; + } fix[] = { + [0] = { + /* update the kernel's dtb with wlan mac */ + .compatible = "qcom,wcnss-wlan", + .property = "local-mac-address", + }, + [1] = { + /* update the kernel's dtb with bt mac */ + .compatible = "qcom,wcnss-bt", + .property = "local-bd-address", + }, + }; + + for ( i = 0; i < sizeof(fix)/sizeof(fix[0]); i++) { + + offset = fdt_node_offset_by_compatible(gd->fdt_blob, -1, + fix[i].compatible); + if (offset < 0) + continue; + + mac = fdt_getprop(gd->fdt_blob, offset, fix[i].property, &len); + if (mac) + do_fixup_by_compat(blob, + fix[i].compatible, + fix[i].property, + mac, ARP_HLEN, 1); + } return 0; } diff --git a/configs/dragonboard410c_defconfig b/configs/dragonboard410c_defconfig index de923ad..4389f52 100644 --- a/configs/dragonboard410c_defconfig +++ b/configs/dragonboard410c_defconfig @@ -47,3 +47,4 @@ CONFIG_OF_CONTROL=y CONFIG_ENV_IS_IN_MMC=y CONFIG_OF_BOARD_SETUP=y CONFIG_PSCI_RESET=y +CONFIG_OF_SEPARATE=y From patchwork Fri Jan 5 10:29:56 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: 123501 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp641013qgn; Fri, 5 Jan 2018 02:40:25 -0800 (PST) X-Google-Smtp-Source: ACJfBovZH49OxnJ8Y4tGENHxQ2aNXqMC2ReoE8308wRuusawDv80b73dvUs1LcyNevJx3bqHc8C6 X-Received: by 10.80.133.33 with SMTP id 30mr3576126edr.42.1515148825542; Fri, 05 Jan 2018 02:40:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515148825; cv=none; d=google.com; s=arc-20160816; b=cosXKcFlWwjSf7YIvJptXkvAzmelSsd46QNqVRMUmn/7CIVD/qm4Ldonmk3T00JP+Q b9gfUSPjmztJEbFoV9tDmxJPRuaU8OLj5lc5Dl5ImYLDeU8LpJGt5UkiEflhr7kCAViS 1KDk/PwL3BerdiUfC4PnGxLUL0PQlNXgsClHn1HGGeLEN02JukntKsxWwILSIGsG9Pgh FIJ6OFiPxgKmaEyHyokMRXYvGrUEztDTqB0jxLdkKi0rKcmO8FNkkheg8ZQ8GnOCBFML zo0ytAu1N9onT/2CxbczBiTtagCO/3lR8XfV9eEnE0M2lh5qRHimq8FJj02iAiks9F0W 1g4g== 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=0wqHd+6DQn8KEt00bD4H3aMLgD1BaIgA6nRk/SOypLc=; b=TchzPIMA4lijm97ch0ZBgP9bgX6b7Gdx3Wb0ALGQtU6FJhhsEXTnIIO+0jV/x8/48W lPIzEM7OjocD1IwIyAozSZrVo3eldRFXZjoLVfxf8PEF/1+FGhK+UR+1fgDh36BXqOZ1 g43phkGzrQQcQu2kfynjBtd/Ji9sdGI5fOyg9FQLLGfCQ9hkisSQTU0UDLPTWjryfh5n GtX2jEATXVrpE4Ep7q/hq1lpyaEDBSaZaKDeuZ6bZfa3xuvI8G43TYpAr7F1tCV2K2RB TQQDXIiPyyGlAf7Q7s8Qsmrl2GJ3P3aP8Fjw1qNfgdwhkb0jz22z0RSJ4Rku0DNOzCZM hJTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GZvX7ZUt; 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 t42si64874edd.20.2018.01.05.02.40.25; Fri, 05 Jan 2018 02:40:25 -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=GZvX7ZUt; 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 1B248C21E57; Fri, 5 Jan 2018 10:37:19 +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 064EBC21EB1; Fri, 5 Jan 2018 10:32:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5D0C0C21EAB; Fri, 5 Jan 2018 10:32:40 +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 E3840C21DA2 for ; Fri, 5 Jan 2018 10:30:08 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id a79so1606683wma.0 for ; Fri, 05 Jan 2018 02:30:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=C3qX848fy49lmcHWdBcci+U9yT8FJ5Ehk4SIU7bPdwI=; b=GZvX7ZUt0JtEHHkgrJnTq+7ugmkXs9aQ2Z6w77N1K+1a/aYMQTAvkdjlVDf6t+3Tsi PkXy8r/7Qcos+jetuffhl4xWHNquJsJ58GwYZghdYqp6yI8dJ4HFUk1JcL3AL+gvtKTn P6c3bdJU2V6kVh96mZWn5SfagpiKfEQKZA3aU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=C3qX848fy49lmcHWdBcci+U9yT8FJ5Ehk4SIU7bPdwI=; b=ILjpAIq3cWu4+yaYZSapZeg7WaUarfTiUWKSS6ykkuyFk8ZfDL6hgRIhfZp1+9Abhc WjsDFBlG1g6S2OH8hZta6u/ZlEuM5IGGFdGXUJ5mubSX5CIvfBlaSpcLeih41Fmg9F+R 5QQGJNHbcugyNuQH/6HdUmyhc3i0O9OdxWTPw0fdGUm2fYE008KAradp5WfxOtqe/tZX uz75nuX9hdqBsbFeYZolFtHJdLZ/+fXtYX4AwYnSOOwIyFDp9gApWNeGdF2CSHNv6hx2 OdzN6BQ+aSQqDGWNt0FGaRpGzdd0tHQU/dZbdVMe92J+jMXAht4ISMXQV+KVkAqgDTF9 ZA3Q== X-Gm-Message-State: AKGB3mKuQyuPgd4nGk36tv1BlcpXTt1OH6l/6CPHggt8mDP5UcCF/+Nw bYB6ybjMHwwP/3N87gH5TcyncgtUf9k= X-Received: by 10.28.173.19 with SMTP id w19mr2104479wme.114.1515148208552; Fri, 05 Jan 2018 02:30:08 -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 w40sm3719020wrc.79.2018.01.05.02.30.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jan 2018 02:30:07 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, u-boot@lists.denx.de Date: Fri, 5 Jan 2018 11:29:56 +0100 Message-Id: <1515148197-30234-6-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515148197-30234-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1515148197-30234-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Subject: [U-Boot] [PATCH 06/07] db410c: add reserved-memory node to dts 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 If lk lights up display and populates simple-framebuffer node, it will also setup a reserved-memory node (needed by simplefb on linux). But it isn't clever enough to cope when the reserved-memory node is not present. Signed-off-by: Rob Clark --- arch/arm/dts/dragonboard410c.dts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/dragonboard410c.dts b/arch/arm/dts/dragonboard410c.dts index b67e588..5ccfe7f 100644 --- a/arch/arm/dts/dragonboard410c.dts +++ b/arch/arm/dts/dragonboard410c.dts @@ -23,11 +23,16 @@ reg = <0 0x80000000 0 0x3da00000>; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + }; + chosen { stdout-path = "/soc/serial@78b0000"; }; - soc { #address-cells = <0x1>; #size-cells = <0x1>; From patchwork Fri Jan 5 10:29:57 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: 123500 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp640539qgn; Fri, 5 Jan 2018 02:39:52 -0800 (PST) X-Google-Smtp-Source: ACJfBotgq5zdXVYTHfFGqammMEQG96OV+o4Eonvz4f4oyVpEPous4YEyZPr0qx+XSI5pdcX8foCa X-Received: by 10.80.190.199 with SMTP id e7mr3703388edk.186.1515148792089; Fri, 05 Jan 2018 02:39:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515148792; cv=none; d=google.com; s=arc-20160816; b=LOVsuu+P1qkysiXqcb/mrjXVUSBrVVbS4CkrA+mKJsJGkip72byG7GtlWTBiGSS0W/ m/U3/1Momlz7QvEjZ8CYZbwjEkvGh36ZI02AknyoR5zOVM6F5D6ZqCS3L75Z9bwoAVJF IHTqWlDvrDoXhSIcC0yhqfFTTpfGJnqoAp1L8A9G3i1tWFDSFDpXdLKlQrnzLF1cnKE3 Ku1iLEegkwrRdrZb2TdorXmXzB58m+UWmSSzEHAqVjs9/Vmj8xwY43DKOhXScbwKdxCx e1wVADr39HVFkkc/Z459uhytD685u64Yhduj80UM5g930BQQfcqzmquHOoDyrCkw1FmS cFVw== 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=TUg2e8h9ZC3v8z5HGCS/O8XtR4xA+xb+2mOgiB6TRCU=; b=CfbeZKhbWdmXdZDDu0xtPtWF+mTqHGl4BdCN2lLHzFy7vQRyW2dx0nF16QvzEHgllC +4QzAiHI1KxTC1RS9d/IxCHK9E+Y7JEcR/SVj8j18N8cMgSlw2LhofiR9c2Dyk8RVFBn PIH6xJtU19nvQiYR2QBJ4NoW8q19l9LlwWtZ6J3/ti7GGgSbhkcnXfmfc8ZE+3nXNL/e 4lKv8GFIxvhghNvcSdJy7unRkr0umm46Nr2ijXjE0BizFm7737XgIw208dj+OMMnLVZA 1V2BzOjEpKaC1D/I2jh11SwdLxw/WIX1wwIRj/2nbq5QpP6ogROMbmnOx49HbszvFJLo QMVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aJ2wrRMC; 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 d36si944928eda.310.2018.01.05.02.39.51; Fri, 05 Jan 2018 02:39:52 -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=aJ2wrRMC; 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 AA212C21E55; Fri, 5 Jan 2018 10:37:03 +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_H2, 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 8D174C21EAB; Fri, 5 Jan 2018 10:32:43 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C7AD8C21E0E; Fri, 5 Jan 2018 10:32:40 +0000 (UTC) Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by lists.denx.de (Postfix) with ESMTPS id 4F53FC21E78 for ; Fri, 5 Jan 2018 10:30:10 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id p6so3973235wrd.0 for ; Fri, 05 Jan 2018 02:30:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=v9bimDbF/+qo4PtRz12MRMxVn/JMG7LvVwq/u4nWtPA=; b=aJ2wrRMCI4eCWmzUd7f6eHp9ASLgIt3mgWfE1b5V1JjY398yJPfWG+xzuMog+Y1DuY wONzXiXyHJf7HK0wL1Oi9IJVbRSaYAWPBntgUFVlBO67Wq9ko+p+oI8f1nsAA6RLtjI0 w6FKBXoowJ8ZHXNUXCUWTuVH36mFHVm6mDXBg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=v9bimDbF/+qo4PtRz12MRMxVn/JMG7LvVwq/u4nWtPA=; b=cpJQkn9HX0uSeWYsAqo7VQvu5VL3MEg0+S3m4K9eBNSGwqQCP3o/G7tii1KhzQkTBB ol+cT2M/OV1NJligOVcDDmyBUwhrKgYzfMDH2isB5aLkWSHDHTj8QOs3kjGa43wHeoFR SZs1ms9atvMtV6lfqo1HdFIO4nfa2IQ7E/bdVFLjvg5I5Y6KxMvz3rdvOSat++Oik12W llDzqBC/L1J+2W/cwGtbt1G/EfpsLrBJykhYE/6uRyvKjM9WUJ0i0oHpLhZbOpfkb5lv hzfo2ZhCSmYHKOhPzxbPqaUaaYiDbAKmnLPmfxyA27O6By7if2yv1OmsxLe612bqt1Ft 0vXQ== X-Gm-Message-State: AKGB3mJgonhz0BsYN/xl3C2OpFZkz+aWU1EYLr+pyGir4zbiPxb2IDHf qHcLcmrmjjlovSki2aijZtjUFw== X-Received: by 10.223.163.198 with SMTP id m6mr1067645wrb.49.1515148209971; Fri, 05 Jan 2018 02:30:09 -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 w40sm3719020wrc.79.2018.01.05.02.30.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jan 2018 02:30:09 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, u-boot@lists.denx.de Date: Fri, 5 Jan 2018 11:29:57 +0100 Message-Id: <1515148197-30234-7-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515148197-30234-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1515148197-30234-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Subject: [U-Boot] [PATCH 07/07] db410c: on aarch64 the fdtfile is in per-vendor subdirectory 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 Signed-off-by: Rob Clark --- include/configs/dragonboard410c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/dragonboard410c.h b/include/configs/dragonboard410c.h index 3c5bb8a..530d667 100644 --- a/include/configs/dragonboard410c.h +++ b/include/configs/dragonboard410c.h @@ -92,7 +92,7 @@ REFLASH(dragonboard/u-boot.img, 8)\ "initrd_high=0xffffffffffffffff\0" \ "linux_image=Image\0" \ "kernel_addr_r=0x81000000\0"\ - "fdtfile=apq8016-sbc.dtb\0" \ + "fdtfile=qcom/apq8016-sbc.dtb\0" \ "fdt_addr_r=0x83000000\0"\ "ramdisk_addr_r=0x84000000\0"\ "scriptaddr=0x90000000\0"\