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 0B9A6C433F5 for ; Fri, 20 May 2022 08:18:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 62E1980FC8; Fri, 20 May 2022 10:18:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1653034692; bh=waefcnlM7tYV/b5+hRdQsDyc3QIPrKB0FbKyv7DziCo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=UJZe6ZEa24m0My2VWyGKQ5ygiGJHt3KC2ObEh33zTT7PHqtsHPGGkHD39KmvsErTh 6Wbo2uDpvNovwcudjbb2yThVfaAiKtoElU35eSRAIPenQNb3lMG3+GJhzSMLCmUU+k N/DeMhtPm1bT8kJsJ+Dm9QVnqMo8ECVaD74V2KcE+McsaM9zkOFcpUMihC0zrymoL8 e6WE+ggk+OQTPckDIX8ITZG6xNoncP6ypO0e4gm2nPV/14N8xYqTIAInQs0gWn45se M5VImww5c+fdakIWzylFWb7dEa3W2T8UCSoUxU0xRy8eWn7gbR4+FjkqtQ8lBCsI+U VmGgAfl5eswSg== Received: from [IPV6:2001:a61:60db:7a01:e591:8740:d92:87c3] (unknown [IPv6:2001:a61:60db:7a01:e591:8740:d92:87c3]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbabic@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id DF5E680107; Fri, 20 May 2022 10:18:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1653034690; bh=waefcnlM7tYV/b5+hRdQsDyc3QIPrKB0FbKyv7DziCo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Opg0kan7EhZfE6KPGnFQ8mAOBVzDvqfW/yWByCEE15ayyeMGDE+DQuPOXrKUhKh0K l4fauigjq+HYws5nmV5yExpVYL+PXCpZFBUCP4pUIRzOEaUgkN1EH8e7eKZ6wVRvZj GXFX95XMCWVfoEPPqzWkEIXlNIRFH4KXpt0sFcmp8Rdo8JsLAFhDYrpSIyWhfiyHJR x5HkgpZj9gai4wWW9HistAY/5FtRhVBti1UK9VJRhhzHJAQ0Nm0gZl1iqoE7smG64L POdMCeQM4BvO6/9LHSHLIhn6N6UGPWxUmwWsY0TcYKL62Lvq13MHt6I/6P5Swkkqyj 7QprKeCDiY1jQ== Message-ID: <33d7dfc8-c131-fd8d-337a-35894d4cdb22@denx.de> Date: Fri, 20 May 2022 10:18:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH 4/4] ARM: imx: imx5: Introduce and use UART_BASE_ADDR(n) Content-Language: de-DE To: Stefano Babic , Marek Vasut , u-boot@lists.denx.de Cc: Fabio Estevam , Peng Fan References: <20220424214406.52658-1-marex@denx.de> <20220424214406.52658-4-marex@denx.de> <9cb83ca7-9c2b-e04c-9100-508695f40ddd@denx.de> <6aaff845-517a-eb54-aed2-4a08159de751@denx.de> <5391b34e-ec14-178f-5226-96ed8a9d4145@denx.de> From: Stefano Babic In-Reply-To: <5391b34e-ec14-178f-5226-96ed8a9d4145@denx.de> Content-Type: text/plain; charset=UTF-8; format=flowed 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 20.05.22 10:11, Stefano Babic wrote: > On 20.05.22 09:45, Marek Vasut wrote: >> On 5/20/22 09:30, Stefano Babic wrote: >>> Hi Marek, >>> >>> On 24.04.22 23:44, Marek Vasut wrote: >>>> Introduce helper macro UART_BASE_ADDR(n), which returns Nth UART base >>>> address. Convert all board configurations to this new macro. This is >>>> the >>>> first step toward switching CONFIG_MXC_UART_BASE to Kconfig. This is a >>>> clean up, no functional change. >>>> >>>> The new macro contains compile-time test to verify N is in suitable >>>> range. The test works such that it multiplies constant N by constant >>>> double-negation of size of a non-empty structure, i.e. it multiplies >>>> constant N by constant 1 in each successful compilation case. >>>> >>>> The non-empty structure may contain C11 _Static_assert(), make use of >>>> this and place the kernel variant of static assert in there, so that >>>> it performs the compile-time check for N in the correct range. Note >>>> that it is not possible to directly use static_assert in compound >>>> statements, hence this convoluted construct. >>>> >>>> Signed-off-by: Marek Vasut >>>> Cc: Fabio Estevam >>>> Cc: Peng Fan >>>> Cc: Stefano Babic >>>> --- >>> >>> I have not found the reason, but this breaks MX51: >> >> All this UART_BASE_ADDR stuff is postponed, just drop for now. > > > Ok, understood - I remove them. Well, there is at least one patch depending on this: http://patchwork.ozlabs.org/project/uboot/patch/20220505074341.24086-2-peng.fan@oss.nxp.com/ I will first try just to remove the i.MX5 patch, it seems to me that the MX51 is the only architecture that cannot be built. Regards, Stefano > > Best regards, > Stefano > -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de =====================================================================