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 0015DC433EF for ; Fri, 11 Mar 2022 03:42:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 31FE3836A8; Fri, 11 Mar 2022 04:42:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (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="CAY0VVns"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="Q57s/W4N"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 756DD836B8; Fri, 11 Mar 2022 04:42:00 +0100 (CET) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (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 DC1AF8368F for ; Fri, 11 Mar 2022 04:41:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (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.nyi.internal (Postfix) with ESMTP id 567E05C0105; Thu, 10 Mar 2022 22:41:54 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 10 Mar 2022 22:41:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; bh=F5nMWRujZZk9Ku aZVE9BGYHZ9GAtnWul8QQGYLl6dmM=; b=CAY0VVnsAUSj+bSjeUnjaHyLlS42AU zN7zxWcuH2EA6Z0lIVeA5+ChmybSm3d5y2OiR8xs22aG8FrZdkTjEE/fbvT5kOm8 4og5Co7h+ev9XJ5Bt3lmp3J2iMhM7CsdIkWhCSKaBRTc228awDr+uSTupXjAkITW bwLoY+G9Doj+2kmbCSuZoomf+WOxMC863QpTyGABCgywQvAQmGN03GHw255+m/Ab Thq5XkQZIuhCDMq9NxQg2Trynisiv/5dkovisLvertHlalabZ10HNM/xaTi15sYM 28mpcO0QEqb05cyFJLYyIfO38AqW7iawGIA39KLOuqWGtl1HfQshK+NA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=F5nMWRujZZk9KuaZVE9BGYHZ9GAtnWul8QQGYLl6d mM=; b=Q57s/W4NaQiq5QS8AcYIUNlqwM9FAbD6nQPU9fqsD+nSnghk0ZzqeRYxw dExWRPKt8lSqzqvwWrwFVMO5Hm4yovDpI4WmBn29FmbD0FeygkD7mKD0qbmeGTxB cm8/ofFJSkgEIFpo10Wf3DFaOQnhr8Pv/AqnhUfWqRWljBHDDbWb9iOkvgyVQnaz p7OSK+Nwv078Xw4bfF8ReXfoz7LkKKTB1YSbBN5+d9z7YsJm0gXaQhRA35Xhq7jY se8i6+WLvH1Ah7tZPgo8cU4KP4mD2iclR70JZMbftYd3F+Z7Cz6/aBrDgClv+5oP AoM7gdw9O48ALejAXZSG5bvdUXIgg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddruddvuddgiedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhepgfevffetleehffejueekvdekvdeitdehveegfeekheeuieeiueet uefgtedtgeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 10 Mar 2022 22:41:53 -0500 (EST) Subject: Re: [PATCH 02/15] arm: sunxi: Remove most SoC-specific config header files To: Andre Przywara , Tom Rini Cc: u-boot@lists.denx.de, Jagan Teki , Jernej Skrabec References: <20220310014404.1251636-1-trini@konsulko.com> <20220310014404.1251636-2-trini@konsulko.com> <20220310105850.49d40718@donnerap.cambridge.arm.com> <20220310133211.GL5020@bill-the-cat> <20220310140431.110b5033@donnerap.cambridge.arm.com> From: Samuel Holland Message-ID: <47092d2d-3ddd-e3b2-5e4b-cd65c3fbdaaa@sholland.org> Date: Thu, 10 Mar 2022 21:41:52 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20220310140431.110b5033@donnerap.cambridge.arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 On 3/10/22 8:04 AM, Andre Przywara wrote: > On Thu, 10 Mar 2022 08:32:11 -0500 > Tom Rini wrote: > >> On Thu, Mar 10, 2022 at 10:58:50AM +0000, Andre Przywara wrote: >>> On Wed, 9 Mar 2022 20:43:51 -0500 >>> Tom Rini wrote: >>> >>> Hi Tom, >>> >>>> At this point, sunxi-common.h is used for all systems except for some >>>> MACH_SUN50I variants. Remove the now basically empty header files and >>>> update CONFIG_SYS_CONFIG_NAME to use sunxi-common.h directly. >>> >>> So is this #include the only >>> user of this symbol? I was on the brink of removing those files several >>> times already, but wasn't sure if that has side effects. >>> I think buildman names use that as well, so we can't run "./buildman >>> sun7i" anymore? >>> If that's the only thing, I am fine with this. >> >> Yup, that's the only place it's used. >> >>> Actually the content of sun50i.h is bogus, since we don't define >>> CONFIG_GICV2, so don't need the GIC addresses. >>> So this can go as well, and SYS_CONFIG_NAME can maybe just become "sunxi"? >>> >>> Samuel, does this torpedo any RISC-V efforts? >> >> I'll do the move for v2 and keep an eye out if that's a problem for >> RISC-V efforts. > > Thanks. I guess we can bring it back, if needed, or turn it upside down > by including "sunxi-riscv.h" from sunxi.h, inside an #ifdef. Don't worry about affecting the RISC-V port when changing sunxi-common.h. I just tried switching over to using it, and I only ran into a couple of issues beyond the the usual SRAM/DRAM layout changes: - CONFIG_SYS_TCLK, used in drivers/i2c/mvtwsi.c, comes from asm/arch/i2c.h, which doesn't exist. I suggest moving this constant to sunxi-common.h (or Kconfig, but I see at least one definition that's not a constant). It will also need to change for suniv. - SUNXI_UART*_BASE come from asm/arch/cpu.h, which doesn't exist. The constants are only used inside "#ifndef CONFIG_DM_SERIAL", so I wrapped the #include in that as well. Regards, Samuel