All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Delaunay <patrick.delaunay@st.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 4/5] stm32mp1: use new function led default state
Date: Mon, 23 Jul 2018 11:41:30 +0200	[thread overview]
Message-ID: <1532338891-6848-5-git-send-email-patrick.delaunay@st.com> (raw)
In-Reply-To: <1532338891-6848-1-git-send-email-patrick.delaunay@st.com>

Initialize the led with the default state defined in device tree.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

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..db8c805 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -22,5 +22,9 @@ int board_init(void)
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100;
 
+#ifdef CONFIG_LED
+	led_default_state();
+#endif /* CONFIG_LED */
+
 	return 0;
 }
-- 
2.7.4

  parent reply	other threads:[~2018-07-23  9:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-23  9:41 [U-Boot] [PATCH v2 0/5] dm: led: remove auto probe in binding function Patrick Delaunay
2018-07-23  9:41 ` [U-Boot] [PATCH v2 1/5] stm32mp1: add gpio led support Patrick Delaunay
2018-07-23  9:41 ` [U-Boot] [PATCH v2 2/5] Revert "dm: led: auto probe() LEDs with "default-state"" Patrick Delaunay
2018-07-23 23:47   ` Simon Glass
2018-07-24  7:52     ` Patrick DELAUNAY
2018-07-23  9:41 ` [U-Boot] [PATCH v2 3/5] dm: led: move default state support in led uclass Patrick Delaunay
2018-07-23  9:41 ` Patrick Delaunay [this message]
2018-07-23 23:47   ` [U-Boot] [PATCH v2 4/5] stm32mp1: use new function led default state Simon Glass
2018-07-23  9:41 ` [U-Boot] [PATCH v2 5/5] sandbox: led: use new function to configure " Patrick Delaunay
2018-07-23 23:47   ` Simon Glass

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=1532338891-6848-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.