From: Peng Fan <van.freenix@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 05/13] imx: mx6: correct get_cpu_speed_grade_hz for i.MX6DQP
Date: Wed, 18 May 2016 15:54:01 +0800 [thread overview]
Message-ID: <1463558049-26158-5-git-send-email-van.freenix@gmail.com> (raw)
In-Reply-To: <1463558049-26158-1-git-send-email-van.freenix@gmail.com>
Correct get_cpu_speed_grade_hz for i.MX6DQP, otherwise we
will get wrong speed grade info i.MX6DQP.
Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
---
arch/arm/cpu/armv7/mx6/soc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c
index 407f316..88fcfdc 100644
--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -138,14 +138,14 @@ u32 get_cpu_speed_grade_hz(void)
switch (val) {
/* Valid for IMX6DQ */
case OCOTP_CFG3_SPEED_1P2GHZ:
- if (is_mx6dq())
+ if (is_mx6dq() || is_mx6dqp())
return 1200000000;
/* Valid for IMX6SX/IMX6SDL/IMX6DQ */
case OCOTP_CFG3_SPEED_1GHZ:
return 996000000;
/* Valid for IMX6DQ */
case OCOTP_CFG3_SPEED_850MHZ:
- if (is_mx6dq())
+ if (is_mx6dq() || is_mx6dqp())
return 852000000;
/* Valid for IMX6SX/IMX6SDL/IMX6DQ */
case OCOTP_CFG3_SPEED_800MHZ:
--
2.6.2
next prev parent reply other threads:[~2016-05-18 7:54 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-18 7:53 [U-Boot] [PATCH 01/13] imx-common: introduce simpler macros for runtime dection Peng Fan
2016-05-18 7:53 ` [U-Boot] [PATCH 02/13] imx: mx6: use simpler runtime cpu dection macros Peng Fan
2016-05-18 7:53 ` [U-Boot] [PATCH 03/13] imx-common: " Peng Fan
2016-05-19 23:02 ` Benoît Thébaudeau
2016-05-20 8:41 ` Peng Fan
2016-05-20 20:39 ` Benoît Thébaudeau
2016-05-18 7:54 ` [U-Boot] [PATCH 04/13] imx: mx6: ddr: support i.MX6D/QPlus Peng Fan
2016-05-18 7:54 ` Peng Fan [this message]
2016-05-18 7:54 ` [U-Boot] [PATCH 06/13] imx-common: hab: support i.MX6DQPlus Peng Fan
2016-05-18 7:54 ` [U-Boot] [PATCH 07/13] imx-common: sata: return failure if not i.MX6DQPlus Peng Fan
2016-05-18 7:54 ` [U-Boot] [PATCH 08/13] imx-common: timer: support i.MX6DQPlus Peng Fan
2016-05-18 7:54 ` [U-Boot] [PATCH 09/13] mtd: nand: mxs: use simpler runtime cpu dection macros Peng Fan
2016-05-18 7:54 ` [U-Boot] [PATCH 10/13] ocotp: mxc: " Peng Fan
2016-05-18 7:54 ` [U-Boot] [PATCH 11/13] net: fec_mxc: " Peng Fan
2016-05-18 7:54 ` [U-Boot] [PATCH 12/13] block: dwc_ahsata: support i.MX6DQPlus Peng Fan
2016-05-18 7:54 ` [U-Boot] [PATCH 13/13] board: mx6sabresd/auto: use simpler runtime cpu dection macros Peng Fan
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=1463558049-26158-5-git-send-email-van.freenix@gmail.com \
--to=van.freenix@gmail.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