From patchwork Mon Sep 14 08:01:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1363377 X-Patchwork-Delegate: sbabic@denx.de 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=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=uwjOQVdz; 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 4Bqf3Z3pf8z9sSP for ; Mon, 14 Sep 2020 18:02:34 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5CBB382316; Mon, 14 Sep 2020 10:01:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="uwjOQVdz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D4D1A82322; Mon, 14 Sep 2020 10:01:29 +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,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) (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 7482482304 for ; Mon, 14 Sep 2020 10:01:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=igor.opaniuk@gmail.com Received: by mail-lj1-x242.google.com with SMTP id u21so17798912ljl.6 for ; Mon, 14 Sep 2020 01:01:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HL9JdwhAAycBk5dGW6idvMuhkPp4V6B7//FElKEG2XA=; b=uwjOQVdzEbKjzSkYqY4dR+D6w8Sf7xKrJiYtYcYUN938JFnkBGS4FISzk9CGCYSZMs 2oAb4zREhNUk6JbRtQCSCAjuQyQSHNS7XkK+iZKLR6dRYqhgNC7TY5sHcYCIraCe5zs/ sAHBrq+R5MHxmyMrJorugLHNCnA8GA+1zkyR7jWs0pYjiUTMZADA+1xdOgigRS10Oz60 QAica0YSbOb88QA/Z3iloL5+BjtIME9iCd0tzQ3r2CL2GN77xGW9L3JJkifPI9umS75m gJaT++mLkqMkUF0BIf2hHsc7lFksN3Oan6nm6e8NG8T41FR5vB16aJRl+m3/hjc6lDe5 wJkQ== 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; bh=HL9JdwhAAycBk5dGW6idvMuhkPp4V6B7//FElKEG2XA=; b=jcWEu4u4BHoSDMU+eLWKjKeinzj8x9tGGDbzA702riAoM0aU7IJpPpEyHfzWLsm8Nq y9TU+bcQUlvbres4KnoQT30yomHPMn1mfW27vxwiKeZpKSQzmcBPjpgetSU/6nNuolCm qo1bLYcSpsujHHK/pGYPFginBNvZ1alD1a7c5t1SuaZraJSzxEDd2Nba7qWvwikZbeqf Jts+q1b9nlEtaVI8QmC9VYPtyx2S6VNsrTXQWd1NrzpzYC0eigtoDOHemLZXFK9qP7v+ QIIjwBG9k2qQV+wsxxgpZVNSiAcHMYEMte/34ZqAANpHa0sjxDsMjIFov4bXUGGYomqA 5aRA== X-Gm-Message-State: AOAM530Gtj7Kr/ls+0beMW3NpUrdX+lxwpdHF15CLlXrH7WGxJDSgFGB /5rTrI2DYESvTn9hhn3E1lPe1YpxMgI= X-Google-Smtp-Source: ABdhPJzYgMNbvvhfGGc0jVDjByVSYpWNSWh7KapfFAMRUva8dMje/6n0t3MSJ7/HEhJnpA2qJqbjow== X-Received: by 2002:a2e:8993:: with SMTP id c19mr5025453lji.264.1600070485478; Mon, 14 Sep 2020 01:01:25 -0700 (PDT) Received: from localhost ([194.44.101.144]) by smtp.gmail.com with ESMTPSA id k10sm3223297lfb.302.2020.09.14.01.01.24 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Sep 2020 01:01:24 -0700 (PDT) From: Igor Opaniuk To: u-boot@lists.denx.de Cc: Max Krummenacher , Oleksandr Suvorov , Stefano Babic , Stefan Agner , Marcel Ziswiler , Philippe Schenker , Igor Opaniuk Subject: [RESEND PATCH v1 4/9] colibri_imx7: wrap video specific funcs with ifdefs Date: Mon, 14 Sep 2020 11:01:07 +0300 Message-Id: <20200914080112.16665-5-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200914080112.16665-1-igor.opaniuk@gmail.com> References: <20200914080112.16665-1-igor.opaniuk@gmail.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.3 at phobos.denx.de X-Virus-Status: Clean From: Igor Opaniuk Wrap video specific functionality with ifdefs. Fixes: 195011b24d("colibri-imx7: fix splash logo drawing") Signed-off-by: Igor Opaniuk --- board/toradex/colibri_imx7/colibri_imx7.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/toradex/colibri_imx7/colibri_imx7.c b/board/toradex/colibri_imx7/colibri_imx7.c index b087cb0dc7..8afe1bfd5e 100644 --- a/board/toradex/colibri_imx7/colibri_imx7.c +++ b/board/toradex/colibri_imx7/colibri_imx7.c @@ -133,8 +133,10 @@ static int setup_lcd(void) */ void board_preboot_os(void) { +#ifdef CONFIG_DM_VIDEO gpio_direction_output(GPIO_PWM_A, 1); gpio_direction_output(GPIO_BL_ON, 0); +#endif } static void setup_iomux_uart(void)