aboutsummaryrefslogtreecommitdiff
path: root/board/thead/light-c910/ddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/thead/light-c910/ddr.c')
-rw-r--r--board/thead/light-c910/ddr.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/board/thead/light-c910/ddr.c b/board/thead/light-c910/ddr.c
new file mode 100644
index 00000000..0da99ddd
--- /dev/null
+++ b/board/thead/light-c910/ddr.c
@@ -0,0 +1,14 @@
+/*
+* Copyright (C) 2017-2020 Alibaba Group Holding Limited
+*
+* SPDX-License-Identifier: GPL-2.0+
+*/
+
+#include <asm/asm.h>
+#include <asm/io.h>
+#include <common.h>
+
+void init_ddr(void)
+{
+ writel(0x1ff << 4, (void *)0xffff005000);
+}