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 8F46FC7EE29 for ; Fri, 9 Jun 2023 15:39:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CB4CB857D0; Fri, 9 Jun 2023 17:39:15 +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="VRd23xoL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id ADBD085E73; Fri, 9 Jun 2023 17:39:13 +0200 (CEST) Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) (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 BDC5B857D0 for ; Fri, 9 Jun 2023 17:39:10 +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-x112b.google.com with SMTP id 00721157ae682-565c3aa9e82so18688297b3.2 for ; Fri, 09 Jun 2023 08:39:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1686325150; x=1688917150; 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=G0ZojZ2xyd+MnFZ6eEU5ykvxOgyrXOD+2MoqvcF6l5c=; b=VRd23xoLzDxkKl7UM862TgUuI9xSon7iwxLGpayXcQZ7ZUw5MTpF7/ACxllgjAlaM+ DGuriwB/mzh+nUKEpUynKYYjAG0cyYNR9doWrGtto9PorVCiH+iU1RO6f7WOeAiUHf8y pvqBrYY+kx8yQQwRqAbtdjZ4VvDBmlMs4hLGU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686325150; x=1688917150; 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=G0ZojZ2xyd+MnFZ6eEU5ykvxOgyrXOD+2MoqvcF6l5c=; b=A79JaEWAZTcZatJ3vEHlKiZZWM08Xvpgli6di0Vj9CxCEgnhnYMVNcRdSTQb5+U8id YajtXzNvJnM72z3Te6C7VpPRyMIB8335SfsONhE4aROP9QI5Qdeh6TWPNUZhSwR7l9yw fgxq4bvaAHGZvB2tPFHCVeMdG+jgo+/bzZSlOKgJKy4hUL2ssQqTqsnYmjEOcstbHza0 WYdGJYAFSwgaETQskk9AHwLnAm32TDVeD4MgTPrQDjsRlU4j/MTAg5cpKuyT9PF7giDS HrwAN2iZT+1fDVO+6lg0C4EmmvjyhmZ6Wwk8kFiLgzLqJnJphHqkmcEEYIo/TCuO9nSR F9wg== X-Gm-Message-State: AC+VfDw2wVBxE+7DE+8yRqHbum9Hn9oYlgS4ykXPNtmraMvGpE+Yx+Bb v+EgARjXqMjPz6x24zQ8RP1wPA== X-Google-Smtp-Source: ACHHUZ6QaW7wn7ZpXJYqu2TkWOOxnk30YvXwvSGC1q4LDYejVOYvZL6Lb26ac1Jx4xBaSBXEW1yH5Q== X-Received: by 2002:a0d:eac9:0:b0:569:e868:fd7a with SMTP id t192-20020a0deac9000000b00569e868fd7amr1597836ywe.41.1686325150354; Fri, 09 Jun 2023 08:39:10 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-2602-5240-2757-6aac.res6.spectrum.com. [2603:6081:7b00:6400:2602:5240:2757:6aac]) by smtp.gmail.com with ESMTPSA id e130-20020a816988000000b00545b02d4af5sm675182ywc.48.2023.06.09.08.39.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 08:39:10 -0700 (PDT) Date: Fri, 9 Jun 2023 11:39:08 -0400 From: Tom Rini To: Nikhil M Jain , Anatolij Gustschin Cc: u-boot@lists.denx.de, devarsht@ti.com, vigneshr@ti.com, nsekhar@ti.com, sjg@chromium.org Subject: Re: [PATCH V2 4/8] include: video: Reserve video using blob Message-ID: <20230609153908.GU1871110@bill-the-cat> References: <20230609115122.14791-1-n-jain1@ti.com> <20230609115122.14791-5-n-jain1@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NqSBzgnzCgsraQiA" Content-Disposition: inline In-Reply-To: <20230609115122.14791-5-n-jain1@ti.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 --NqSBzgnzCgsraQiA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 09, 2023 at 05:21:18PM +0530, Nikhil M Jain wrote: > Add method to reserve video framebuffer information using blob, > recieved from previous stage. >=20 > Signed-off-by: Nikhil M Jain > --- > V2: > - Remove #if CONFIG_IS_ENABLED(VIDEO) in video_reserve_from_blob. >=20 > drivers/video/video-uclass.c | 11 +++++++++++ > include/video.h | 9 +++++++++ > 2 files changed, 20 insertions(+) >=20 > diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c > index 8396bdfb11..68ce681bb9 100644 > --- a/drivers/video/video-uclass.c > +++ b/drivers/video/video-uclass.c > @@ -142,6 +142,17 @@ int video_reserve(ulong *addrp) > return 0; > } > =20 > +int video_reserve_from_bloblist(struct video_handoff *ho) > +{ > + gd->video_bottom =3D ho->fb; > + gd->fb_base =3D ho->fb; > + gd->video_top =3D ho->fb + ho->size; > + debug("Reserving %luk for video using blob at: %08x\n", > + ((unsigned long)ho->size) >> 10, (u32)ho->fb); > + > + return 0; > +} > + > int video_fill(struct udevice *dev, u32 colour) > { > struct video_priv *priv =3D dev_get_uclass_priv(dev); > diff --git a/include/video.h b/include/video.h > index 18ed159b8d..5f3010d641 100644 > --- a/include/video.h > +++ b/include/video.h > @@ -389,4 +389,13 @@ int bmp_display(ulong addr, int x, int y); > */ > int bmp_info(ulong addr); > =20 > +/* > + * video_reserve_from_bloblist()- Reserve frame-buffer memory for video = devices > + * using blobs. > + * > + * @ho: video information passed from SPL > + * Returns: 0 (always) > + */ > +int video_reserve_from_bloblist(struct video_handoff *ho); > + > #endif Anatolij any thoughts? --=20 Tom --NqSBzgnzCgsraQiA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmSDR5wACgkQFHw5/5Y0 tyyUmgv+IpHAorI+HLvhTzFScAr55ELmmtD294zBmBlRuTqSPKHMvbucT5WHp15f oULbVBhFazVzpAf/sXavH1kRXjWn0OmUrpI89n+WqthBG0F789eAlf5DkA43pTcU gF2kg3B5r1BrIw34iVBDfQ6lSvRpbMHKIZ0dl2ZsRixvliMhvV4D/wCSBkZtWSzN Rz5mKWG/3bp3qODXKRFtUA/4AJFblQN06JNGbf7z2O0ru/V93EPH7Wr4hLGIfyjv Q0X1laS4qnoKurcjFRv3LrDDbprmb2yMIBexRTt0v/qPZL3DqmrWJGexylqfW0Co +/TUq+nAf5KDybHz2fwQDytreXuxUKifBJIxrCFrO8zafue45iToRwuzI7QmR7XY XCYalf4Bv88gUWXcid0JhthoHaHphNiUxOuFq90F/kTQL0bBjEozaBuGUMnJ710z o1EF783Jh2nDjfEwAC4VT8Z+UQ4ouxjSkQ+vtmXEM5wL2LKObgU0TwCybDij7ek1 9m3ySYd2 =aiw2 -----END PGP SIGNATURE----- --NqSBzgnzCgsraQiA--