From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] powerpc/mpc85xx: Add support for single source clocking
Date: Mon, 9 Dec 2013 08:33:30 -0800 [thread overview]
Message-ID: <52A5F0DA.5060106@freescale.com> (raw)
In-Reply-To: <cccdfa21101c4d5e9cfdc6b88329e107@BLUPR03MB135.namprd03.prod.outlook.com>
On 12/09/2013 01:28 AM, Priyanka.Jain at freescale.com wrote:
> Hello York,
>
> I am not able to find mail which contains your comment on to undefined CONFIG_DDR_CLK_FREQ, so replying on original mail.
>
> ----
> You are right that we don't need to define CONFIG_DDR_CLK_FREQ in case of single source clocking.
> But as T1040QDS supports both single source clocking and separate clocking (for DDR and sysclk) and we intend to keep single u-boot binary for both modes, we need a mechanism to decide clocking mode at runtime. We thought of implementing it via rcw bit. Please suggest if there is some other good way to do so.
I am thinking this pseudo code
#ifdef CONFIG_SINGLE_SOURCE_CLK
if (test)
sys_info->freq_ddrbus = CONFIG_SYS_CLK_FREQ;
else
#endif
#ifdef CONFIG_DDR_CLK_FREQ
sys_info->freq_ddrbus = CONFIG_DDR_CLK_FREQ;
#else
sys_info->freq_ddrbus = sysclk;
#endif
York
next prev parent reply other threads:[~2013-12-09 16:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-28 5:34 [U-Boot] [PATCH] powerpc/mpc85xx: Add support for single source clocking Priyanka Jain
2013-12-02 19:17 ` York Sun
2013-12-09 9:28 ` Priyanka.Jain at freescale.com
2013-12-09 16:33 ` York Sun [this message]
2013-12-09 9:29 ` Priyanka.Jain at freescale.com
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=52A5F0DA.5060106@freescale.com \
--to=yorksun@freescale.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.