All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chin Liang See <clsee@altera.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] socfpga: Adding Clock Manager handoff file
Date: Tue, 4 Feb 2014 13:11:08 -0600	[thread overview]
Message-ID: <1391541068.2245.4.camel@clsee-VirtualBox.altera.com> (raw)
In-Reply-To: <1387410874-4838-3-git-send-email-clsee@altera.com>

Hi Albert,

As there are no further comments, would need your help to apply this
patch. Thanks and appreciate for your support.

Chin Liang


On Wed, 2013-12-18 at 17:54 -0600, Chin Liang See wrote:
> The pll_config.h will be consumed by Clock Manager driver
> 
> Signed-off-by: Chin Liang See <clsee@altera.com>
> Cc: Albert Aribaud <albert.u.boot@aribaud.net>
> Cc: Tom Rini <trini@ti.com>
> Cc: Wolfgang Denk <wd@denx.de>
> CC: Pavel Machek <pavel@denx.de>
> Cc: Dinh Nguyen <dinguyen@altera.com>
> ---
>  board/altera/socfpga/pll_config.h |  115 +++++++++++++++++++++++++++++++++++++
>  1 file changed, 115 insertions(+)
>  create mode 100755 board/altera/socfpga/pll_config.h
> 
> diff --git a/board/altera/socfpga/pll_config.h b/board/altera/socfpga/pll_config.h
> new file mode 100755
> index 0000000..32aa4ad
> --- /dev/null
> +++ b/board/altera/socfpga/pll_config.h
> @@ -0,0 +1,115 @@
> +
> +/* This file is generated by Preloader Generator */
> +
> +#ifndef _PRELOADER_PLL_CONFIG_H_
> +#define _PRELOADER_PLL_CONFIG_H_
> +
> +/* PLL configuration data */
> +/* Main PLL */
> +#define CONFIG_HPS_MAINPLLGRP_VCO_DENOM			(0)
> +#define CONFIG_HPS_MAINPLLGRP_VCO_NUMER			(63)
> +#define CONFIG_HPS_MAINPLLGRP_MPUCLK_CNT		(0)
> +#define CONFIG_HPS_MAINPLLGRP_MAINCLK_CNT		(0)
> +#define CONFIG_HPS_MAINPLLGRP_DBGATCLK_CNT		(0)
> +#define CONFIG_HPS_MAINPLLGRP_MAINQSPICLK_CNT		(3)
> +#define CONFIG_HPS_MAINPLLGRP_MAINNANDSDMMCCLK_CNT	(3)
> +#define CONFIG_HPS_MAINPLLGRP_CFGS2FUSER0CLK_CNT	(12)
> +#define CONFIG_HPS_MAINPLLGRP_MAINDIV_L3MPCLK		(1)
> +#define CONFIG_HPS_MAINPLLGRP_MAINDIV_L3SPCLK		(1)
> +#define CONFIG_HPS_MAINPLLGRP_MAINDIV_L4MPCLK		(1)
> +#define CONFIG_HPS_MAINPLLGRP_MAINDIV_L4SPCLK		(1)
> +#define CONFIG_HPS_MAINPLLGRP_DBGDIV_DBGATCLK		(0)
> +#define CONFIG_HPS_MAINPLLGRP_DBGDIV_DBGCLK		(1)
> +#define CONFIG_HPS_MAINPLLGRP_TRACEDIV_TRACECLK		(0)
> +/*
> + * To tell where is the clock source:
> + * 0 = MAINPLL
> + * 1 = PERIPHPLL
> + */
> +#define CONFIG_HPS_MAINPLLGRP_L4SRC_L4MP		(1)
> +#define CONFIG_HPS_MAINPLLGRP_L4SRC_L4SP		(1)
> +
> +/* Peripheral PLL */
> +#define CONFIG_HPS_PERPLLGRP_VCO_DENOM			(1)
> +#define CONFIG_HPS_PERPLLGRP_VCO_NUMER			(79)
> +/*
> + * To tell where is the VCOs source:
> + * 0 = EOSC1
> + * 1 = EOSC2
> + * 2 = F2S
> + */
> +#define CONFIG_HPS_PERPLLGRP_VCO_PSRC			(0)
> +#define CONFIG_HPS_PERPLLGRP_EMAC0CLK_CNT		(3)
> +#define CONFIG_HPS_PERPLLGRP_EMAC1CLK_CNT		(3)
> +#define CONFIG_HPS_PERPLLGRP_PERQSPICLK_CNT		(1)
> +#define CONFIG_HPS_PERPLLGRP_PERNANDSDMMCCLK_CNT	(4)
> +#define CONFIG_HPS_PERPLLGRP_PERBASECLK_CNT		(4)
> +#define CONFIG_HPS_PERPLLGRP_S2FUSER1CLK_CNT		(9)
> +#define CONFIG_HPS_PERPLLGRP_DIV_USBCLK			(0)
> +#define CONFIG_HPS_PERPLLGRP_DIV_SPIMCLK		(0)
> +#define CONFIG_HPS_PERPLLGRP_DIV_CAN0CLK		(1)
> +#define CONFIG_HPS_PERPLLGRP_DIV_CAN1CLK		(1)
> +#define CONFIG_HPS_PERPLLGRP_GPIODIV_GPIODBCLK		(6249)
> +/*
> + * To tell where is the clock source:
> + * 0 = F2S_PERIPH_REF_CLK
> + * 1 = MAIN_CLK
> + * 2 = PERIPH_CLK
> + */
> +#define CONFIG_HPS_PERPLLGRP_SRC_SDMMC			(2)
> +#define CONFIG_HPS_PERPLLGRP_SRC_NAND			(2)
> +#define CONFIG_HPS_PERPLLGRP_SRC_QSPI			(1)
> +
> +/* SDRAM PLL */
> +#ifdef CONFIG_SOCFPGA_ARRIA5
> +/* Arria V SDRAM will run at 533MHz while Cyclone V still at 400MHz
> + * This if..else... is not required if generated by tools */
> +#define CONFIG_HPS_SDRPLLGRP_VCO_DENOM			(2)
> +#define CONFIG_HPS_SDRPLLGRP_VCO_NUMER			(127)
> +#else
> +#define CONFIG_HPS_SDRPLLGRP_VCO_DENOM			(0)
> +#define CONFIG_HPS_SDRPLLGRP_VCO_NUMER			(31)
> +#endif /* CONFIG_SOCFPGA_ARRIA5 */
> +
> +/*
> + * To tell where is the VCOs source:
> + * 0 = EOSC1
> + * 1 = EOSC2
> + * 2 = F2S
> + */
> +#define CONFIG_HPS_SDRPLLGRP_VCO_SSRC			(0)
> +#define CONFIG_HPS_SDRPLLGRP_DDRDQSCLK_CNT		(1)
> +#define CONFIG_HPS_SDRPLLGRP_DDRDQSCLK_PHASE		(0)
> +#define CONFIG_HPS_SDRPLLGRP_DDR2XDQSCLK_CNT		(0)
> +#define CONFIG_HPS_SDRPLLGRP_DDR2XDQSCLK_PHASE		(0)
> +#define CONFIG_HPS_SDRPLLGRP_DDRDQCLK_CNT		(1)
> +#define CONFIG_HPS_SDRPLLGRP_DDRDQCLK_PHASE		(4)
> +#define CONFIG_HPS_SDRPLLGRP_S2FUSER2CLK_CNT		(5)
> +#define CONFIG_HPS_SDRPLLGRP_S2FUSER2CLK_PHASE		(0)
> +
> +/* Info for driver */
> +#define CONFIG_HPS_CLK_OSC1_HZ			(25000000)
> +#define CONFIG_HPS_CLK_MAINVCO_HZ		(1600000000)
> +#define CONFIG_HPS_CLK_PERVCO_HZ		(1000000000)
> +#ifdef CONFIG_SOCFPGA_ARRIA5
> +/* The if..else... is not required if generated by tools */
> +#define CONFIG_HPS_CLK_SDRVCO_HZ		(1066000000)
> +#else
> +#define CONFIG_HPS_CLK_SDRVCO_HZ		(800000000)
> +#endif
> +#define CONFIG_HPS_CLK_EMAC0_HZ			(250000000)
> +#define CONFIG_HPS_CLK_EMAC1_HZ			(250000000)
> +#define CONFIG_HPS_CLK_USBCLK_HZ		(200000000)
> +#define CONFIG_HPS_CLK_NAND_HZ			(50000000)
> +#define CONFIG_HPS_CLK_SDMMC_HZ			(200000000)
> +#define CONFIG_HPS_CLK_QSPI_HZ			(400000000)
> +#define CONFIG_HPS_CLK_SPIM_HZ			(200000000)
> +#define CONFIG_HPS_CLK_CAN0_HZ			(100000000)
> +#define CONFIG_HPS_CLK_CAN1_HZ			(100000000)
> +#define CONFIG_HPS_CLK_GPIODB_HZ		(32000)
> +#define CONFIG_HPS_CLK_L4_MP_HZ			(100000000)
> +#define CONFIG_HPS_CLK_L4_SP_HZ			(100000000)
> +
> +#endif /* _PRELOADER_PLL_CONFIG_H_ */
> +
> +

      reply	other threads:[~2014-02-04 19:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-18 23:54 [U-Boot] [PATCH 0/2] socfpga: Adding Clock Manager Chin Liang See
2013-12-18 23:54 ` [U-Boot] [PATCH 1/2] socfpga: Adding Clock Manager driver Chin Liang See
2014-01-09 14:48   ` Chin Liang See
2014-02-04 19:10   ` Chin Liang See
2014-02-13  9:53   ` Albert ARIBAUD
2014-02-21 15:05     ` Chin Liang See
2013-12-18 23:54 ` [U-Boot] [PATCH 2/2] socfpga: Adding Clock Manager handoff file Chin Liang See
2014-02-04 19:11   ` Chin Liang See [this message]

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=1391541068.2245.4.camel@clsee-VirtualBox.altera.com \
    --to=clsee@altera.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.