From: Patrick Delaunay <patrick.delaunay@st.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 4/5] stm32mp1: use new function led default state
Date: Tue, 24 Jul 2018 10:58:31 +0200 [thread overview]
Message-ID: <1532422712-15107-5-git-send-email-patrick.delaunay@st.com> (raw)
In-Reply-To: <1532422712-15107-1-git-send-email-patrick.delaunay@st.com>
Initialize the led with the default state defined in device tree.
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---
Changes in v3:
- minor update after Simon review
- include led.h to avoid compilation warning on stm32mp1 board
Changes in v2: None
board/st/stm32mp1/stm32mp1.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index cc39fa6..bfc8ab6 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -4,6 +4,7 @@
*/
#include <config.h>
#include <common.h>
+#include <led.h>
#include <asm/arch/stm32.h>
/*
@@ -22,5 +23,8 @@ int board_init(void)
/* address of boot parameters */
gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100;
+ if (IS_ENABLED(CONFIG_LED))
+ led_default_state();
+
return 0;
}
--
2.7.4
next prev parent reply other threads:[~2018-07-24 8:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-24 8:58 [U-Boot] [PATCH v3 0/5] dm: led: remove auto probe in binding function Patrick Delaunay
2018-07-24 8:58 ` [U-Boot] [PATCH v3 1/5] stm32mp1: add gpio led support Patrick Delaunay
2018-07-24 8:58 ` [U-Boot] [PATCH v3 2/5] Revert "dm: led: auto probe() LEDs with "default-state"" Patrick Delaunay
2018-07-25 2:45 ` Simon Glass
2018-07-24 8:58 ` [U-Boot] [PATCH v3 3/5] dm: led: move default state support in led uclass Patrick Delaunay
2018-07-26 10:39 ` Patrick Brünn
2018-07-27 14:13 ` Patrick DELAUNAY
2018-07-24 8:58 ` Patrick Delaunay [this message]
2018-07-24 8:58 ` [U-Boot] [PATCH v3 5/5] sandbox: led: use new function to configure default state Patrick Delaunay
2018-07-26 10:45 ` Patrick Brünn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1532422712-15107-5-git-send-email-patrick.delaunay@st.com \
--to=patrick.delaunay@st.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.