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 90CB4FA373D for ; Tue, 1 Nov 2022 05:09:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5589D84E00; Tue, 1 Nov 2022 06:08:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=sholland.org 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=sholland.org header.i=@sholland.org header.b="Xv/HAys2"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="r7Eq9nU7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3F1E384D44; Tue, 1 Nov 2022 06:08:44 +0100 (CET) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9F7E384D1B for ; Tue, 1 Nov 2022 06:08:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 078D33200437; Tue, 1 Nov 2022 01:08:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 01 Nov 2022 01:08:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1667279316; x=1667365716; bh=CJbn/mwt2NNjeyrfrjZt110Mz m7AuJ5rOCpJfpi21f4=; b=Xv/HAys2iWnhn+ZwNHIu2p3TcviOcEyO/l2ZT92xd 7xuxU8N+rae+5xIQofbRUlh7vVlUkUTsv1+Fp10sbS/2MlpwoRugxKqLBmescuZG HcXogc7fWIydP7k/EU0wx5SrnQhn4y2Aoy5cI0lkjUdeAlRaSrJ4ai3/TVaa8BWZ sLfX1e3Z/USYhXJ3ViQB6ebawjVwYKNLAc30a4OyT2tWYP5rv/+CecW/kt4EH08k CF8JrD0nyG47tt1O9Bct5TZ7hQi8Rwc0h48spPZ3wEj7iXJ2gNCBQBNhHySsG5nf 3vnAo/+ErvW7hWpzbEHggy2Y0Huue+YksoXlkd3HvaVLA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1667279316; x=1667365716; bh=CJbn/mwt2NNjeyrfrjZt110Mzm7AuJ5rOCp Jfpi21f4=; b=r7Eq9nU7kNaj4FeJiUMqSjDd888un+mBOa8ywh8joOr0NglV5iy pMoz7qOounGCKif2SU2BPPu7fAzlKapTMGBIr9q/Fj+oliXR0s5v6OwEnKauFSiR MSxOh9vdThMOOAwDpEK8jcYNmizf5OOUA9jlQWNske4VzU+21KHztZw5KQqfk9eg cGHEPs2kJoUf+4f64mLyMiNQZebqNyYxfFlIMgE3ro9TghYVFX8tX4GTsS8M+Tu7 /Se+4Q8+VBePDtabKXY7112f21S/bk6kSz0Z/7++yzUC6tL4kEdnu2O1qzu5Zakj xlxsQ26nEIRJC2i74sQzrUJ7R2+9ErSpyzg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrudeggdekudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpedvtdelueegfeejtedujedvudejteetheevleekvdfgteegtddvieekudfh leegveenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghnugdr ohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 1 Nov 2022 01:08:35 -0400 (EDT) From: Samuel Holland To: Andre Przywara , Jagan Teki Cc: u-boot@lists.denx.de, Samuel Holland Subject: [PATCH 00/22] sunxi: Prepare platform Kconfig to support multiple architectures Date: Tue, 1 Nov 2022 00:08:12 -0500 Message-Id: <20221101050835.2421-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean sunxi is getting a new RISC-V platform, D1. We want to share as much of the existing configuration as possible, to provide a familiar environment, DRAM layout, partition layout, etc. Because U-Boot includes all architecture Kconfig files at once, we must use a symbol outside of both CONFIG_ARM and CONFIG_RISCV to contain shared Kconfig options. I chose BOARD_SUNXI, corresponding to the file location and somewhat following the BOARD_SPECIFIC_OPTIONS pattern. I did a buildman run on this series. The only net option changes are the expected ones: - Host-side USB gets enabled on several boards by the first patch (emlid_neutis_n5_devboard orangepi_zero2 pinephone pinetab tanix_tx6 x96_mate teres_i) - CONFIG_BOARD_SUNXI gets added everywhere - CONFIG_SYS_I2C_MVTWSI gets enabled by the corresponding patch Andre, please feel free to take any subset of these; they don't all have to go in at once. And I'm open to suggestions about what instances of ARCH_SUNXI should (not) be converted. Some of them are open to opinion. I left alone the options in arch/arm/mach-sunxi/Kconfig that are covered by other series (MMC CD/USB PHY/power pins, AXP GPIO). After this series, the Kconfig changes needed for D1 support are quite small, something like this commit: https://github.com/smaeul/u-boot/commit/c12cf6c5d72f5327eff793518229ddbd41dcf729.patch Adding SUNXI_MINIMUM_DRAM_MB certainly made things nicer. There are a few options that probably still need some adjustment to respect it. Samuel Holland (22): sunxi: Fix default-enablement of USB host drivers sunxi: Remove unnecessary Kconfig selections sunxi: Add missing dependencies to Kconfig selections sunxi: Hide image type selection if SPL is disabled sunxi: Share the board Kconfig across architectures sunxi: Move most Kconfig selections to the board Kconfig sunxi: Globally enable SUPPORT_SPL sunxi: Downgrade driver selections to implications sunxi: Enable the I2C driver by default sunxi: Move default values to the board Kconfig sunxi: Hide the SUNXI_MINIMUM_DRAM_MB symbol sunxi: Clean up the SPL_STACK_R_ADDR defaults sunxi: Move PRE_CON_BUF_ADDR to the board Kconfig sunxi: Move SPL_BSS_START_ADDR to the board Kconfig sunxi: Move SPL_TEXT_BASE to the board Kconfig sunxi: Move SYS_LOAD_ADDR to the board Kconfig sunxi: Move TEXT_BASE to the board Kconfig sunxi: Move most board options to the board Kconfig env: sunxi: Replace ARCH_SUNXI with BOARD_SUNXI drivers: sunxi: Replace ARCH_SUNXI with BOARD_SUNXI disk: sunxi: Replace ARCH_SUNXI with BOARD_SUNXI spl: sunxi: Replace ARCH_SUNXI with BOARD_SUNXI Kconfig | 3 - arch/Kconfig | 1 + arch/arm/Kconfig | 48 +------- arch/arm/mach-sunxi/Kconfig | 154 ----------------------- board/sunxi/Kconfig | 224 ++++++++++++++++++++++++++++++++++ boot/Kconfig | 4 - common/Kconfig | 2 - common/spl/Kconfig | 18 +-- disk/Kconfig | 6 +- drivers/clk/sunxi/Kconfig | 2 +- drivers/fastboot/Kconfig | 13 +- drivers/gpio/Kconfig | 2 +- drivers/mmc/Kconfig | 2 +- drivers/net/phy/Kconfig | 4 +- drivers/phy/allwinner/Kconfig | 2 +- drivers/pinctrl/sunxi/Kconfig | 2 +- drivers/reset/Kconfig | 2 +- drivers/spi/Kconfig | 2 +- drivers/usb/Kconfig | 2 +- drivers/usb/gadget/Kconfig | 8 +- drivers/usb/host/Kconfig | 2 - drivers/usb/musb-new/Kconfig | 2 +- drivers/video/Kconfig | 2 +- drivers/watchdog/Kconfig | 4 +- env/Kconfig | 12 +- scripts/Makefile.spl | 2 +- 26 files changed, 267 insertions(+), 258 deletions(-) -- 2.37.3