From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3410C4338F for ; Thu, 19 Aug 2021 11:20:38 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7E69660E90 for ; Thu, 19 Aug 2021 11:20:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7E69660E90 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E27C683128; Thu, 19 Aug 2021 13:20:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="v94XZk4z"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 43DCD82EEA; Thu, 19 Aug 2021 13:20:05 +0200 (CEST) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2532782E67 for ; Thu, 19 Aug 2021 13:19:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-wm1-x334.google.com with SMTP id l24-20020a05600c089800b002e71a10130eso576674wmp.5 for ; Thu, 19 Aug 2021 04:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aJcsRYzOV/eUUqa9HeXlCLp+NUTK8Uu3weyFuiw9W0U=; b=v94XZk4zDt5GTKnRbmyBeSnYnhVrTcHS11w59i28P7i+qZ1yxj5uILb2c7l81tXLGd AelvUhdq91GFVzf8Q8UB/DlZNrI7fOZ53ZGv2aGuCo3oUtkNWisUJYVhT7ehomiot6uO /XAz+ZRL+97dfWo1kJSaKRqo9u40dpxeoeK2DRY7LiGuWK5ftkXFEsF0474h6qsXmY5o 1GtqDeJ7zonLGq2xkQ/UMsj+W+2hTkr8fzZuuaGehWBLYv2h53kGFp8nH/NaaIaJ9eQ4 QUzPv+AyYrUEJv3XkM3QKWDHTIgtwGwtvpR+j5oWecUvgVOhrvyFtkuijUoxwR33lWnr vb0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=aJcsRYzOV/eUUqa9HeXlCLp+NUTK8Uu3weyFuiw9W0U=; b=Odc0pSBT0t0RgzoHrVMvSShazBQ+PjgcP1/AeqdLRGQP3LRkdLQE3KWvGVHw+YmUI7 /A+V+Bo1b/jNH5TQp/2J/950yZ5iheQH/NHcPV98t0KK5ZGyyzfovtXGr2ufp5Z15/mz 5UN1C6JZJzDp5jIrcpy3ClUU4VPKOiBnfOxmG/y6wvxSI+J0i3Xyv6YPDDdVuYzSd1pX Q/4SJEqB5b0fsHXzE44d74/zqc0wc0sFo5MLMs/w9l4q9XvZBLKG1LrgutcrkQKGjHWE UpST09xMw2hkVR6MbSvUX/33GCmrXSGYIMXvPhbNAVxbm1sDSl/fWpPWuqCS/3h9Q+D4 D4PA== X-Gm-Message-State: AOAM533emQHVpzTw5o/8ddNwkPN7PEE95tWV56ltng7qpWkk0rzNXXb7 kcL8F4tSQC7jH5LYA62oxdpSSF0BliHQEWEE X-Google-Smtp-Source: ABdhPJwluCPhSSqOEJIy5kb/exjz2x/lpmqMhVlcnh5o2lM0MIEqJZMODTbBOjWmm+YDdoiNIrESUw== X-Received: by 2002:a05:600c:1909:: with SMTP id j9mr13491041wmq.139.1629371994228; Thu, 19 Aug 2021 04:19:54 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6:f666:9af6:3fed:e53b]) by smtp.gmail.com with ESMTPSA id m7sm7175572wmq.29.2021.08.19.04.19.53 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Aug 2021 04:19:53 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Andre Przywara , Ashok Reddy Soma , Bin Meng , Chee Hong Ang , Fabio Estevam , Heiko Schocher , Ibai Erkiaga , Jagan Teki , Kever Yang , Konstantin Porotchkin , Lokesh Vutla , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Michal Simek , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Peter Robinson , Priyanka Jain , Simon Glass , T Karthik Reddy , Tim Harvey Subject: [PATCH 00/10] xilinx: Add support for DTB reselection Date: Thu, 19 Aug 2021 13:19:39 +0200 Message-Id: X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi, this series add support for board or board+cc runtime DT selection. EEPROM memory is read and based on that decoded if this is legacy/fru based format and proper DTB is used. There is a need to have all DTBs 64bit aligned. If you don't have it you will end up in exception. But one patch in this series is trying to detect it and panic before you reach it to let you know what's wrong. Enforcing mkimage/dtb alignment is done based on CONFIG_PHYS_64BIT and affects all 64bit systems but it is also not wrong for them to be properly aligned. Thanks, Michal Michal Simek (10): xilinx: fru: Replace spaces with \0 in detected name xilinx: Use variable for passing board_name xilinx: common: Change board_info[] handling xilinx: common: Free allocated structure xilinx: Add support for generic board detection xilinx: zynqmp: Check that DT is 64bit aligned Makefile: Align fit-dtb.blob and u-boot.itb by 64bits for 64bit systems arm64: dts: Make sure that all DTBs are 64bit aligned for 64bit systems xilinx: zynqmp: Generate different u-boot.itb for MULTI_DTB_FIT xilinx: common: Enabling generic function for DT reselection Makefile | 7 ++ arch/arm/dts/Makefile | 4 + arch/arm/dts/zynqmp-sm-k26-revA.dts | 3 + arch/arm/mach-zynqmp/mkimage_fit_atf.sh | 47 +++++++ board/xilinx/common/board.c | 160 +++++++++++++++++++----- board/xilinx/zynqmp/zynqmp.c | 3 + 6 files changed, 194 insertions(+), 30 deletions(-) -- 2.32.0