Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E2972C433EF for ; Sat, 28 May 2022 16:52:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AF10B83F72; Sat, 28 May 2022 18:52:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="o8LUH2WF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BBD57840B6; Sat, 28 May 2022 18:52:25 +0200 (CEST) Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (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 90EC183F41 for ; Sat, 28 May 2022 18:52:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x729.google.com with SMTP id i68so7862363qke.11 for ; Sat, 28 May 2022 09:52:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:subject:message-id:mime-version:content-disposition; bh=jn6THe4Ej2gUPkeK/a8DUJ8nY2oatmW19fgoVw+AHT0=; b=o8LUH2WFL5Se1/nOZUBt+kET6Br4fK90wcU5lAimZsCgHGnffXFMAoehpd5wME42mI ZvFS14NKEVMPHagccfm7yse6c4EB7Z1LiCsyrSRQxx6scYAhxYu7kcnSoutbY1reN23U YpHUcwCPHtxhUCKDewLK05vazldVZ7zft5vhw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=jn6THe4Ej2gUPkeK/a8DUJ8nY2oatmW19fgoVw+AHT0=; b=6tm9SjlCqN0ovhmCL0Z0zbhmGDDq3sn6aiKo3fYG8hQhy5eAAE1U6MKhGFm8JvbAXt 1lMQqrM8jSd1ITftNXZAXbv8MMq/Fk8cxvpa+STRM4f9qcFIslOw33HVtooqV5TS9WqP 3rDk4wdZX0NCChSzAROPFE0Q6d8sKwn0oGbEdc9Ga2WfttbARgTFxxG71Ijh+DuqxQPD 689CqCxPBX+D69kR0eyNO0s+o+E2VpGxPcFqOAWcR5NQ7aH1F9hb8LPKzc/KG1F2kxqk F16l/Nt2l4ZDhuxtN1anFjNYAQoEdicbsmhcIAc7n4YEtam8A/7Q4Rr9PxucK3nk8n5n WsfA== X-Gm-Message-State: AOAM530i9CWCF7v1De0KhUf7sD+NBt24tl1rfwke39mDozk5yYqqlaEV bvKElyGQRRg/4BHDuMBRa0yp+IhE9jxWeA== X-Google-Smtp-Source: ABdhPJzKGIl52tSyqGcMYjUHrV9Wc9Apr1JXSO5lXREBGGHKZwK6GjpMqHTsRBZ+o8ktdYKZk5CvRQ== X-Received: by 2002:a05:620a:4692:b0:6a5:b06f:ff15 with SMTP id bq18-20020a05620a469200b006a5b06fff15mr9849978qkb.80.1653756741014; Sat, 28 May 2022 09:52:21 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-25fd-0000-0000-0000-1003.res6.spectrum.com. [2603:6081:7b00:25fd::1003]) by smtp.gmail.com with ESMTPSA id f1-20020a05620a408100b0069fcf7678besm4864567qko.105.2022.05.28.09.52.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 09:52:20 -0700 (PDT) Date: Sat, 28 May 2022 12:52:18 -0400 From: Tom Rini To: u-boot@lists.denx.de, Mario Six , Chris Packham , Stefan Roese Subject: Converting CONFIG_SPL_BOOT_DEVICE to Kconfig in U-Boot Message-ID: <20220528165218.GM25375@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="YZQs1kEQY307C4ut" Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett 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 --YZQs1kEQY307C4ut Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey folks, As part of converting outstanding CONFIG symbols to Kconfig, I've run in to CONFIG_SPL_BOOT_DEVICE and while I think I see how to do it, it would be better I think if someone that has the hardware and can test the logic out, does it. In short, I believe we need to: - SPL_BOOT_SPI_NOR_FLASH / SPL_BOOT_SDIO_MMC_CARD become a choice section in arch/arm/mach-mvebu/Kconfig, guarded by !SECURED_MODE_IMAGE - KWB_CFG_SEC_BOOT_DEV in arch/arm/mach-mvebu/Makefile gets updated based on how the Kconfig logic now works. - In the case of CONFIG_SPL_BOOT_SDIO_MMC_CARD (or whatever it's named) and MMC_SDHCI we just have that value defined and drivers/mmc/sdhci.c is updated to check it for SPL. Or if this is possibly useful outside of SPL, we make use of CONFIG_VAL and have 'SPL_FIXED_SDHCI_ALIGNED_BUFFER' be set for the current case. - CONFIG_SPL_BOOT_DEVICE is removed I think that covers everything, but please let me know if I missed something or I got the logic wrong or something. Thanks! --=20 Tom --YZQs1kEQY307C4ut Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmKSUz4ACgkQFHw5/5Y0 tyyQIwv/WiohprRFEpswAYMfrjwqWbpwUQ03VxZHIuh683vy1Wc4rHI9Xm9wEbj4 aEvNOTswOTyyiHiLSD5Mgcs/KDxETyFxnkDlIxwNt2+IJVoNGCC13mgwjg4CU3gL Gs9TKOALZZaqj5WKCtPlbnMeFYF/A4lBL/odE9NYp1v+RdI3Ve3KfAjoMGOBJsh2 Z1kWV543KYyvuOjUS23k8zu1qfPzZ/xkyQwWcrzVsfF+IIr0R6uh4Azg0bb9Q8j+ 9n8kzqxklY4PJy8MBjApRtYfmt8vYe9isGAb4R/cj4KE+kwGXG7UGiIkq4Xlic/M aeIZEUY13CBjdaLfhjXHBHVcMmM1djQY3xqMxhck3luwaRPcObgajNTdkHsteeL4 uzUU+PHMUSP86dkRckLgUXTeF9lbJKH95jMfSxAXl1E3AiG7EIplosNll4D2O/y2 lPmH8OFDY5/3IBWuSqG7CyGYERjym1//wtHEhSI0yXhBplzM+ZyJWb1B6ZBkVUQg bIO9N8UV =NO1V -----END PGP SIGNATURE----- --YZQs1kEQY307C4ut--