summaryrefslogtreecommitdiff
path: root/plat/sun50iw1p1/scp/include/arisc_cfgs.h
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2016-02-03 23:44:36 +0000
committerAndre Przywara <andre.przywara@arm.com>2016-02-04 09:00:42 +0000
commit90fc243e9256775c85f8763e8fa1b2b59e67d0ce (patch)
tree4293050433bd6237830ec824e8334a90bf400af4 /plat/sun50iw1p1/scp/include/arisc_cfgs.h
parent14b6608c9a2eba27ef36cc3e0806c9fa6d5555b0 (diff)
Merge in files from Allwinners lichee BSP tarball
The Pine64 Wiki[1] links to a BSP tarball, among other things containing a dump of an ARM Trusted Firmware source tree with Allwinner changes on top. Since the tarball does not contain any version history information about the changes, this commit is just the diff between the ATF 1.0 release and the files from the Allwinner provided tarball. The executable flag from many source has been removed. [1] http://wiki.pine64.org/index.php/Pine_A64_Software_Release#Linux_BSP_Related
Diffstat (limited to 'plat/sun50iw1p1/scp/include/arisc_cfgs.h')
-rw-r--r--plat/sun50iw1p1/scp/include/arisc_cfgs.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/plat/sun50iw1p1/scp/include/arisc_cfgs.h b/plat/sun50iw1p1/scp/include/arisc_cfgs.h
new file mode 100644
index 0000000..32234ba
--- /dev/null
+++ b/plat/sun50iw1p1/scp/include/arisc_cfgs.h
@@ -0,0 +1,74 @@
+/*
+ * arch/arm/mach-sunxi/arisc/include/arisc_cfgs.h
+ *
+ * Copyright (c) 2012 Allwinner.
+ * 2012-10-01 Written by superm (superm@allwinnertech.com).
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __ARISC_CFGS_H
+#define __ARISC_CFGS_H
+
+/* arisc software version number */
+#if defined CONFIG_ARCH_SUN8IW1P1
+#define ARISC_VERSIONS (100)
+#elif defined CONFIG_ARCH_SUN8IW3P1
+#define ARISC_VERSIONS (101)
+#elif defined CONFIG_ARCH_SUN8IW5P1
+#define ARISC_VERSIONS (102)
+#elif defined CONFIG_ARCH_SUN8IW6P1
+#define ARISC_VERSIONS (103)
+#elif defined CONFIG_ARCH_SUN8IW7P1
+#define ARISC_VERSIONS (104)
+#elif defined CONFIG_ARCH_SUN8IW9P1
+#define ARISC_VERSIONS (105)
+#elif defined CONFIG_ARCH_SUN50IW1P1
+#define ARISC_VERSIONS (110)
+#elif defined CONFIG_ARCH_SUN9IW1P1
+#define ARISC_VERSIONS (200)
+#else
+#error "please select a platform\n"
+#endif
+
+/* debugger system */
+#define ARISC_DEBUG_ON
+#define ARISC_DEBUG_LEVEL (3) /* debug level */
+
+/* the max number of cached message frame */
+#define ARISC_MESSAGE_CACHED_MAX (4)
+
+/* spinlock max timeout, base on ms */
+#define ARISC_SPINLOCK_TIMEOUT (100)
+
+/* send message max timeout, base on ms */
+#define ARISC_SEND_MSG_TIMEOUT (4000)
+
+/* hwmsgbox channels configure */
+#define ARISC_HWMSGBOX_ARISC_ASYN_TX_CH (0)
+#define ARISC_HWMSGBOX_ARISC_ASYN_RX_CH (1)
+#define ARISC_HWMSGBOX_ARISC_SYN_TX_CH (2)
+#define ARISC_HWMSGBOX_ARISC_SYN_RX_CH (3)
+#define ARISC_HWMSGBOX_AC327_SYN_TX_CH (4)
+#define ARISC_HWMSGBOX_AC327_SYN_RX_CH (5)
+
+/* dvfs config */
+#define ARISC_DVFS_VF_TABLE_MAX (16)
+/* ir config */
+#define ARISC_IR_KEY_SUP_NUM (8) /* the number of IR remote support */
+
+#define ARISC_DEV_CLKSRC_NUM (4) /* the number of dev clocksource support */
+
+#endif /* __ARISC_CFGS_H */