From: Yinbo Zhu <yinbo.zhu@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 1/2] armv8: fsl-lsch3: add clock support for the second eSDHC
Date: Wed, 15 May 2019 18:07:38 +0800 [thread overview]
Message-ID: <20190515100739.3910-1-yinbo.zhu@nxp.com> (raw)
From: Yangbo Lu <yangbo.lu@nxp.com>
Layerscape began to use two eSDHC controllers, for example,
LS1028A. They are same IP block with same reference clock.
This patch is to add clock support for the second eSDHC.
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
---
Change in v4:
Update the Copyright
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c | 3 ++-
arch/arm/include/asm/arch-fsl-layerscape/clock.h | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c
index bc268e207c..0985778ff9 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/*
- * Copyright 2014-2015, Freescale Semiconductor, Inc.
+ * Copyright 2014-2015, 2018 Freescale Semiconductor, Inc.
*
* Derived from arch/power/cpu/mpc85xx/speed.c
*/
@@ -214,6 +214,7 @@ unsigned int mxc_get_clock(enum mxc_clock clk)
return get_i2c_freq(0);
#if defined(CONFIG_FSL_ESDHC)
case MXC_ESDHC_CLK:
+ case MXC_ESDHC2_CLK:
return get_sdhc_freq(0);
#endif
case MXC_DSPI_CLK:
diff --git a/arch/arm/include/asm/arch-fsl-layerscape/clock.h b/arch/arm/include/asm/arch-fsl-layerscape/clock.h
index cf058d22a9..c6e382b41b 100644
--- a/arch/arm/include/asm/arch-fsl-layerscape/clock.h
+++ b/arch/arm/include/asm/arch-fsl-layerscape/clock.h
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
- * Copyright 2015 Freescale Semiconductor, Inc.
+ * Copyright 2015, 2018 Freescale Semiconductor, Inc.
*
*/
@@ -14,6 +14,7 @@ enum mxc_clock {
MXC_BUS_CLK,
MXC_UART_CLK,
MXC_ESDHC_CLK,
+ MXC_ESDHC2_CLK,
MXC_I2C_CLK,
MXC_DSPI_CLK,
};
--
2.17.1
next reply other threads:[~2019-05-15 10:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-15 10:07 Yinbo Zhu [this message]
2019-05-15 10:07 ` [U-Boot] [PATCH v4 2/2] mmc: fsl_esdhc: fix probe issue without CONFIG_BLK enabled Yinbo Zhu
2019-05-22 17:35 ` Prabhakar Kushwaha
2019-05-22 17:32 ` [U-Boot] [PATCH v4 1/2] armv8: fsl-lsch3: add clock support for the second eSDHC Prabhakar Kushwaha
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=20190515100739.3910-1-yinbo.zhu@nxp.com \
--to=yinbo.zhu@nxp.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.