From patchwork Wed May 11 09:55:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 571512 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:66c4:0:0:0:0 with SMTP id x4csp5651918mal; Wed, 11 May 2022 02:56:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7UsVLZqSnaE33lVdVHqbOwOmYJP68L5Ot628vnH82q64a35no8/p3EHMwJC0v+eZ+rEo0 X-Received: by 2002:a17:907:3e21:b0:6f4:6c7c:c781 with SMTP id hp33-20020a1709073e2100b006f46c7cc781mr23162044ejc.735.1652262973024; Wed, 11 May 2022 02:56:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652262973; cv=none; d=google.com; s=arc-20160816; b=R2fVksuksDwa62J/NzZqmrpx45WXkIEpVmyi3V5ZBZoln4HTOGxZ/CY32ihm2aWQ9D tjJy4Bdbmv/MrHqKXMt2xpeo8q+7yIgyNdzBzuOlZOldhluO0hxpLxiE52OM0kFKxbHS yajbuQkwmZmOnqY+X9OUZAadrF2R25ENhfI6Rg5+2RaPZzZq+KTlarsjYNrjhv4lyuMM gjSuW8GI2yg6o6osRbF1ZmOQafbEOpUeQTlWjFBTDMT1LzdjKQ0C/aKQ+5chzzGxZ2sh nTY22GKLYetB231Sa3xylZxwHUn9pdaPDVLK8bQVMrxw2pD0lVKfzN2vLFJ2I+U3JxDw EeVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=1ijaTxWwKTFnKkoft9njl5urQU9T4T/+FFdQnPqziuc=; b=gjJTCyeX7tUWujbTbjYR8THa3N4zMV+ymYwbImb38DVzxpN4lbkPwVAHG79xUxuzUm 22IlWT+rLnWe2gUULDFTQYqQG3ruDoduofn/UpNC7BvtxfCmpYiwGBbL4vpjxmxPztxU 0cCxTFgcqc0EamHAgbFzu8jGwHQW9MylrVsLMgV2J4fQcPEHO/bosm9m8Bj5ra5YzHSG 0kQ6/M+5EcC+NjSI9wVgspgsX/LuKuR7xOWvnCNyMoyciPfud64RW3Ni9fSU1lofbx54 ZVGz/AUmGqT3YvmCBPLDTnjASwEuoqLq0Wj6An0Z8Znik9cN3h61eHm9titGfgZCq3Lb 0RGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l9ILVKKA; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id sa21-20020a1709076d1500b006f3fd7b244fsi2096403ejc.102.2022.05.11.02.56.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 02:56:12 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l9ILVKKA; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 18ED484324; Wed, 11 May 2022 11:56:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="l9ILVKKA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 46181842E3; Wed, 11 May 2022 11:56:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) (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 9445D842E3 for ; Wed, 11 May 2022 11:56:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rui.silva@linaro.org Received: by mail-ej1-x636.google.com with SMTP id bv19so2933469ejb.6 for ; Wed, 11 May 2022 02:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1ijaTxWwKTFnKkoft9njl5urQU9T4T/+FFdQnPqziuc=; b=l9ILVKKA4IeEHgdC89wDYssGmbZiTEMmX6EC1Lfg0T61n+MH2hc8tSdL2da3jxeNfR Kn9Vr8tri/rAFWbFQnjsBQR8tCgKJSxw0+Q2rK/tRPt13xLiVH4HjUnQa1dBBqb82Gjo 1T+HteSdXJJf4a4NtAbDQbQnLcKPOZHixSUlYKCppE3DkN0vMP2FCK/o4vryCaZS682y bsqrf6iW+kWn4wTDoACwMiyA1b2w1OOc1U/Z4Od/OWLMTor0gokdxp41SaYsPAmtuuvS WQmJsv8yJz0lWczaO/87WT0Emq6fh3FMZI20PeVWYRUbi+eubO2yKPcUT4Lz/48G9XzK 5qsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1ijaTxWwKTFnKkoft9njl5urQU9T4T/+FFdQnPqziuc=; b=TaTAQmfsHloqyYP4OcDmajNeFZsjuXk/I3BO1K9ZEJAz/J5YIJFpwALp5e7oYzTh24 VYu+m3yiXslMpynp09ADTCOYtkuZt86uA/1jsYjvpqpXFsMjArp03szouQP2Nd0dhnbQ ZfzpW4w/cPQr8/pX/egNxthXr5CcoyLf9mesv3NpUoyvdqZ2MgYLI3AduMJYkVk3pDCa IA1HpAz1Q+6ge8rKN5Gde6nlv5YjtEnepJC6BUqgtQVaTm1/oWBBljJeBcXhBMFls6UM 31IEmvBNC9D+zBFMA6ipbGVJAllPuW4lFqzf7LkQHbjIk13gZw2GoFmpRDUD8zSkbWb8 oY8A== X-Gm-Message-State: AOAM530RJXI9ZFezTBR+djfL1mgY8VKd7GtZH/KqKe2a+l1e5QVsMjTP Z1RbFAMRxQsJD0efA1UWZ5WR/j/vFik26w== X-Received: by 2002:a17:906:5d05:b0:6f6:2f7c:ffb8 with SMTP id g5-20020a1709065d0500b006f62f7cffb8mr22454392ejt.649.1652262962039; Wed, 11 May 2022 02:56:02 -0700 (PDT) Received: from arch-thunder.local (a109-49-33-111.cpe.netcabo.pt. [109.49.33.111]) by smtp.gmail.com with ESMTPSA id t16-20020a170906179000b006f3ef214e6dsm771501eje.211.2022.05.11.02.56.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 02:56:01 -0700 (PDT) From: Rui Miguel Silva To: u-boot@lists.denx.de Cc: Rui Miguel Silva Subject: [PATCH v2 0/2] board/armltd: add support for corstone1000 Date: Wed, 11 May 2022 10:55:39 +0100 Message-Id: <20220511095541.1461937-1-rui.silva@linaro.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean This series add support for arm's corstone1000 platform (see specific commit changelog for references to documentation), but first introduce a command (loadm which will integrate with efi subsystem) used in one of the boot sequence in this platform. v1 [0] -> v2: Tom: - device tree status (now on kernel next [1]) - loadm add documentation, testing, change the default value - kconfig extra line - dm_eth, dm_serial cleanups in platform code and headers - moving bootcommand to defconfig [0]: https://lore.kernel.org/all/20220322104118.573537-1-rui.silva@linaro.org/ [1]: https://lore.kernel.org/all/165089291072.1036016.13574796454085073736.b4-ty@arm.com/ Rui Miguel Silva (2): cmd: load: add load command for memory mapped arm: add support to corstone1000 platform README | 1 + arch/arm/Kconfig | 8 +- arch/arm/dts/Makefile | 3 + arch/arm/dts/corstone1000-fvp.dts | 51 +++++++ arch/arm/dts/corstone1000-mps3.dts | 32 +++++ arch/arm/dts/corstone1000.dtsi | 164 +++++++++++++++++++++++ board/armltd/corstone1000/Kconfig | 12 ++ board/armltd/corstone1000/MAINTAINERS | 7 + board/armltd/corstone1000/Makefile | 7 + board/armltd/corstone1000/corstone1000.c | 91 +++++++++++++ cmd/Kconfig | 5 + cmd/bootefi.c | 12 ++ cmd/load.c | 48 +++++++ configs/corstone1000_defconfig | 48 +++++++ configs/sandbox64_defconfig | 1 + configs/sandbox_defconfig | 1 + doc/usage/loadm.rst | 49 +++++++ include/configs/corstone1000.h | 52 +++++++ include/efi_loader.h | 2 + include/test/suites.h | 1 + lib/efi_loader/efi_device_path.c | 9 ++ test/cmd/Makefile | 1 + test/cmd/loadm.c | 72 ++++++++++ test/cmd_ut.c | 6 + 24 files changed, 682 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/corstone1000-fvp.dts create mode 100644 arch/arm/dts/corstone1000-mps3.dts create mode 100644 arch/arm/dts/corstone1000.dtsi create mode 100644 board/armltd/corstone1000/Kconfig create mode 100644 board/armltd/corstone1000/MAINTAINERS create mode 100644 board/armltd/corstone1000/Makefile create mode 100644 board/armltd/corstone1000/corstone1000.c create mode 100644 configs/corstone1000_defconfig create mode 100644 doc/usage/loadm.rst create mode 100644 include/configs/corstone1000.h create mode 100644 test/cmd/loadm.c