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] arm: socfpga: Fix QSPI doesn't work on socdk board
Date: Fri, 18 Dec 2015 15:44:50 +0800	[thread overview]
Message-ID: <1450424690.2152.7.camel@altera.com> (raw)
In-Reply-To: <1450423301-24778-1-git-send-email-shengjiangwu@icloud.com>

Hi Shengjiang,

On Fri, 2015-12-18 at 15:21 +0800, shengjiangwu wrote:
> Updated pinmux group MIXED1IO[15-20] for QSPI.
> Updated QSPI clock.
> 
> Signed-off-by: shengjiangwu <shengjiangwu@icloud.com>
> Cc: Chin Liang See <clsee@altera.com>
> Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
> Cc: Dinh Nguyen <dinh.linux@gmail.com>
> Cc: Pavel Machek <pavel@denx.de>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Stefan Roese <sr@denx.de>
> ---
>  board/altera/cyclone5-socdk/qts/pinmux_config.h |   12 ++++++------
>  board/altera/cyclone5-socdk/qts/pll_config.h    |    4 ++--
>  2 files changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/board/altera/cyclone5-socdk/qts/pinmux_config.h
> b/board/altera/cyclone5-socdk/qts/pinmux_config.h
> index 442b1e0..06783dc 100644
> --- a/board/altera/cyclone5-socdk/qts/pinmux_config.h
> +++ b/board/altera/cyclone5-socdk/qts/pinmux_config.h
> @@ -87,12 +87,12 @@ const u8 sys_mgr_init_table[] = {
>  	2, /* MIXED1IO12 */
>  	2, /* MIXED1IO13 */
>  	0, /* MIXED1IO14 */
> -	1, /* MIXED1IO15 */
> -	1, /* MIXED1IO16 */
> -	1, /* MIXED1IO17 */
> -	1, /* MIXED1IO18 */
> -	0, /* MIXED1IO19 */
> -	0, /* MIXED1IO20 */
> +	3, /* MIXED1IO15 */
> +	3, /* MIXED1IO16 */
> +	3, /* MIXED1IO17 */
> +	3, /* MIXED1IO18 */
> +	3, /* MIXED1IO19 */
> +	3, /* MIXED1IO20 */
>  	0, /* MIXED1IO21 */
>  	0, /* MIXED2IO0 */
>  	0, /* MIXED2IO1 */
> diff --git a/board/altera/cyclone5-socdk/qts/pll_config.h
> b/board/altera/cyclone5-socdk/qts/pll_config.h
> index 42905f4..eccc705 100644
> --- a/board/altera/cyclone5-socdk/qts/pll_config.h
> +++ b/board/altera/cyclone5-socdk/qts/pll_config.h
> @@ -14,7 +14,7 @@
>  #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 511
> +#define CONFIG_HPS_MAINPLLGRP_MAINQSPICLK_CNT 3
>  #define CONFIG_HPS_MAINPLLGRP_MAINNANDSDMMCCLK_CNT 511
>  #define CONFIG_HPS_MAINPLLGRP_CFGS2FUSER0CLK_CNT 15
>  #define CONFIG_HPS_MAINPLLGRP_MAINDIV_L3MPCLK 1
> @@ -32,7 +32,7 @@
>  #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 511
> +#define CONFIG_HPS_PERPLLGRP_PERQSPICLK_CNT 1

Let's not change this as we are using mainpll for QSPI clock. Besides
that, the QSPI perpll will yield 500MHz which exceed the 400MHz max
clock.

Thanks
Chin Liang


>  #define CONFIG_HPS_PERPLLGRP_PERNANDSDMMCCLK_CNT 4
>  #define CONFIG_HPS_PERPLLGRP_PERBASECLK_CNT 4
>  #define CONFIG_HPS_PERPLLGRP_S2FUSER1CLK_CNT 511

  reply	other threads:[~2015-12-18  7:44 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-18  7:21 [U-Boot] [PATCH] arm: socfpga: Fix QSPI doesn't work on socdk board shengjiangwu
2015-12-18  7:44 ` Chin Liang See [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-12-18  7:57 圣江 吴
2015-12-18 12:37 ` Marek Vasut
2015-12-21  7:33 圣江 吴
2015-12-21  9:37 ` Pavel Machek
2015-12-21  9:56   ` Chin Liang See
2015-12-21 10:12     ` Marek Vasut
2015-12-21 10:12   ` Marek Vasut
2015-12-21 10:41     ` Pavel Machek
2015-12-21 14:49       ` Marek Vasut
2015-12-22  9:18 shengjiangwu
2015-12-22  9:36 ` Chin Liang See
2015-12-22 20:19 ` Marek Vasut
2015-12-22 20:33   ` Marek Vasut
2015-12-23  1:22 圣江 吴
2015-12-23  1:24 ` Marek Vasut
2015-12-23  2:02   ` ShengjiangWu
2015-12-23  2:07     ` Marek Vasut
2015-12-23  2:27       ` Chin Liang See
     [not found] <18c117d0-3bdb-4cf8-972a-35711ec3eacf@me.com>
2015-12-23  1:26 ` Marek Vasut
2015-12-23  2:26 圣江 吴
2015-12-23  2:27 ` Marek Vasut
2015-12-23  2:29   ` Chin Liang See
2015-12-23  2:38     ` Chin Liang See
2015-12-23  3:04       ` 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=1450424690.2152.7.camel@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.