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 EFBB9C433EF for ; Fri, 11 Feb 2022 22:31:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7310183BC1; Fri, 11 Feb 2022 23:31:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmx.de 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; secure) header.d=gmx.net header.i=@gmx.net header.b="TzjyYOTG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D18F983BC8; Fri, 11 Feb 2022 23:31:20 +0100 (CET) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (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 C843683BAE for ; Fri, 11 Feb 2022 23:31:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644618676; bh=GDZYcmneXHtM8wF6+AvG7n0WGnMBSMxAkdP4VMbqtWE=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=TzjyYOTGCLtD45rs7KlcRXe1PbSLiF9w3KIXG9+s2ARUkbOYt1klSsRE262Ai0T1x Bwvi+xyM7ZyldIblUHjrZbh5YGksQN/0Fr0sUFrGu2dt+7ucliMy7VwG2Fd7OcCz8A GYVLOa59tZ6Y1vrQOPhsQ45IjNvwlioTBhsOsnjw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.123.94] ([88.152.144.107]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mt757-1oBiwP0XkX-00tUuz; Fri, 11 Feb 2022 23:31:16 +0100 Message-ID: <7b0dce47-0b64-ec0e-adc8-6710a6a45f9b@gmx.de> Date: Fri, 11 Feb 2022 23:31:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH] arm: apple: Disable debug UART Content-Language: en-US To: Mark Kettenis Cc: Mark Kettenis , U-Boot Mailing List , Tom Rini , Simon Glass References: <20220211200013.18947-1-kettenis@openbsd.org> From: Heinrich Schuchardt In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:JGtp4aHRCzP2xEMUcIVqCX73icL/LHjlAE4n6Arzr4T52iiWJKu llARV7FO3GFHrVvGnDF5wcS1fFhAGCZ2ACDhrqrc6+2gWj1d0RKzXlqQnZzk1wS4rfZyaHF 4sD7G14Eyba7zuXy7Q48H0md9FcZnIFKbMrEuLamcj4fbFSiNfj8Xbx2+OtjUKRaFKOUQbY nlhfitzRhumK0Vo/HWn+Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:F4jibAxWh8I=:ww6ZwkuVUhawslUTX3b52J h+J4ugL4bAJMrS7X9y7gOEsVhFY4DIdllrgT37suLc3CCWOzBt+lJ5sEUVWG7znhKAZFwqrgF 0SnLZOilHATARgG7KhAqrp+X2iP4REi3DSqst3hG85aaS4F2A91IgvVP9tSyvJUMVsvgoixum iJpVXSZ4y5rHI2VDNUDYV2sOPQ/8Qk2m/bvRH12EBp1wjVQVOtt9wPKNedpNaM3SrmK3FkjOo dwEZQU0txClPHytcV3hV8mXw550KGfRriDb4c/DcI5pbaKn+iZj3AesRFRvDWsBYWL4PEcbdu jK6UyAzjkYd8M0fsH/vSCXKSiQpqjg+xk8GZdiBUUsdjG/Nn/ISAZHjl3CdhY77mSX4zM9L/b gdRUySopc82AOFiGtW1hFUMtcz8whJukFvh9ReXHw72T9G+mlq0yHQoto4J2nGF2TXTdvAbgt Sn7Enm+62EwOgOrJ28/Tgz4N+QT4nKx7MgW4wTTNXOVo/71JtoLmo0/caCWzFGifDUyoWgIbO rHH7Pehm7TDsNwuN71JRQHVHArH2m+f/qHiqMDP6NH28CxyrvEzwyGp89zkpALV7YyfWk0uqo +oAEQqkVjMtwMSk50E0WBORVM0Q7ntax3v7QHYsvCuNMWsP1Y9DgY4aExmfnJSh31R+gJLr2R 4KhOCDldWV0FGp8/2AqBzX+ax6o33ixGQBBZWfYqDXHP1kjGq+ViOwS6O4Hcov5szATQgpHH5 4yC4gGE5GFoZ9uJdNB87pOEgF091o4ameb8j22v5Jkttw6YVRVqpbugiueMzCAugMMsbd89Ob YtZ4g9Zyk8YjCWWWPd4ULVMysoU4ezIlsmpw+14AVhUdu3STES9j/QUXvjZhtf+Evlb1F/jMg AJ+eZelLZIdugo/93IRIbMGZm/nSBW4F1tRFW0ViNQzYsuog6gdVxdA3qJfjr0iPezGECi9CA 7wkmsvw5W7x75rvHjr+t/77yzGvlJRTJVsGkBMdbM1DEt3DZDJhUF+JPwGY/ZHY7Sn7kCn4k4 J4XnZ2QrEdh48IYy+P+pV4viMBIKV5woaathtHdGzC1afAf4IY7mtfrQxxVwDAKgZznf0sDH/ Anmhpm33ehHpMI= 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 2/11/22 22:01, Simon Glass wrote: > Hi Mark, > > On Fri, 11 Feb 2022 at 13:50, Mark Kettenis wr= ote: >> >>> From: Simon Glass >>> Date: Fri, 11 Feb 2022 13:29:15 -0700 >>> >>> Hi Mark, >>> >>> On Fri, 11 Feb 2022 at 13:00, Mark Kettenis wro= te: >>>> >>>> The address of the debug UART varies differs between the M1 and >>>> the M1 Pro/Max SoCs. So we have to disable it to make a single >>>> U-Boot binary that works on all SoC generations. Leave the >>>> settings for the base address and clock rate of the M1 in place >>>> to make it easier to re-enable the debug UART when needed. >>> >>> How about adding some docs about how to, and what the addresses are? >> >> Yes I can do that. A section at the end of doc/board/apple/m1.rst? Just list the relevant settings like in doc/board/sipeed/maix.rst:591 doc/board/emulation/qemu-arm.rst:118 >> Is it ok if I provide a single update to that file for the M1 Pro/Max >> support? > > Sounds right, just enough to explain how to enable it. > > Regards, > Simon > >> >>>> Signed-off-by: Mark Kettenis >>>> --- >>>> configs/apple_m1_defconfig | 1 - >>>> 1 file changed, 1 deletion(-) >>>> >>>> diff --git a/configs/apple_m1_defconfig b/configs/apple_m1_defconfig >>>> index ef5b7ffd1a..396fe63114 100644 >>>> --- a/configs/apple_m1_defconfig >>>> +++ b/configs/apple_m1_defconfig >>>> @@ -3,7 +3,6 @@ CONFIG_ARCH_APPLE=3Dy >>>> CONFIG_DEFAULT_DEVICE_TREE=3D"t8103-j274" >>>> CONFIG_DEBUG_UART_BASE=3D0x235200000 >>>> CONFIG_DEBUG_UART_CLOCK=3D24000000 Please, use 'make savedefconfig' to create a consistent defconfig, and copy the generated defconfig to configs/apple_m1_defconfig before resubmitting. Best regards Heinrich >>>> -CONFIG_DEBUG_UART=3Dy >>>> CONFIG_SYS_LOAD_ADDR=3D0x0 >>>> CONFIG_USE_PREBOOT=3Dy >>>> # CONFIG_DISPLAY_CPUINFO is not set >>>> -- >>>> 2.35.1 >>>> >>> >>> Regards, >>> SImon >>>