summaryrefslogtreecommitdiff
path: root/plat/nxp/board/warp7/plat_setup.c
diff options
context:
space:
mode:
authorJun Nie <jun.nie@linaro.org>2018-08-07 09:22:23 +0800
committerJun Nie <jun.nie@linaro.org>2018-09-12 12:00:36 +0800
commit2be86e0cad24e719857db526b84129a6b5b941c2 (patch)
treea210f15bce4ed19f128904440bf9f6e65b10e0c1 /plat/nxp/board/warp7/plat_setup.c
parent4f468f972c896571a46800cf58fd694862ee2a2b (diff)
warp7: add support to warp7 plat with iMX7S SoClinaro-warp7-pr
Add basic support to warp7 with SoC iMX7S. warp7 is an IoT platform with single cortex-A7 processor. Signed-off-by: Jun Nie <jun.nie@linaro.org>
Diffstat (limited to 'plat/nxp/board/warp7/plat_setup.c')
-rw-r--r--plat/nxp/board/warp7/plat_setup.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/plat/nxp/board/warp7/plat_setup.c b/plat/nxp/board/warp7/plat_setup.c
new file mode 100644
index 0000000..f68a653
--- /dev/null
+++ b/plat/nxp/board/warp7/plat_setup.c
@@ -0,0 +1,28 @@
+/** @file
+*
+* Copyright (c) 2018, ARM 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.
+*
+**/
+
+#include <arm_gic.h>
+#include <mmio.h>
+#include <plat_nxp.h>
+#include <platform.h>
+
+void tftf_platform_setup(void)
+{
+ nxp_platform_setup();
+}
+
+void plat_nxp_gic_init(void)
+{
+ arm_gic_init(GICC_BASE, GICD_BASE, GICR_BASE);
+}