From: See, Chin Liang <chin.liang.see@intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 04/12] arm: socfpga: clkmgr: Separate the Clock Manager for Stratix 10
Date: Mon, 17 Oct 2016 13:32:51 +0000 [thread overview]
Message-ID: <1476711170.3076.6.camel@intel.com> (raw)
In-Reply-To: <bab035fe-235e-f4f2-ce17-ff490e907572@denx.de>
On Min, 2016-10-16 at 17:33 +0200, Marek Vasut wrote:
> On 10/13/2016 10:33 AM, Chin Liang See wrote:
> >
> > Separate the Clock Manager to support both GEN5 SoC and
> > Stratix 10 SoC.
> >
> > Signed-off-by: Chin Liang See <clsee@altera.com>
> > Cc: Marek Vasut <marex@denx.de>
> > Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
> > Cc: Ley Foon Tan <lftan@altera.com>
> > Cc: Tien Fong Chee <tfchee@altera.com>
> > ---
> > ?arch/arm/mach-socfpga/clock_manager.c | 8 ++++++++
> > ?1 file changed, 8 insertions(+)
> >
> > diff --git a/arch/arm/mach-socfpga/clock_manager.c b/arch/arm/mach-
> > socfpga/clock_manager.c
> > index aa71636..0d67b3c 100644
> > --- a/arch/arm/mach-socfpga/clock_manager.c
> > +++ b/arch/arm/mach-socfpga/clock_manager.c
> > @@ -10,6 +10,7 @@
> >
> > ?DECLARE_GLOBAL_DATA_PTR;
> >
> > +#if defined(CONFIG_TARGET_SOCFPGA_GEN5)
> > ?static const struct socfpga_clock_manager *clock_manager_base =
> > ??????(struct socfpga_clock_manager *)SOCFPGA_CLKMGR_ADDRESS;
> >
> > @@ -446,9 +447,11 @@ unsigned int cm_get_l4_sp_clk_hz(void)
> >
> > ??????return clock;
> > ?}
> > +#endif /* CONFIG_TARGET_SOCFPGA_GEN5 */
> >
> > ?unsigned int cm_get_mmc_controller_clk_hz(void)
> > ?{
> > +#if defined(CONFIG_TARGET_SOCFPGA_GEN5)
> > ??????uint32_t reg, clock = 0;
> >
> > ??????/* identify the source of MMC clock */
> > @@ -475,8 +478,12 @@ unsigned int
> > cm_get_mmc_controller_clk_hz(void)
> > ??????/* further divide by 4 as we have fixed divider at wrapper */
> > ??????clock /= 4;
> > ??????return clock;
> > +#elif defined(CONFIG_TARGET_SOCFPGA_STRATIX10)
> > +?????return 25000000;
> Is this always gonna be the case or is this S10VP specific ?
>
> >
> > +#endif /* CONFIG_TARGET_SOCFPGA_GEN5 */
> > ?}
> >
> > +#if defined(CONFIG_TARGET_SOCFPGA_GEN5)
> > ?unsigned int cm_get_qspi_controller_clk_hz(void)
> > ?{
> > ??????uint32_t reg, clock = 0;
> > @@ -556,3 +563,4 @@ U_BOOT_CMD(
> > ??????"display clocks",
> > ??????""
> Why does the clock display not work on S10 ? Are some functions
> missing?
Not for SOCVP. But will be added in later stage when testing against
emulation
>
> Maybe we should split the clock manager into common part and then
> gen5
> and gen10 specific parts ?
Ok, we can do that as initially we were worried too many files created
within mach-socfpga.
Thanks
Chin Liang
>
> >
> > ?);
> > +#endif /* CONFIG_TARGET_SOCFPGA_GEN5 */
> >
>
> --
> Best regards,
> Marek Vasut
>
> ________________________________
>
> Confidentiality Notice.
> This message may contain information that is confidential or
> otherwise protected from disclosure. If you are not the intended
> recipient, you are hereby notified that any use, disclosure,
> dissemination, distribution, or copying of this message, or any
> attachments, is strictly prohibited. If you have received this
> message in error, please advise the sender by reply e-mail, and
> delete the message and any attachments. Thank you.
next prev parent reply other threads:[~2016-10-17 13:32 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-13 8:32 [U-Boot] [PATCH v3 00/12] Add support for Stratix 10 SoC Chin Liang See
2016-10-13 8:32 ` [U-Boot] [PATCH v3 01/12] arm: socfpga: stratix10: Add SOCFPGA Stratix10 base address Chin Liang See
2016-10-16 15:31 ` Marek Vasut
2016-10-17 13:26 ` See, Chin Liang
2016-10-17 13:40 ` Marek Vasut
2016-10-17 15:02 ` Chin Liang See
2016-10-13 8:32 ` [U-Boot] [PATCH v3 02/12] arm: socfpga: rstmgr: Add Reset Manager for Stratix 10 Chin Liang See
2016-10-13 8:33 ` [U-Boot] [PATCH v3 03/12] arm: socfpga: rstmgr: Separate the " Chin Liang See
2016-10-13 8:33 ` [U-Boot] [PATCH v3 04/12] arm: socfpga: clkmgr: Separate the Clock " Chin Liang See
2016-10-16 15:33 ` Marek Vasut
2016-10-17 13:32 ` See, Chin Liang [this message]
2016-10-17 13:42 ` Marek Vasut
2016-10-17 15:07 ` Chin Liang See
2016-10-17 15:20 ` Marek Vasut
2016-10-17 15:28 ` Chin Liang See
2016-10-17 15:39 ` Marek Vasut
2016-10-17 15:59 ` Chin Liang See
2016-10-17 16:14 ` Marek Vasut
2016-10-18 3:22 ` Chin Liang See
2016-10-18 4:00 ` Marek Vasut
2016-10-18 3:34 ` Chin Liang See
2016-10-18 11:45 ` Marek Vasut
2016-10-13 8:33 ` [U-Boot] [PATCH v3 05/12] arm: socfpga: fpgamgr: Disable FPGA " Chin Liang See
2016-10-16 15:34 ` Marek Vasut
2016-10-17 13:35 ` See, Chin Liang
2016-10-17 13:42 ` Marek Vasut
2016-10-17 15:14 ` Chin Liang See
2016-10-17 15:20 ` Marek Vasut
2016-10-17 15:30 ` Chin Liang See
2016-10-17 15:39 ` Marek Vasut
2016-10-13 8:33 ` [U-Boot] [PATCH v3 06/12] arm: socfpga: misc: Separate the misc.c " Chin Liang See
2016-10-13 8:33 ` [U-Boot] [PATCH v3 07/12] arm: socfpga: sysmgr: Disable System Manager " Chin Liang See
2016-10-16 15:38 ` Marek Vasut
2016-10-17 15:21 ` Chin Liang See
2016-10-13 8:33 ` [U-Boot] [PATCH v3 08/12] arm: socfpga: mmu: Add memory map layout for Stratix 10 SoC Chin Liang See
2016-10-13 8:33 ` [U-Boot] [PATCH v3 09/12] arm: socfpga: stratix10: Add board directory for Stratix 10 socdk Chin Liang See
2016-10-16 15:39 ` Marek Vasut
2016-10-17 15:32 ` Chin Liang See
2016-10-17 15:40 ` Marek Vasut
2016-10-13 8:33 ` [U-Boot] [PATCH v3 10/12] arm: dts: socfpga: Add dts " Chin Liang See
2016-10-13 8:33 ` [U-Boot] [PATCH v3 11/12] arm: socfpga: Add SPL support for Stratix 10 SoC Chin Liang See
2016-10-16 15:41 ` Marek Vasut
2016-10-17 15:34 ` Chin Liang See
2016-10-17 15:40 ` Marek Vasut
2016-10-13 8:33 ` [U-Boot] [PATCH v3 12/12] arm: socfpga: Add support for Stratix 10 SoC dev kit Chin Liang See
2016-10-16 15:49 ` Marek Vasut
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=1476711170.3076.6.camel@intel.com \
--to=chin.liang.see@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox