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: 1629534 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=l9ILVKKA; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kyr001Zk5z9sG0 for ; Wed, 11 May 2022 19:56:16 +1000 (AEST) 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-Google-Smtp-Source: ABdhPJwytExEdQ8h9yTfIGNQzW4RnykDlUzBTvPaQMN7awHgPntWQL9efPwLWQsvE8ConZmtt3h3Sg== 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