All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vikas Manocha <vikas.manocha@st.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 05/10] stm32f7: clk: remove usart1 clock enable from board init
Date: Sun, 12 Feb 2017 10:25:48 -0800	[thread overview]
Message-ID: <1486923956-27330-6-git-send-email-vikas.manocha@st.com> (raw)
In-Reply-To: <1486923956-27330-1-git-send-email-vikas.manocha@st.com>

Before clock driver availability it was required to enable usart1 clock
for serial init but now with clock driver is taking care of usart1 clock.

Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
---

Changed in v3: None
Changed in v2: None

 board/st/stm32f746-disco/stm32f746-disco.c | 1 -
 drivers/clk/clk_stm32f7.c                  | 3 ---
 2 files changed, 4 deletions(-)

diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c
index 72212f4..ee1deb5 100644
--- a/board/st/stm32f746-disco/stm32f746-disco.c
+++ b/board/st/stm32f746-disco/stm32f746-disco.c
@@ -380,7 +380,6 @@ int board_early_init_f(void)
 	int res;
 
 	res = uart_setup_gpio();
-	clock_setup(USART1_CLOCK_CFG);
 	if (res)
 		return res;
 
diff --git a/drivers/clk/clk_stm32f7.c b/drivers/clk/clk_stm32f7.c
index 4c5388a..0d86395 100644
--- a/drivers/clk/clk_stm32f7.c
+++ b/drivers/clk/clk_stm32f7.c
@@ -228,9 +228,6 @@ static int stm32_clk_enable(struct clk *clk)
 void clock_setup(int peripheral)
 {
 	switch (peripheral) {
-	case USART1_CLOCK_CFG:
-		setbits_le32(&STM32_RCC->apb2enr, RCC_APB2ENR_USART1EN);
-		break;
 	case GPIO_A_CLOCK_CFG:
 		setbits_le32(&STM32_RCC->ahb1enr, RCC_AHB1ENR_GPIO_A_EN);
 		break;
-- 
1.9.1

  parent reply	other threads:[~2017-02-12 18:25 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-12 18:25 [U-Boot] [PATCH v3 00/10] stm32f7: add clock and pin control drivers Vikas Manocha
2017-02-12 18:25 ` [U-Boot] [PATCH v3 01/10] serial: stm32f7: add device tree support Vikas Manocha
2017-03-18  0:15   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-02-12 18:25 ` [U-Boot] [PATCH v3 02/10] clk: stm32f7: add clock driver for stm32f7 family Vikas Manocha
2017-03-18  0:15   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-02-12 18:25 ` [U-Boot] [PATCH v3 03/10] stm32f7: serial: use clock driver to enable clock Vikas Manocha
2017-03-18  0:16   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-02-12 18:25 ` [U-Boot] [PATCH v3 04/10] ARM: DT: stm32f7: add usart1 & clock device tree nodes Vikas Manocha
2017-03-18  0:16   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-02-12 18:25 ` Vikas Manocha [this message]
2017-03-18  0:16   ` [U-Boot] [U-Boot, v3, 05/10] stm32f7: clk: remove usart1 clock enable from board init Tom Rini
2017-02-12 18:25 ` [U-Boot] [PATCH v3 06/10] PINCTRL: stm32f7: add pin control driver Vikas Manocha
2017-03-18  0:16   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-02-12 18:25 ` [U-Boot] [PATCH v3 07/10] ARM: DT: stm32f7: add pin control device node Vikas Manocha
2017-03-18  0:16   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-02-12 18:25 ` [U-Boot] [PATCH v3 08/10] ARM: DT: stm32f7: add pin control node for serial port pins Vikas Manocha
2017-03-18  0:16   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-02-12 18:25 ` [U-Boot] [PATCH v3 09/10] ARM: DT: stm32f7: add ethernet pin contol node Vikas Manocha
2017-03-18  0:16   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-02-12 18:25 ` [U-Boot] [PATCH v3 10/10] ARM: DT: stm32f7: add qspi " Vikas Manocha
2017-03-18  0:16   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-02-27 17:33 ` [U-Boot] [PATCH v3 00/10] stm32f7: add clock and pin control drivers Vikas MANOCHA
2017-03-01 15:38   ` Tom Rini
2017-03-09 15:36     ` Vikas MANOCHA
2017-03-09 16:17       ` Tom Rini
2017-03-09 17:04         ` Vikas MANOCHA
2017-03-17 19:14     ` Vikas MANOCHA
2017-03-17 19:41       ` Tom Rini
2017-03-17 21:17         ` Vikas MANOCHA

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=1486923956-27330-6-git-send-email-vikas.manocha@st.com \
    --to=vikas.manocha@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.