From: Jagan Teki <jagan@openedev.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 23/35] ARM: i.MX6DL: sabresd: Move DCD reginit on SPL
Date: Sun, 9 Apr 2017 12:22:44 +0530 [thread overview]
Message-ID: <1491720776-7445-24-git-send-email-jagan@openedev.com> (raw)
In-Reply-To: <1491720776-7445-1-git-send-email-jagan@openedev.com>
From: Jagan Teki <jagan@amarulasolutions.com>
DCD register initialization from mx6dlsabresd.cfg are moved to
SPL code in mx6dl_dcd_table.
Now mx6sabresd SPL code support Dual Lite, Quad, Quad Plus.
mx6dl_dcd_table reginit as
- GPR io regs
- DRAM io regs,
- MMDC Calibration io regs
- dram sdcke0 (0x020e04a4) and sdcke1(0x020e04a8) are not available
in original mx6dlsabresd.cfg but initialized to default values.
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
Changes for v4:
- none
Changes for v3:
- Newly added
Changes for v2:
- none
board/freescale/mx6sabresd/mx6sabresd.c | 64 ++++++++++++++++++++++++++++++++-
1 file changed, 63 insertions(+), 1 deletion(-)
diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c
index 67fc192..5595c08 100644
--- a/board/freescale/mx6sabresd/mx6sabresd.c
+++ b/board/freescale/mx6sabresd/mx6sabresd.c
@@ -893,6 +893,66 @@ static void gpr_init(void)
}
}
+static int mx6dl_dcd_table[] = {
+ /* GPR io regs */
+ 0x020e0774, 0x000C0000,
+ 0x020e076c, 0x00000030,
+ 0x020e0760, 0x00020000,
+ 0x020e0754, 0x00000000,
+ 0x020e0750, 0x00020000,
+ 0x020e074c, 0x00000030,
+ 0x020e0748, 0x00000030,
+ 0x020e078c, 0x00000030,
+ 0x020e0784, 0x00000030,
+ 0x020e0780, 0x00000030,
+ 0x020e077c, 0x00000030,
+ 0x020e0778, 0x00000030,
+ 0x020e0770, 0x00000030,
+ 0x020e0764, 0x00000030,
+
+ /* DRAM io regs */
+ 0x020e04ac, 0x00000030,
+ 0x020e04b0, 0x00000030,
+ 0x020e0464, 0x00000030,
+ 0x020e0490, 0x00000030,
+ 0x020e0494, 0x00000030,
+ 0x020e04a4, 0x00000030,
+ 0x020e04a8, 0x00000030,
+ 0x020e04a0, 0x00000000,
+ 0x020e04b4, 0x00000030,
+ 0x020e04b8, 0x00000030,
+ 0x020e04bc, 0x00000030,
+ 0x020e04c0, 0x00000030,
+ 0x020e04c4, 0x00000030,
+ 0x020e04c8, 0x00000030,
+ 0x020e04cc, 0x00000030,
+ 0x020e04d0, 0x00000030,
+ 0x020e04d4, 0x00000030,
+ 0x020e04d8, 0x00000030,
+ 0x020e0470, 0x00000030,
+ 0x020e0474, 0x00000030,
+ 0x020e0478, 0x00000030,
+ 0x020e047c, 0x00000030,
+ 0x020e0480, 0x00000030,
+ 0x020e0484, 0x00000030,
+ 0x020e0488, 0x00000030,
+ 0x020e048c, 0x00000030,
+
+ /* MMDC Calibration io regs */
+ 0x021b080c, 0x001F001F,
+ 0x021b0810, 0x001F001F,
+ 0x021b480c, 0x001F001F,
+ 0x021b4810, 0x001F001F,
+ 0x021b083c, 0x4220021F,
+ 0x021b0840, 0x0207017E,
+ 0x021b483c, 0x4201020C,
+ 0x021b4840, 0x01660172,
+ 0x021b0848, 0x4A4D4E4D,
+ 0x021b0850, 0x3F3C3D31,
+ 0x021b4848, 0x4A4F5049,
+ 0x021b4850, 0x3238372B,
+};
+
static int mx6q_dcd_table[] = {
0x020e0798, 0x000C0000,
0x020e0758, 0x00000000,
@@ -1085,7 +1145,9 @@ static void ddr_init(int *table, int size)
static void spl_dram_init(void)
{
- if (is_mx6dq())
+ if (is_mx6dl())
+ ddr_init(mx6dl_dcd_table, ARRAY_SIZE(mx6dl_dcd_table));
+ else if (is_mx6dq())
ddr_init(mx6q_dcd_table, ARRAY_SIZE(mx6q_dcd_table));
else if (is_mx6dqp())
ddr_init(mx6qp_dcd_table, ARRAY_SIZE(mx6qp_dcd_table));
--
1.9.1
next prev parent reply other threads:[~2017-04-09 6:52 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-09 6:52 [U-Boot] [PATCH v4 00/35] ARM: i.MX6: SabreSD: Add dts support Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 01/35] ARM: i.MX6: sabresd: Fix README - s/of=/dev/sdbbs=1K/of=/dev/sdb bs=1K/ Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 02/35] ARM: dts: i.MX6: Add imx6qdl-sabresd.dtsi Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 03/35] ARM: dts: imx6qdl-sabresd: Add imx6q-sabresd.dts Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 04/35] ARM: i.MX6: sabresd: Remove SPL_I2C_SUPPORT Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 05/35] ARM: i.MX6Q: sabresd: Add initial devicetree support Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 06/35] ARM: dts: imx6qdl-sabresd: Add imx6qp-sabresd.dts Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 07/35] ARM: i.MX6QP: sabresd: Add initial devicetree support Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 08/35] ARM: i.MX6: sabresd: Move CONFIG_SYS_I2C_MXC to defconfigs Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 09/35] ARM: dts: imx6qdl-sabresd: Add I2C node's Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 10/35] ARM: dts: imx6qdl-sabresd: Add PMIC pfuze100 node Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 11/35] ARM: i.MX6: sabresd: Enable DM_I2C and DM_PMIC Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 12/35] ARM: i.MX6: sabresd: defconfig move - CONFIG_USB_EHCI(_MX6) Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 13/35] ARM: dts: imx6qdl-sabresd: Add usb host node Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 14/35] ARM: dts: imx6qdl-sabresd: Add usb otg node Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 15/35] ARM: i.MX6: sabresd: Enable CONFIG_DM_REGULATOR Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 16/35] ARM: i.MX6: sabresd: Enable DM_USB Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 17/35] ARM: dts: imx6qdl-sabresd: Add FEC node Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 18/35] ARM: i.MX6: sabre: Move CONFIG_FEC_MXC to defconfigs Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 19/35] ARM: i.MX6: sabresd: Enable DM_ETH Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 20/35] ARM: i.MX6: sabresd: Add dm_gpio_* for backlight Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 21/35] ARM: i.MX6: sabresd: Add imx6_pcie_toggle_power Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 22/35] ARM: i.MX6: sabresd: Add imx6_pcie_toggle_reset Jagan Teki
2017-04-09 6:52 ` Jagan Teki [this message]
2017-04-09 6:52 ` [U-Boot] [PATCH v4 24/35] ARM: dts: imx6qdl-sabresd: Add imx6dl-sabresd.dts Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 25/35] ARM: i.MX6DL: sabresd: Add initial devicetree support Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 26/35] ARM: i.MX6: %s/mx6[dl|q]sabresd_defconfig/imx6[dl|q]_sabresd_defconfig Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 27/35] ARM: i.MX6Q: sabresd: Add dts support for imx6q_sabresd Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 28/35] ARM: i.MX6DL: sabresd: Add dts support for imx6dl_sabresd Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 29/35] ARM: i.MX6: sabresd: Drop legacy non-fdt code Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 30/35] ARM: i.MX6: %s/mx6sabresd/imx6sabresd Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 31/35] ARM: i.MX6: %s/MX6SABRESD/IMX6SABRESD Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 32/35] ARM: i.MX6: sabresd: Move DM_* and OF_CONTROL to arch Kconfig Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 33/35] ARM: i.MX6: sabresd: Update README Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 34/35] ARM: i.MX6: sabresd: Drop checkboard Jagan Teki
2017-04-09 6:52 ` [U-Boot] [PATCH v4 35/35] ARM: i.MX6: sabresd: Cleanup board code Jagan Teki
2017-04-09 12:47 ` [U-Boot] [PATCH v4 00/35] ARM: i.MX6: SabreSD: Add dts support Fabio Estevam
2017-04-09 19:12 ` Jagan Teki
2017-04-09 23:13 ` Fabio Estevam
2017-04-17 13:28 ` Jagan Teki
2017-04-25 18:35 ` Jagan Teki
2017-04-25 19:27 ` Fabio Estevam
2017-05-03 6:53 ` Jagan Teki
2017-05-03 11:50 ` Tom Rini
2017-04-28 20:07 ` Fabio Estevam
2017-05-03 6:55 ` Jagan Teki
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=1491720776-7445-24-git-send-email-jagan@openedev.com \
--to=jagan@openedev.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