summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2015-07-07 08:51:56 +0200
committerStefan Agner <stefan.agner@toradex.com>2015-07-07 08:51:56 +0200
commitf3a9a52388e47475faddf581e2510be852d6e5fb (patch)
treea26df13694993dc7a92363bbe758246586be4041 /board
parentfa19144376604fb83b3f977ff6b637434886c646 (diff)
colibri_vf: fixup DT with DDR property to support LPSTOP
Fixup the device-tree with the property fsl,has-cke-reset-pulls which annotates that the board has pull-ups/downs which are required to put the memory into self-refresh mode. The self-refresh mode in turn is a requirement to put the SoC into deep sleep mode LPSTOP.
Diffstat (limited to 'board')
-rw-r--r--board/toradex/colibri_vf/colibri_vf.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/toradex/colibri_vf/colibri_vf.c b/board/toradex/colibri_vf/colibri_vf.c
index 180fe2e413..0c3d8fe219 100644
--- a/board/toradex/colibri_vf/colibri_vf.c
+++ b/board/toradex/colibri_vf/colibri_vf.c
@@ -479,6 +479,15 @@ int ft_board_setup(void *blob, bd_t *bd)
puts(" Updating MTD partitions...\n");
fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
#endif
+#ifdef CONFIG_TRDX_CFG_BLOCK
+ /*
+ * Colibri VFxx modules V1.2 and later have pull-up/down which allows
+ * to put the DDR3 memory into self-refresh mode.
+ */
+ if (trdx_hw_tag.ver_major >= 1 && trdx_hw_tag.ver_minor >= 2)
+ do_fixup_by_compat(blob, "fsl,vf610-ddrmc",
+ "fsl,has-cke-reset-pulls", NULL, 0, 1);
+#endif
return fsl_dcu_fixedfb_setup(blob);
}