diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2018-06-05 16:12:27 +0800 |
---|---|---|
committer | Anson Huang <Anson.Huang@nxp.com> | 2018-06-19 10:24:32 +0800 |
commit | bd08def3c9b67a3b95cebdc4ad6433948fd2abbe (patch) | |
tree | 851542fb8b307f9bbc8f7858e11f835014c246ec /plat/imx/common/include | |
parent | 27b9d5ead84877d6557f5dc02c184a9c2c31d64f (diff) | |
download | trusted-firmware-a-bd08def3c9b67a3b95cebdc4ad6433948fd2abbe.tar.gz |
Support for NXP's imx SoC common function
This patch adds support for NXP's imx SoC common
function support like topology, gic implementation.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'plat/imx/common/include')
-rw-r--r-- | plat/imx/common/include/plat_imx8.h | 20 | ||||
-rw-r--r-- | plat/imx/common/include/plat_macros.S | 34 |
2 files changed, 54 insertions, 0 deletions
diff --git a/plat/imx/common/include/plat_imx8.h b/plat/imx/common/include/plat_imx8.h new file mode 100644 index 0000000000..27d4c376e6 --- /dev/null +++ b/plat/imx/common/include/plat_imx8.h @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef __PLAT_IMX8_H__ +#define __PLAT_IMX8_H__ + +#include <gicv3.h> + +unsigned int plat_calc_core_pos(uint64_t mpidr); +void imx_mailbox_init(uintptr_t base_addr); +void plat_gic_driver_init(void); +void plat_gic_init(void); +void plat_gic_cpuif_enable(void); +void plat_gic_cpuif_disable(void); +void plat_gic_pcpu_init(void); + +#endif /*__PLAT_IMX8_H__ */ diff --git a/plat/imx/common/include/plat_macros.S b/plat/imx/common/include/plat_macros.S new file mode 100644 index 0000000000..30cce0a479 --- /dev/null +++ b/plat/imx/common/include/plat_macros.S @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * the below macros print out relevant GIC + * registers whenever an unhandled exception is + * taken in BL3-1 + */ +.macro plat_print_gic_regs + /* TODO */ +.endm + +/* + * the below macros print out relevant interconnect + * registers whenever an unhandled exception is + * taken in BL3-1 + */ +.macro plat_print_interconnect_regs + /* TODO */ +.endm + +/* --------------------------------------------- + * The below required platform porting macro + * prints out relevant platform registers + * whenever an unhandled exception is taken in + * BL31. + * --------------------------------------------- + */ +.macro plat_crash_print_regs + /* TODO */ +.endm |