summaryrefslogtreecommitdiff
path: root/board/phytium/durian/cpu.h
diff options
context:
space:
mode:
authorliu hao <steven_hao5189@outlook.com>2019-10-31 07:51:08 +0000
committerTom Rini <trini@konsulko.com>2019-11-07 18:01:13 -0500
commite3aafef4cf2d16e14e3bc02c3d8dbd434e305c19 (patch)
treefdbea6b74ff265944983e10293b5e401f4b61d77 /board/phytium/durian/cpu.h
parent672c57057f4071ee786c5a3b94897ff6b6de39c4 (diff)
downloadu-boot-e3aafef4cf2d16e14e3bc02c3d8dbd434e305c19.tar.gz
arm: add initial support for the Phytium Durian BoardWIP/2019-11-07-master-imports
This adds platform code and the device tree for the Phytium Durian Board. The initial support comprises the UART and the PCIE. Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Kever Yang <kever.yang@rock-chips.com> Cc: Tom Rini <trini@konsulko.com> Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Steven Hao <liuhao@phytium.com.cn>
Diffstat (limited to 'board/phytium/durian/cpu.h')
-rw-r--r--board/phytium/durian/cpu.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/board/phytium/durian/cpu.h b/board/phytium/durian/cpu.h
new file mode 100644
index 0000000000..a5a213d30c
--- /dev/null
+++ b/board/phytium/durian/cpu.h
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * (C) Copyright 2019
+ * Phytium Technology Ltd <www.phytium.com>
+ * shuyiqi <shuyiqi@phytium.com.cn>
+ */
+
+#ifndef _FT_DURIAN_H
+#define _FT_DURIAN_H
+
+/* FLUSH L3 CASHE */
+#define HNF_COUNT 0x8
+#define HNF_PSTATE_REQ (HNF_BASE + 0x10)
+#define HNF_PSTATE_STAT (HNF_BASE + 0x18)
+#define HNF_PSTATE_OFF 0x0
+#define HNF_PSTATE_SFONLY 0x1
+#define HNF_PSTATE_HALF 0x2
+#define HNF_PSTATE_FULL 0x3
+#define HNF_STRIDE 0x10000
+#define HNF_BASE (unsigned long)(0x3A200000)
+
+#endif /* _FT_DURIAN_H */
+