From mboxrd@z Thu Jan 1 00:00:00 1970 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 85FFDC433EF for ; Sat, 22 Jan 2022 01:41:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D9857838AE; Sat, 22 Jan 2022 02:41:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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; unprotected) header.d=chromium.org header.i=@chromium.org header.b="O6G+P1eg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E2DA58390E; Sat, 22 Jan 2022 02:41:09 +0100 (CET) Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D99F7839F5 for ; Sat, 22 Jan 2022 02:41:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-oi1-x22b.google.com with SMTP id bb37so16131023oib.1 for ; Fri, 21 Jan 2022 17:41:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lneFt4uoKGaf33c3Zn60aR804sKpNbM10xTJw4k8nMs=; b=O6G+P1egRyphHABBNp5NOXRQUZ6eObyl4UEb5yOlUrMYbeWM+wMIRgFDWB1v+tDDnZ wN5Fg/NuYMgspqIQ/9H2ADsd50YcGswDVVToXS7vjkC8mPxoGF6Zzv0YBPYAFqKQ4SZQ Yd/aTzwUcnOT8z5xpreSdFBQ3sunpgQm+wVhs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lneFt4uoKGaf33c3Zn60aR804sKpNbM10xTJw4k8nMs=; b=6fSQ4kjy3vZbIbHp8Cu138dKPN0Qw0oChBzwIAFbY7ygFIzTX8AjSGPuj24w5ebhu+ 5EGekrs1pKbYLLLPoYvME1+NWK5g5mUdsJJwwigTKCbIqDHXmB6K0y1lFi3KeayiGf8h HUPEKsGCVNuPNLHoEl8lG42om4dxnQ2EabxBJBTEDOQefF3oKCvloSWx+L4LxEn63FJo oGJhLJfUI8MCm+jlBLf1neXtuyBHvJZoivLmRh5+EZlIjCi+NrQGIE8ueXvKe6UlFbix MdkEYNv1v0zKH1KGxsjdyNIIFI6AYKypRCtS7ASA6KjA4XjAynumBqUlRiyVj2ZjYMsb ECKg== X-Gm-Message-State: AOAM530gS+H+LwLwea3yipNNgVYQk6F1Jb4wObWY5ltLBs4yM44f4z6I DKYdQ20TJrl2ALuSXmQEOs17DKe/HmQfQu1Qestn2g== X-Google-Smtp-Source: ABdhPJxTS1WisDMnf7wcPUeqhjPVwUWsIt3lykQ2wD04czj6LXTvDzrjCsT1TC6m8144RFQv7fR9nJiShPGAQVUk+f8= X-Received: by 2002:a05:6808:16a3:: with SMTP id bb35mr2677372oib.72.1642815665414; Fri, 21 Jan 2022 17:41:05 -0800 (PST) MIME-Version: 1.0 References: <20220114110438.58452-1-kettenis@openbsd.org> <20220114110438.58452-4-kettenis@openbsd.org> In-Reply-To: <20220114110438.58452-4-kettenis@openbsd.org> From: Simon Glass Date: Fri, 21 Jan 2022 18:40:14 -0700 Message-ID: Subject: Re: [PATCH 3/8] arm: apple: Add RTKit support To: Mark Kettenis Cc: U-Boot Mailing List , Jaehoon Chung , Tom Rini , sven@svenpeter.dev, marcan@marcan.st, Bin Meng Content-Type: text/plain; charset="UTF-8" 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 Hi Mark, On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote: > > Most Apple IOPs run a firmware that is based on what Apple calls > RTKit. RTKit implements a common mailbox protocol. This code > provides an implementation of the AP side of this protocol, > providing a function to initialize RTKit-based firmwares as well > as a function to do a clean shutdown of this firmware. > > Signed-off-by: Mark Kettenis > --- > arch/arm/include/asm/arch-apple/rtkit.h | 11 ++ > arch/arm/mach-apple/Makefile | 1 + > arch/arm/mach-apple/rtkit.c | 231 ++++++++++++++++++++++++ > 3 files changed, 243 insertions(+) > create mode 100644 arch/arm/include/asm/arch-apple/rtkit.h > create mode 100644 arch/arm/mach-apple/rtkit.c This should be a driver. Regards, Simon