summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-aspeed/regs-ahbc.h
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2016-07-13 16:36:57 +0930
committerJoel Stanley <joel@jms.id.au>2016-07-27 15:44:01 +0930
commita83e1bc06bef1dc155b7f4d9f96f2bfc315d4dd7 (patch)
tree3775efb7c903177917da2cba9cd389485a9a531f /arch/arm/include/asm/arch-aspeed/regs-ahbc.h
parent19ce924ff914f315dc2fdf79f357825c513aed6e (diff)
downloadblackbird-obmc-uboot-a83e1bc06bef1dc155b7f4d9f96f2bfc315d4dd7.tar.gz
blackbird-obmc-uboot-a83e1bc06bef1dc155b7f4d9f96f2bfc315d4dd7.zip
ARM: AST2500: add support
Extracted from ast_sdk.v00.03.21 which is based on u-boot v2013. Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'arch/arm/include/asm/arch-aspeed/regs-ahbc.h')
-rw-r--r--arch/arm/include/asm/arch-aspeed/regs-ahbc.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-aspeed/regs-ahbc.h b/arch/arm/include/asm/arch-aspeed/regs-ahbc.h
new file mode 100644
index 0000000000..66e29839e8
--- /dev/null
+++ b/arch/arm/include/asm/arch-aspeed/regs-ahbc.h
@@ -0,0 +1,38 @@
+/* arch/arm/mach-aspeed/include/mach/regs-ahbc.h
+ *
+ * Copyright (C) 2012-2020 ASPEED Technology Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * History :
+ * 1. 2012/12/29 Ryan Chen Create
+ *
+ ******************************************************************************/
+#ifndef __AST_AHBC_H
+#define __AST_AHBC_H
+
+#include <asm/arch/aspeed.h>
+
+/* Registers for AHBC */
+#define AST_AHBC_PROTECT 0x00 /* Protection Key Register */
+#define AST_AHBC_PRIORITY_CTRL 0x80 /* Priority Cortrol Register */
+#define AST_AHBC_ADDR_REMAP 0x8C /* Address Remapping Register */
+
+/* AST_AHBC_PROTECT 0x00 Protection Key Register */
+#define AHBC_PROTECT_UNLOCK 0xAEED1A03
+
+/* AST_AHBC_ADDR_REMAP 0x8C Address Remapping Register */
+#define AHBC_PCI_REMAP1 (1 << 5)
+#define AHBC_PCI_REMAP0 (1 << 4)
+
+#if defined(AST_SOC_G5)
+#define AHBC_PCIE_MAP (1 << 5)
+#define AHBC_LPC_PLUS_MAP (1 << 4)
+#else
+#define AHBC_BOOT_REMAP 1
+#endif
+
+
+#endif
OpenPOWER on IntegriCloud