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 60622C433EF for ; Sun, 10 Jul 2022 17:33:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2B22C84607; Sun, 10 Jul 2022 19:33:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xs4all.nl Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 0EB8B84608; Sun, 10 Jul 2022 19:33:13 +0200 (CEST) Received: from sibelius.xs4all.nl (80-61-163-207.fixed.kpn.net [80.61.163.207]) (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 A736584606 for ; Sun, 10 Jul 2022 19:33:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xs4all.nl Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=mark.kettenis@xs4all.nl Received: from localhost (bloch.sibelius.xs4all.nl [local]) by bloch.sibelius.xs4all.nl (OpenSMTPD) with ESMTPA id d4049e52; Sun, 10 Jul 2022 19:33:09 +0200 (CEST) Date: Sun, 10 Jul 2022 19:33:09 +0200 (CEST) From: Mark Kettenis To: Janne Grunau Cc: u-boot@lists.denx.de, kettenis@openbsd.org, trini@konsulko.com, sjg@chromium.org In-Reply-To: <20220630220617.23530-2-j@jannau.net> (message from Janne Grunau on Fri, 1 Jul 2022 00:06:17 +0200) Subject: Re: [PATCH 2/2] arm: apple: Add initial Apple M2 support References: <20220630220617.23530-1-j@jannau.net> <20220630220617.23530-2-j@jannau.net> Message-ID: 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 > From: Janne Grunau > Date: Fri, 1 Jul 2022 00:06:17 +0200 > > Apple's M2 SoC very similar to the M1 and can use the same memory map. > The keyboard/trackpad on the MacBook Pro (13-inch, M2, 2022) uses > "dockchannel" as transport instead of SPI and needs a new driver. > USB, NVMe, uart, framebuffer and watchdog are working with the existing > drivers. > > Signed-off-by: Janne Grunau Reviewed-by: Mark Kettenis > --- > arch/arm/mach-apple/board.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mach-apple/board.c b/arch/arm/mach-apple/board.c > index 1525a9edee8e..16046423128c 100644 > --- a/arch/arm/mach-apple/board.c > +++ b/arch/arm/mach-apple/board.c > @@ -16,7 +16,7 @@ > > DECLARE_GLOBAL_DATA_PTR; > > -/* Apple M1 */ > +/* Apple M1/M2 */ > > static struct mm_region t8103_mem_map[] = { > { > @@ -376,7 +376,8 @@ void build_mem_map(void) > fdt_size_t size; > int i; > > - if (of_machine_is_compatible("apple,t8103")) > + if (of_machine_is_compatible("apple,t8103") || > + of_machine_is_compatible("apple,t8112")) > mem_map = t8103_mem_map; > else if (of_machine_is_compatible("apple,t6000")) > mem_map = t6000_mem_map; > -- > 2.35.1 > >