From patchwork Wed Jun 26 08:26:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrice CHOTARD X-Patchwork-Id: 1122586 X-Patchwork-Delegate: patrick.delaunay73@gmail.com 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=st.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=st.com header.i=@st.com header.b="04go8yKS"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45Ybjs1WSrz9s3Z for ; Wed, 26 Jun 2019 18:27:13 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id D01DCC21DA2; Wed, 26 Jun 2019 08:27:10 +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=T_DKIM_INVALID 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 04A02C21C50; Wed, 26 Jun 2019 08:27:09 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B1781C21C3F; Wed, 26 Jun 2019 08:27:07 +0000 (UTC) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [62.209.51.94]) by lists.denx.de (Postfix) with ESMTPS id 616D5C21C29 for ; Wed, 26 Jun 2019 08:27:07 +0000 (UTC) Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5Q8R5hZ032153; Wed, 26 Jun 2019 10:27:05 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=txo/wdggwlmX8BurlzY+xilVv5y8k1BWGHPdH2u6ulg=; b=04go8yKS+hfe+q7b25pT4hQg40IUoyURihYPvRC7BxnD5upwIQl+zc7psSEq7mvPORkL /OTg33W9OUBo3kSND226PbvIxPwiOZDrT+Ew70Xba6eo4iCnPWSCaEffkc1wD1gqf2lq BJPqUsjv8k9O+FO6iY9q0Ucr0FuiYzEhzZ5DmQ1ERV1iP0rTkRc3WhQAz3wX0LprZv4C E6v2jyStpDohDwpd0UK2YJYsjvJlBsECV0uoy/5hVo/dUIf6oRxhClnbINv5z7AVW10d bBz1M5YX3Wj1oglIE5seqFu0h0ew0xhq0XpaxRnan0/0SJCT5DvtApz3N4+dnFhgJIL4 rg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2tb1f3ts5f-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 26 Jun 2019 10:27:05 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0A89231; Wed, 26 Jun 2019 08:26:53 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag6node3.st.com [10.75.127.18]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E27651975; Wed, 26 Jun 2019 08:26:52 +0000 (GMT) Received: from localhost (10.75.127.47) by SFHDAG6NODE3.st.com (10.75.127.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 26 Jun 2019 10:26:52 +0200 From: Patrice Chotard To: Date: Wed, 26 Jun 2019 10:26:41 +0200 Message-ID: <20190626082641.13869-1-patrice.chotard@st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG5NODE1.st.com (10.75.127.13) To SFHDAG6NODE3.st.com (10.75.127.18) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-26_04:, , signatures=0 Cc: U-Boot STM32 Subject: [U-Boot] [PATCH] board: st: add missing gpio_request() for stm32f429-discovery 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 fixes the following error message: U-Boot 2019.07-rc4-00103-g5eea874b5e (Jun 25 2019 - 15:09:31 +0200) DRAM: 8 MiB gpio@40021800: dir_output: error: gpio GPIOG14 not reserved gpio@40021800: dir_output: error: gpio GPIOG13 not reserved gpio@40021800: set_value: error: gpio GPIOG14 not reserved Flash: 2 MiB .... Signed-off-by: Patrice Chotard --- board/st/stm32f429-discovery/led.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/st/stm32f429-discovery/led.c b/board/st/stm32f429-discovery/led.c index 8320ad4fac..ae6df78f56 100644 --- a/board/st/stm32f429-discovery/led.c +++ b/board/st/stm32f429-discovery/led.c @@ -9,7 +9,9 @@ void coloured_LED_init(void) { + gpio_request(CONFIG_RED_LED, "red led"); gpio_direction_output(CONFIG_RED_LED, 0); + gpio_request(CONFIG_GREEN_LED, "green led"); gpio_direction_output(CONFIG_GREEN_LED, 0); }