From patchwork Thu Oct 10 14:11:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1174582 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=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46ptRJ09MQz9sPJ for ; Fri, 11 Oct 2019 01:15:55 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id B8E02C21EEF; Thu, 10 Oct 2019 14:12:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 2D451C21EEF; Thu, 10 Oct 2019 14:12:46 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C2AC1C21DD4; Thu, 10 Oct 2019 14:11:54 +0000 (UTC) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by lists.denx.de (Postfix) with ESMTPS id 7DF16C21DE8 for ; Thu, 10 Oct 2019 14:11:52 +0000 (UTC) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46ptLc281Sz1rNRK; Thu, 10 Oct 2019 16:11:52 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46ptLc11nQz1qqkH; Thu, 10 Oct 2019 16:11:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id dkNpA425cf5m; Thu, 10 Oct 2019 16:11:51 +0200 (CEST) X-Auth-Info: XyREQ17cdMtYcu8xzZxMzoG1euofdF8k5J57xzrAwxg= Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 10 Oct 2019 16:11:50 +0200 (CEST) From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Simon Glass , Tom Rini , u-boot@lists.denx.de, Peng Fan Date: Thu, 10 Oct 2019 16:11:26 +0200 Message-Id: <20191010141130.29568-6-lukma@denx.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191010141130.29568-1-lukma@denx.de> References: <20191010141130.29568-1-lukma@denx.de> MIME-Version: 1.0 Cc: Joe Hershberger , Jason Liu Subject: [U-Boot] [PATCH v3 5/9] imx: tpc70: led: Enable LED default state X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" This change sets the default state of LEDs on TPC70. Signed-off-by: Lukasz Majewski --- Changes in v3: None board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c index 144d2c58c4..7876a63068 100644 --- a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c +++ b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c @@ -28,6 +28,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -291,6 +292,9 @@ int board_late_init(void) add_board_boot_modes(board_boot_modes); #endif + if (IS_ENABLED(CONFIG_LED)) + led_default_state(); + env_set("boardname", "kp-tpc"); env_set("boardsoc", "imx6q"); return 0;