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 BC3DDE67814 for ; Sat, 2 Nov 2024 22:21:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4CEFE892F4; Sat, 2 Nov 2024 23:21:20 +0100 (CET) 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="hnp6xFAu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 31738892FB; Sat, 2 Nov 2024 23:21:19 +0100 (CET) Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) (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 0D5E1892F4 for ; Sat, 2 Nov 2024 23:21:17 +0100 (CET) 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-pl1-x630.google.com with SMTP id d9443c01a7336-20c7edf2872so31593645ad.1 for ; Sat, 02 Nov 2024 15:21:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1730586075; x=1731190875; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=W6lPGYgtc+6jQZ9TUbI9+VQGxMBaV4EQW1fljF9RDRo=; b=hnp6xFAuhBDJOsghr9murBjkQ8+VppQ1Ri6IAFH6W3wP1wrv0t/+Lh6cb3d9jCzwl4 XILpEUXV9s7ID36scD7e0CuERcwASPHPd50WWdTcAS4Zszq3YYUDLekWxNUJOcRijkeM Tf5WMzY5IDnkJFVsPF9Kkzh5rNBu6VxyK+MB0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730586075; x=1731190875; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W6lPGYgtc+6jQZ9TUbI9+VQGxMBaV4EQW1fljF9RDRo=; b=rZu14bj8G6+q2/HuQAeP2IYyK3NoqQqON1NSHOeRUlMWJP5Hyaegz4DcIKdw5fPRI3 FDa3UcCdcYZf2PSh011wkRu4NhOg/X8bcMxurpws6lDbb/QcZWXfwpM42ESQ+PKahOlp +Mg/G97NIW9hjcSp8+EGiTb1q/Sqf3zdS4IPusby7JCtLmY1+HHB4ArJFAktB53HoFdp EOmD7cxUgFzE1OY0SDaxclJM/3IsC8qgeIQJ+iv6mH6fOJQFw80qEQ4LXoxLOJpYEG3v xP5F5zDnGW10fFhHuLNEetSMeXMkdI+jTBENAoW8ISR0XkA0mtOivgiXQx7AKKPLU0+9 ZueA== X-Gm-Message-State: AOJu0YwXpWFRgOZuzFn3hCx7nH05TVOgZB4cc/FM9T6axkwE4vd1ZgNR L94JVhVbr33C+uWGDCq87Kw0afmwKeMEKI3Cs8Oa66IEdDVtgrwL6HlTwWhh/m/sQWIiKTo4C8N +2w== X-Google-Smtp-Source: AGHT+IHSTpaXrN2fufcX4TooVer4jNyqL+wr5u1YM7hFaVuQee93ERt4+XUlEStD52Zr5c/cuAsl8Q== X-Received: by 2002:a17:903:2cc:b0:20b:a409:329 with SMTP id d9443c01a7336-2111938ae9bmr110811605ad.5.1730586074953; Sat, 02 Nov 2024 15:21:14 -0700 (PDT) Received: from chromium.org ([205.220.129.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7ee45a0081esm4386286a12.59.2024.11.02.15.21.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Nov 2024 15:21:13 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Kamil Lulko , Patrice Chotard , Patrick Delaunay , uboot-stm32@st-md-mailman.stormreply.com Subject: [PATCH v3 08/25] st: stm32f429: Drop old LED code Date: Sat, 2 Nov 2024 16:17:06 -0600 Message-ID: <20241102221737.547938-9-sjg@chromium.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241102221737.547938-1-sjg@chromium.org> References: <20241102221737.547938-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This predates the LED framework, so drop it. Signed-off-by: Simon Glass --- (no changes since v1) board/st/stm32f429-discovery/Makefile | 1 - board/st/stm32f429-discovery/led.c | 39 --------------------------- 2 files changed, 40 deletions(-) delete mode 100644 board/st/stm32f429-discovery/led.c diff --git a/board/st/stm32f429-discovery/Makefile b/board/st/stm32f429-discovery/Makefile index 6b02c0fddec..233eafdad3d 100644 --- a/board/st/stm32f429-discovery/Makefile +++ b/board/st/stm32f429-discovery/Makefile @@ -7,4 +7,3 @@ # Kamil Lulko, obj-y := stm32f429-discovery.o -obj-y += led.o diff --git a/board/st/stm32f429-discovery/led.c b/board/st/stm32f429-discovery/led.c deleted file mode 100644 index 4b8038341b9..00000000000 --- a/board/st/stm32f429-discovery/led.c +++ /dev/null @@ -1,39 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * (C) Copyright 2015 - * Kamil Lulko, - */ - -#include -#include - -#define RED_LED 110 -#define GREEN_LED 109 - -void coloured_LED_init(void) -{ - gpio_request(RED_LED, "red led"); - gpio_direction_output(RED_LED, 0); - gpio_request(GREEN_LED, "green led"); - gpio_direction_output(GREEN_LED, 0); -} - -void red_led_off(void) -{ - gpio_set_value(RED_LED, 0); -} - -void green_led_off(void) -{ - gpio_set_value(GREEN_LED, 0); -} - -void red_led_on(void) -{ - gpio_set_value(RED_LED, 1); -} - -void green_led_on(void) -{ - gpio_set_value(GREEN_LED, 1); -} -- 2.43.0