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 44F45C001DC for ; Wed, 19 Jul 2023 20:31:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 669858675B; Wed, 19 Jul 2023 22:30:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com 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=konsulko.com header.i=@konsulko.com header.b="MUr+QOik"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6BA988469F; Wed, 19 Jul 2023 22:30:56 +0200 (CEST) Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) (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 BC1148678A for ; Wed, 19 Jul 2023 22:30:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-57722942374so1308737b3.1 for ; Wed, 19 Jul 2023 13:30:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1689798652; x=1692390652; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=gSgcdPJQO1Pir+cjbYOF/CJ9M0vGH6cBMgY7r4eQ/8o=; b=MUr+QOikgF1g5QgMn8EgdXoTznMxd8l1AAB+OpSwD6BAtTeE6uF3F88kl1U5NgQHNU 9QOKOGygyvJyoEYDqQ2P3IQ6gOm5SH+im1BFveitNx4xpWoM9p38pcCMYCfBC4NAX/ni xiOBAdpJFHJ2TKmFUp536auUsdmqNP9Zp+VNY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689798652; x=1692390652; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gSgcdPJQO1Pir+cjbYOF/CJ9M0vGH6cBMgY7r4eQ/8o=; b=OlnJu7NeV7AVmfNwL4KsUseNgydSndGbu9l9IP1evKdMTYy8TpVANdJzL+8eEHpeZa u99glu5EFNsC1hblYPUiX5L0nptdoN7zljLL0qEVXZKVg/Bi7zGUBzghl1Nhg5nk5Awx bt9Xtbt/d9QWmg2gTJ4M32vhI3pLnOFvY4Z6uFjqBWSZhQQISygZifYAbu5HXOjFbdHH ZwJ3t1yNGEtAfAInboogOS+alIFjOGBH16blVItMiauOjZWIruT+OPYH2UH/B0qL0FkU jEOwRVSWFl28E8/8TKsQJ6I9yTLa1mLKR8jDXvthPeMxoHfzXx8fqk+XId+WI5m8nPXX Tlwg== X-Gm-Message-State: ABy/qLbn+saEPzmNlcJgkFvqWwwHUWKAdwhA3G3nHHWipUdszKcNaWfa TXNkSGaHhYcl38IqMdppDTeqdA== X-Google-Smtp-Source: APBJJlHeaaw7M0fNje3gULwtGOG+7JSMfU+2zYdLJRGYjtk1Gri5UW6noEd6GfG2GHIn73HzuaCd8w== X-Received: by 2002:a0d:f4c5:0:b0:577:2f3f:c712 with SMTP id d188-20020a0df4c5000000b005772f3fc712mr3850284ywf.40.1689798652456; Wed, 19 Jul 2023 13:30:52 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-db2e-065f-d044-b9a4.res6.spectrum.com. [2603:6081:7b00:6400:db2e:65f:d044:b9a4]) by smtp.gmail.com with ESMTPSA id h62-20020a816c41000000b00565cf40238csm1211810ywc.110.2023.07.19.13.30.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 13:30:51 -0700 (PDT) Date: Wed, 19 Jul 2023 16:30:50 -0400 From: Tom Rini To: christian.taedcke-oss@weidmueller.com Cc: u-boot@lists.denx.de, Christian Taedcke , Simon Glass , Michal Simek Subject: Re: [PATCH v4 2/2] event: Add fpga load event Message-ID: <20230719203050.GD1670569@bill-the-cat> References: <20230719134544.235585-1-christian.taedcke-oss@weidmueller.com> <20230719134544.235585-2-christian.taedcke-oss@weidmueller.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="irrCCI7kLZKoQTAS" Content-Disposition: inline In-Reply-To: <20230719134544.235585-2-christian.taedcke-oss@weidmueller.com> X-Clacks-Overhead: GNU Terry Pratchett 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.8 at phobos.denx.de X-Virus-Status: Clean --irrCCI7kLZKoQTAS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 19, 2023 at 03:45:44PM +0200, christian.taedcke-oss@weidmueller= =2Ecom wrote: > From: Christian Taedcke >=20 > This enables implementing custom logic after a bitstream was loaded > into the fpga. >=20 > Signed-off-by: Christian Taedcke > Reviewed-by: Simon Glass [snip] > diff --git a/include/event.h b/include/event.h > index fe41080fa6..77124c2e73 100644 > --- a/include/event.h > +++ b/include/event.h > @@ -31,6 +31,9 @@ enum event_t { > /* Init hooks */ > EVT_MISC_INIT_F, > =20 > + /* Fpga load hook */ > + EVT_FPGA_LOAD, > + > /* Device tree fixups before booting */ > EVT_FT_FIXUP, > =20 > @@ -59,6 +62,19 @@ union event_data { > struct udevice *dev; > } dm; > =20 > + /** > + * struct event_fpga_load - fpga load event > + * > + * @buf: The buffer that was loaded into the fpga > + * @bsize: The size of the buffer that was loaded into the fpga > + * @result: Result of the load operation > + */ > + struct event_fpga_load { > + const void *buf; > + size_t bsize; > + int result; > + } fpga_load; > + > /** > * struct event_ft_fixup - FDT fixup before booting > * Since here is where you're introducing a size_t to event.h, here is where you also need to add to event.h --=20 Tom --irrCCI7kLZKoQTAS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmS4R/oACgkQFHw5/5Y0 tyzRhQv+JzNOSw6e9Af5BZcRQJjBCb9HI8l37H7pSUP2pMZFiMwCNbTBCfTpoWNu YeE/6JJXHmeIZ2lZNUJ+EDaJkPrAhmlr8d1BvA7RmncUagQg2UF9aM+aVkS5cnwq mSU8l/hbDhv80vRG0iw0GxmYOBBCHFmJIRvz6JCGzUmaWQWiMb51CHTaC+Vf49/e wgSTRgErrwLdH4xFY9CNMo3YEugVe3YFFaSOoY/mm2isoer0puCDqzR4RtB2Ya7+ Zpr9i3R8wfiHPKJluzLuAk5POBOJ5vauRJ2bcJXFYMqzbCIofMrwbcO1HWcD5aDT qESLckqesEQ+tscTBWQXxa3pkI3hSlE/ZZF4bnid5yp3+L7iNNpEauWbOFSr6qqd sOTylZq/Firyd/qRAlEzcoGn3WB8aMAAv0dI3SO8HLkqVSnyttoLe0xw06Tdl7V2 fVd8eFsbawJYmDsM8fF0csQPNRXx4n6C08BWPM/9kyeFyhIC+N2Y2nIknnTvPHBr +dxad20R =HXLE -----END PGP SIGNATURE----- --irrCCI7kLZKoQTAS--