Skip to content
Snippets Groups Projects
Commit e4d79dca authored by Peng Fan's avatar Peng Fan Committed by Stefano Babic
Browse files

imx: mx6: ddr: support i.MX6D/QPlus


Support i.MX6D/QPlus.

Signed-off-by: default avatarPeng Fan <van.freenix@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
parent 27cd0da4
No related branches found
No related tags found
No related merge requests found
......@@ -1200,7 +1200,7 @@ void mx6_ddr3_cfg(const struct mx6_ddr_sysinfo *sysinfo,
mmdc1 = (struct mmdc_p_regs *)MMDC_P1_BASE_ADDR;
/* Limit mem_speed for MX6D/MX6Q */
if (is_mx6dq()) {
if (is_mx6dq() || is_mx6dqp()) {
if (mem_speed > 1066)
mem_speed = 1066; /* 1066 MT/s */
......@@ -1219,7 +1219,7 @@ void mx6_ddr3_cfg(const struct mx6_ddr_sysinfo *sysinfo,
* Data rate of 1066 MT/s requires 533 MHz DDR3 clock, but MX6D/Q supports
* up to 528 MHz, so reduce the clock to fit chip specs
*/
if (is_mx6dq()) {
if (is_mx6dq() || is_mx6dqp()) {
if (clock > 528)
clock = 528; /* 528 MHz */
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment