summaryrefslogtreecommitdiff
path: root/Silicon/Hisilicon/Hi6220
diff options
context:
space:
mode:
Diffstat (limited to 'Silicon/Hisilicon/Hi6220')
-rw-r--r--Silicon/Hisilicon/Hi6220/Hi6220.dec32
-rw-r--r--Silicon/Hisilicon/Hi6220/Include/Hi6220.h77
2 files changed, 109 insertions, 0 deletions
diff --git a/Silicon/Hisilicon/Hi6220/Hi6220.dec b/Silicon/Hisilicon/Hi6220/Hi6220.dec
new file mode 100644
index 0000000000..002bc66da5
--- /dev/null
+++ b/Silicon/Hisilicon/Hi6220/Hi6220.dec
@@ -0,0 +1,32 @@
+#
+# Copyright (c) 2014-2017, Linaro Limited. All rights reserved.
+#
+# This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution. The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+
+[Defines]
+ DEC_SPECIFICATION = 0x00010019
+ PACKAGE_NAME = HiKey
+ PACKAGE_GUID = 01be44a1-5ed3-47fc-8ecf-daa83344678c
+ PACKAGE_VERSION = 0.1
+
+################################################################################
+#
+# Include Section - list of Include Paths that are provided by this package.
+# Comments are used for Keywords and Module Types.
+#
+# Supported Module Types:
+# BASE SEC PEI_CORE PEIM DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER DXE_SAL_DRIVER UEFI_DRIVER UEFI_APPLICATION
+#
+################################################################################
+[Includes.common]
+ Include # Root include for the package
+
+[Guids.common]
+ gHi6220TokenSpaceGuid = { 0x47fc9a0e, 0x1796, 0x4d04, { 0xaf, 0x68, 0x2b, 0xcb, 0x0d, 0x40, 0x84, 0x09} }
diff --git a/Silicon/Hisilicon/Hi6220/Include/Hi6220.h b/Silicon/Hisilicon/Hi6220/Include/Hi6220.h
new file mode 100644
index 0000000000..203424adfc
--- /dev/null
+++ b/Silicon/Hisilicon/Hi6220/Include/Hi6220.h
@@ -0,0 +1,77 @@
+/** @file
+*
+* Copyright (c) 2014-2017, Linaro Limited. All rights reserved.
+*
+* This program and the accompanying materials
+* are licensed and made available under the terms and conditions of the BSD License
+* which accompanies this distribution. The full text of the license may be found at
+* http://opensource.org/licenses/bsd-license.php
+*
+* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+*
+**/
+
+#ifndef __HI6220_H__
+#define __HI6220_H__
+
+/***********************************************************************************
+// Platform Memory Map
+************************************************************************************/
+
+// SOC peripherals (UART, I2C, I2S, USB, etc)
+#define HI6220_PERIPH_BASE 0xF4000000
+#define HI6220_PERIPH_SZ 0x05800000
+
+#define PERI_CTRL_BASE 0xF7030000
+#define SC_PERIPH_CTRL4 0x00C
+#define CTRL4_FPGA_EXT_PHY_SEL BIT3
+#define CTRL4_PICO_SIDDQ BIT6
+#define CTRL4_PICO_OGDISABLE BIT8
+#define CTRL4_PICO_VBUSVLDEXT BIT10
+#define CTRL4_PICO_VBUSVLDEXTSEL BIT11
+#define CTRL4_OTG_PHY_SEL BIT21
+
+#define SC_PERIPH_CTRL5 0x010
+
+#define CTRL5_USBOTG_RES_SEL BIT3
+#define CTRL5_PICOPHY_ACAENB BIT4
+#define CTRL5_PICOPHY_BC_MODE BIT5
+#define CTRL5_PICOPHY_CHRGSEL BIT6
+#define CTRL5_PICOPHY_VDATSRCEND BIT7
+#define CTRL5_PICOPHY_VDATDETENB BIT8
+#define CTRL5_PICOPHY_DCDENB BIT9
+#define CTRL5_PICOPHY_IDDIG BIT10
+
+#define SC_PERIPH_CTRL8 0x018
+#define SC_PERIPH_CLKEN0 0x200
+#define SC_PERIPH_CLKDIS0 0x204
+#define SC_PERIPH_CLKSTAT0 0x208
+
+#define SC_PERIPH_RSTEN0 0x300
+#define SC_PERIPH_RSTDIS0 0x304
+#define SC_PERIPH_RSTSTAT0 0x308
+
+#define RST0_USBOTG_BUS BIT4
+#define RST0_POR_PICOPHY BIT5
+#define RST0_USBOTG BIT6
+#define RST0_USBOTG_32K BIT7
+
+#define EYE_PATTERN_PARA 0x7053348c
+
+#define MDDRC_AXI_BASE 0xF7120000
+#define AXI_REGION_MAP 0x100
+#define HIKEY_REGION_SIZE_MASK (7 << 8)
+// (0 << 8) means 16MB, (7 << 8) means 2GB
+#define HIKEY_REGION_SIZE(x) (1U << ((((x) & HIKEY_REGION_SIZE_MASK) >> 8) + 24))
+
+#define AO_CTRL_BASE 0xF7800000
+#define SC_PW_MTCMOS_EN0 0x830
+#define SC_PW_MTCMOS_DIS0 0x834
+#define SC_PW_MTCMOS_STAT0 0x838
+#define SC_PW_MTCMOS_ACK_STAT0 0x83c
+#define PW_EN0_G3D (1 << 1)
+
+#define PMUSSI_BASE 0xF8000000
+
+#endif /* __HI6220_H__ */