From patchwork Mon May 25 01:48:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1297049 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=b/excENg; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49Vg702Y6Mz9sPF for ; Mon, 25 May 2020 11:51:24 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 15F208168A; Mon, 25 May 2020 03:50:04 +0200 (CEST) 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="b/excENg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 96FC681521; Mon, 25 May 2020 03:49:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) (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 315E2812ED for ; Mon, 25 May 2020 03:49:17 +0200 (CEST) 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@chromium.org Received: by mail-il1-x143.google.com with SMTP id c20so16089272ilk.6 for ; Sun, 24 May 2020 18:49:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DIZR+ERXAY2/b5I+i4FHjz3UJFlivEuIH+N+pGE01+8=; b=b/excENgRBopJOB10cOM7Yd4e0EdMEvzaES+WThoMTFM1xQ0TA2HN3d2WGFP0r5VoZ auYiiJn+ZLzAJ55feSHy28ud1HLtBNno5beSsk3cNGriUsA35kff3Q0zCT6k5Cpu+V8/ fFD0/qCD2hOi6zd+V2qkRxI1NwPLG5OyeTH5E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DIZR+ERXAY2/b5I+i4FHjz3UJFlivEuIH+N+pGE01+8=; b=p/LwGtXFbjY5AKLwacHxBDMZOcWdvF+s3DXW4XfqX821Xg9iDgSvot+X1cFW/pRqlR RHAqZDeyUUmtspdTRs2rtvTPvySP8civxtbYTq2xQVMhADLaV3jOusc4jfrmZWOhsHcF 6okm+omuNdtRli5mYVXrwxJWMPwivAdjaemZizJwSW3V7xLlZm8TpCgQa9t+SH9JLef5 D5iTw2Tuex8OnBdiMeekqcFyxcLNGN0TaphTBOsVH+S2nfdJlLfzseiUHh2DiRAusXdv vgHIomQ9wTD3szcL8oo9KDQWIDzNi2Pi81PjCludCDGcXmbq/gdrM4BKwCr5mAHnc9UK JPSA== X-Gm-Message-State: AOAM530SOk87aKl0MUvar5A5h3AI+YG8q97RA7smvcL+PmL+bNkk5NLq DiUERsLmMahGSEa9RlI06SLDPXB1isKr7Q== X-Google-Smtp-Source: ABdhPJyAqkTUsDNmqa8qdTuiLWfaP4xsrLMP7Ie0iZjlp6efd3YuDEjeaPO2p0Ai7IixK+g6UVuFsg== X-Received: by 2002:a92:c7a4:: with SMTP id f4mr22789455ilk.44.1590371355991; Sun, 24 May 2020 18:49:15 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id s7sm6822965ioc.37.2020.05.24.18.49.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 May 2020 18:49:15 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Simon Glass , Anatolij Gustschin Subject: [PATCH v2 10/26] video: Set up the copy framebuffer when enabled Date: Sun, 24 May 2020 19:48:47 -0600 Message-Id: <20200524194852.v2.10.I606e8e25387b8d82547def3f4465ae62d1685f84@changeid> X-Mailer: git-send-email 2.27.0.rc0.183.gde8f92d652-goog In-Reply-To: <20200525014904.115621-1-sjg@chromium.org> References: <20200525014904.115621-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.102.2 at phobos.denx.de X-Virus-Status: Clean This framebuffer is separately mapped. Update the video post-probe function to set this up. Signed-off-by: Simon Glass Reviewed-by: Anatolij Gustschin --- Changes in v2: None drivers/video/video-uclass.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 9fbaa8db10..0c97377ea9 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -292,6 +292,9 @@ static int video_post_probe(struct udevice *dev) priv->fb_size = priv->line_length * priv->ysize; + if (IS_ENABLED(CONFIG_VIDEO_COPY) && plat->copy_base) + priv->copy_fb = map_sysmem(plat->copy_base, plat->size); + /* Set up colors */ video_set_default_colors(dev, false);