aboutsummaryrefslogtreecommitdiff
path: root/core/arch/arm
diff options
context:
space:
mode:
authorJerome Forissier <jerome.forissier@linaro.org>2017-12-15 14:27:02 +0100
committerJérôme Forissier <jerome.forissier@linaro.org>2018-01-10 19:09:42 +0100
commit1bb929836182ecb96d2d9d268daa807c67596396 (patch)
treecae29ec7597551a3cc1ef01a497c9806a41f029a /core/arch/arm
parentfb7ef469dfeb735e60383ad0e7410fe62dd97eb1 (diff)
Add SPDX license identifiers
Adds one SPDX-License-Identifier line [1] to each source files that contains license text. Generated by [2]: spdxify.py --add-spdx optee_os/ The scancode tool [3] was used to double check the license matching code in the Python script. All the licenses detected by scancode are either detected by spdxify.py, or have no SPDX identifier, or are false matches. Link: [1] https://spdx.org/licenses/ Link: [2] https://github.com/jforissier/misc/blob/f7b56c8/spdxify.py Link: [3] https://github.com/nexB/scancode-toolkit Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Joakim Bech <joakim.bech@linaro.org>
Diffstat (limited to 'core/arch/arm')
-rw-r--r--core/arch/arm/include/arm.h1
-rw-r--r--core/arch/arm/include/arm32.h1
-rw-r--r--core/arch/arm/include/arm32_macros.S1
-rw-r--r--core/arch/arm/include/arm32_macros_cortex_a9.S1
-rw-r--r--core/arch/arm/include/arm64.h1
-rw-r--r--core/arch/arm/include/arm64_macros.S1
-rw-r--r--core/arch/arm/include/kernel/abort.h1
-rw-r--r--core/arch/arm/include/kernel/cache_helpers.h1
-rw-r--r--core/arch/arm/include/kernel/delay.h1
-rw-r--r--core/arch/arm/include/kernel/early_ta.h1
-rw-r--r--core/arch/arm/include/kernel/generic_boot.h1
-rw-r--r--core/arch/arm/include/kernel/linker.h1
-rw-r--r--core/arch/arm/include/kernel/misc.h1
-rw-r--r--core/arch/arm/include/kernel/mutex.h1
-rw-r--r--core/arch/arm/include/kernel/pm_stubs.h1
-rw-r--r--core/arch/arm/include/kernel/pseudo_ta.h1
-rw-r--r--core/arch/arm/include/kernel/spinlock.h1
-rw-r--r--core/arch/arm/include/kernel/tee_l2cc_mutex.h1
-rw-r--r--core/arch/arm/include/kernel/thread.h1
-rw-r--r--core/arch/arm/include/kernel/thread_defs.h1
-rw-r--r--core/arch/arm/include/kernel/time_source.h1
-rw-r--r--core/arch/arm/include/kernel/tlb_helpers.h1
-rw-r--r--core/arch/arm/include/kernel/tz_proc_def.h1
-rw-r--r--core/arch/arm/include/kernel/tz_ssvce_def.h1
-rw-r--r--core/arch/arm/include/kernel/tz_ssvce_pl310.h1
-rw-r--r--core/arch/arm/include/kernel/user_ta.h1
-rw-r--r--core/arch/arm/include/kernel/vfp.h1
-rw-r--r--core/arch/arm/include/kernel/wait_queue.h1
-rw-r--r--core/arch/arm/include/mm/core_memprot.h1
-rw-r--r--core/arch/arm/include/mm/core_mmu.h1
-rw-r--r--core/arch/arm/include/mm/mobj.h1
-rw-r--r--core/arch/arm/include/mm/pgt_cache.h1
-rw-r--r--core/arch/arm/include/mm/tee_pager.h1
-rw-r--r--core/arch/arm/include/sm/optee_smc.h1
-rw-r--r--core/arch/arm/include/sm/pm.h1
-rw-r--r--core/arch/arm/include/sm/sm.h1
-rw-r--r--core/arch/arm/include/sm/tee_mon.h1
-rw-r--r--core/arch/arm/include/sm/teesmc_opteed.h1
-rw-r--r--core/arch/arm/include/sm/teesmc_opteed_macros.h1
-rw-r--r--core/arch/arm/include/tee/arch_svc.h1
-rw-r--r--core/arch/arm/include/tee/entry_fast.h1
-rw-r--r--core/arch/arm/include/tee/entry_std.h1
-rw-r--r--core/arch/arm/kernel/abort.c1
-rw-r--r--core/arch/arm/kernel/asm-defines.c1
-rw-r--r--core/arch/arm/kernel/delay.c1
-rw-r--r--core/arch/arm/kernel/early_ta.c1
-rw-r--r--core/arch/arm/kernel/elf32.h1
-rw-r--r--core/arch/arm/kernel/elf64.h1
-rw-r--r--core/arch/arm/kernel/elf_common.h1
-rw-r--r--core/arch/arm/kernel/elf_load.c1
-rw-r--r--core/arch/arm/kernel/elf_load.h1
-rw-r--r--core/arch/arm/kernel/generic_boot.c1
-rw-r--r--core/arch/arm/kernel/generic_entry_a32.S1
-rw-r--r--core/arch/arm/kernel/generic_entry_a64.S1
-rw-r--r--core/arch/arm/kernel/kern.ld.S1
-rw-r--r--core/arch/arm/kernel/link_dummies.c1
-rw-r--r--core/arch/arm/kernel/link_dummy.ld1
-rw-r--r--core/arch/arm/kernel/misc_a32.S1
-rw-r--r--core/arch/arm/kernel/misc_a64.S1
-rw-r--r--core/arch/arm/kernel/mutex.c1
-rw-r--r--core/arch/arm/kernel/otp_stubs.c1
-rw-r--r--core/arch/arm/kernel/pm_stubs.c1
-rw-r--r--core/arch/arm/kernel/proc_a32.S1
-rw-r--r--core/arch/arm/kernel/proc_a64.S1
-rw-r--r--core/arch/arm/kernel/pseudo_ta.c1
-rw-r--r--core/arch/arm/kernel/ree_fs_ta.c1
-rw-r--r--core/arch/arm/kernel/spin_lock_a32.S1
-rw-r--r--core/arch/arm/kernel/spin_lock_a64.S1
-rw-r--r--core/arch/arm/kernel/spin_lock_debug.c1
-rw-r--r--core/arch/arm/kernel/tee_l2cc_mutex.c1
-rw-r--r--core/arch/arm/kernel/tee_time.c1
-rw-r--r--core/arch/arm/kernel/tee_time_arm_cntpct.c1
-rw-r--r--core/arch/arm/kernel/tee_time_ree.c1
-rw-r--r--core/arch/arm/kernel/thread.c1
-rw-r--r--core/arch/arm/kernel/thread_a32.S1
-rw-r--r--core/arch/arm/kernel/thread_a64.S1
-rw-r--r--core/arch/arm/kernel/thread_private.h1
-rw-r--r--core/arch/arm/kernel/tlb_helpers_a32.S1
-rw-r--r--core/arch/arm/kernel/tlb_helpers_a64.S1
-rw-r--r--core/arch/arm/kernel/trace_ext.c1
-rw-r--r--core/arch/arm/kernel/tz_ssvce_pl310_a32.S1
-rw-r--r--core/arch/arm/kernel/unwind_arm32.c1
-rw-r--r--core/arch/arm/kernel/unwind_arm64.c1
-rw-r--r--core/arch/arm/kernel/user_ta.c1
-rw-r--r--core/arch/arm/kernel/vfp.c1
-rw-r--r--core/arch/arm/kernel/vfp_a32.S1
-rw-r--r--core/arch/arm/kernel/vfp_a64.S1
-rw-r--r--core/arch/arm/kernel/vfp_private.h1
-rw-r--r--core/arch/arm/kernel/wait_queue.c1
-rw-r--r--core/arch/arm/mm/core_mmu.c1
-rw-r--r--core/arch/arm/mm/core_mmu_lpae.c1
-rw-r--r--core/arch/arm/mm/core_mmu_private.h1
-rw-r--r--core/arch/arm/mm/core_mmu_v7.c1
-rw-r--r--core/arch/arm/mm/mobj.c1
-rw-r--r--core/arch/arm/mm/pgt_cache.c1
-rw-r--r--core/arch/arm/mm/tee_mm.c1
-rw-r--r--core/arch/arm/mm/tee_mmu.c1
-rw-r--r--core/arch/arm/mm/tee_pager.c1
-rw-r--r--core/arch/arm/plat-d02/main.c1
-rw-r--r--core/arch/arm/plat-d02/platform_config.h1
-rw-r--r--core/arch/arm/plat-hikey/hikey_peripherals.h1
-rw-r--r--core/arch/arm/plat-hikey/main.c1
-rw-r--r--core/arch/arm/plat-hikey/platform_config.h1
-rw-r--r--core/arch/arm/plat-hikey/spi_test.c1
-rw-r--r--core/arch/arm/plat-imx/a7_plat_init.S1
-rw-r--r--core/arch/arm/plat-imx/a9_plat_init.S1
-rw-r--r--core/arch/arm/plat-imx/config/config_imx6sx.h1
-rw-r--r--core/arch/arm/plat-imx/config/config_imx7.h1
-rw-r--r--core/arch/arm/plat-imx/imx-common.c1
-rw-r--r--core/arch/arm/plat-imx/imx-regs.h1
-rw-r--r--core/arch/arm/plat-imx/imx.h1
-rw-r--r--core/arch/arm/plat-imx/imx6.c1
-rw-r--r--core/arch/arm/plat-imx/imx6ul.c1
-rw-r--r--core/arch/arm/plat-imx/imx7.c1
-rw-r--r--core/arch/arm/plat-imx/imx_pl310.c1
-rw-r--r--core/arch/arm/plat-imx/imx_pm.h1
-rw-r--r--core/arch/arm/plat-imx/main.c1
-rw-r--r--core/arch/arm/plat-imx/mmdc.c1
-rw-r--r--core/arch/arm/plat-imx/mmdc.h1
-rw-r--r--core/arch/arm/plat-imx/platform_config.h1
-rw-r--r--core/arch/arm/plat-imx/pm/gpcv2.c1
-rw-r--r--core/arch/arm/plat-imx/pm/imx7_suspend.c1
-rw-r--r--core/arch/arm/plat-imx/pm/pm-imx7.c1
-rw-r--r--core/arch/arm/plat-imx/pm/psci-suspend-imx7.S1
-rw-r--r--core/arch/arm/plat-imx/pm/psci.c1
-rw-r--r--core/arch/arm/plat-ls/ls_core_pos_a32.S1
-rw-r--r--core/arch/arm/plat-ls/ls_core_pos_a64.S1
-rw-r--r--core/arch/arm/plat-ls/main.c1
-rw-r--r--core/arch/arm/plat-ls/plat_init.S1
-rw-r--r--core/arch/arm/plat-ls/platform_config.h1
-rw-r--r--core/arch/arm/plat-marvell/armada3700/hal_sec_perf.c1
-rw-r--r--core/arch/arm/plat-marvell/armada7k8k/hal_sec_perf.c1
-rw-r--r--core/arch/arm/plat-marvell/main.c1
-rw-r--r--core/arch/arm/plat-marvell/platform_config.h1
-rw-r--r--core/arch/arm/plat-mediatek/main.c1
-rw-r--r--core/arch/arm/plat-mediatek/platform_config.h1
-rw-r--r--core/arch/arm/plat-rcar/main.c1
-rw-r--r--core/arch/arm/plat-rcar/platform_config.h1
-rw-r--r--core/arch/arm/plat-rockchip/common.h1
-rw-r--r--core/arch/arm/plat-rockchip/core_pos_a32.S1
-rw-r--r--core/arch/arm/plat-rockchip/cru.h1
-rw-r--r--core/arch/arm/plat-rockchip/grf.h1
-rw-r--r--core/arch/arm/plat-rockchip/main.c1
-rw-r--r--core/arch/arm/plat-rockchip/plat_init.S1
-rw-r--r--core/arch/arm/plat-rockchip/platform.c1
-rw-r--r--core/arch/arm/plat-rockchip/platform_config.h1
-rw-r--r--core/arch/arm/plat-rockchip/psci_rk322x.c1
-rw-r--r--core/arch/arm/plat-rpi3/main.c1
-rw-r--r--core/arch/arm/plat-rpi3/platform_config.h1
-rw-r--r--core/arch/arm/plat-sam/main.c1
-rw-r--r--core/arch/arm/plat-sam/matrix.c1
-rw-r--r--core/arch/arm/plat-sam/matrix.h1
-rw-r--r--core/arch/arm/plat-sam/platform_config.h1
-rw-r--r--core/arch/arm/plat-sam/sama5d2.h1
-rw-r--r--core/arch/arm/plat-sam/tz_matrix.h1
-rw-r--r--core/arch/arm/plat-sprd/console.c1
-rw-r--r--core/arch/arm/plat-sprd/main.c1
-rw-r--r--core/arch/arm/plat-sprd/platform_config.h1
-rw-r--r--core/arch/arm/plat-stm/main.c1
-rw-r--r--core/arch/arm/plat-stm/platform_config.h1
-rw-r--r--core/arch/arm/plat-stm/rng_support.c1
-rw-r--r--core/arch/arm/plat-stm/tz_a9init.S1
-rw-r--r--core/arch/arm/plat-sunxi/entry.S1
-rw-r--r--core/arch/arm/plat-sunxi/head.c1
-rw-r--r--core/arch/arm/plat-sunxi/kern.ld.S1
-rw-r--r--core/arch/arm/plat-sunxi/main.c1
-rw-r--r--core/arch/arm/plat-sunxi/platform.c1
-rw-r--r--core/arch/arm/plat-sunxi/platform.h1
-rw-r--r--core/arch/arm/plat-sunxi/platform_config.h1
-rw-r--r--core/arch/arm/plat-sunxi/rng_support.c1
-rw-r--r--core/arch/arm/plat-sunxi/smp_boot.S1
-rw-r--r--core/arch/arm/plat-sunxi/smp_fixup.S1
-rw-r--r--core/arch/arm/plat-ti/a9_plat_init.S1
-rw-r--r--core/arch/arm/plat-ti/api_monitor_index_a15.h1
-rw-r--r--core/arch/arm/plat-ti/api_monitor_index_a9.h1
-rw-r--r--core/arch/arm/plat-ti/main.c1
-rw-r--r--core/arch/arm/plat-ti/platform_config.h1
-rw-r--r--core/arch/arm/plat-ti/sm_platform_handler_a15.c1
-rw-r--r--core/arch/arm/plat-ti/sm_platform_handler_a9.c1
-rw-r--r--core/arch/arm/plat-ti/ti_pl310.c1
-rw-r--r--core/arch/arm/plat-vexpress/juno_core_pos_a32.S1
-rw-r--r--core/arch/arm/plat-vexpress/juno_core_pos_a64.S1
-rw-r--r--core/arch/arm/plat-vexpress/main.c1
-rw-r--r--core/arch/arm/plat-vexpress/platform_config.h1
-rw-r--r--core/arch/arm/plat-vexpress/vendor_props.c1
-rw-r--r--core/arch/arm/plat-zynq7k/main.c1
-rw-r--r--core/arch/arm/plat-zynq7k/plat_init.S1
-rw-r--r--core/arch/arm/plat-zynq7k/platform_config.h1
-rw-r--r--core/arch/arm/plat-zynq7k/platform_smc.h1
-rw-r--r--core/arch/arm/plat-zynqmp/main.c1
-rw-r--r--core/arch/arm/plat-zynqmp/platform_config.h1
-rw-r--r--core/arch/arm/pta/benchmark.c1
-rw-r--r--core/arch/arm/pta/core_fs_htree_tests.c1
-rw-r--r--core/arch/arm/pta/core_self_tests.c1
-rw-r--r--core/arch/arm/pta/core_self_tests.h1
-rw-r--r--core/arch/arm/pta/gprof.c1
-rw-r--r--core/arch/arm/pta/interrupt_tests.c1
-rw-r--r--core/arch/arm/pta/pta_invoke_tests.c1
-rw-r--r--core/arch/arm/pta/se_api_self_tests.c1
-rw-r--r--core/arch/arm/pta/stats.c1
-rw-r--r--core/arch/arm/sm/pm.c1
-rw-r--r--core/arch/arm/sm/pm_a32.S1
-rw-r--r--core/arch/arm/sm/psci-helper.S1
-rw-r--r--core/arch/arm/sm/psci.c1
-rw-r--r--core/arch/arm/sm/sm.c1
-rw-r--r--core/arch/arm/sm/sm_a32.S1
-rw-r--r--core/arch/arm/sm/sm_private.h1
-rw-r--r--core/arch/arm/sm/std_smc.c1
-rw-r--r--core/arch/arm/tee/arch_svc.c1
-rw-r--r--core/arch/arm/tee/arch_svc_a32.S1
-rw-r--r--core/arch/arm/tee/arch_svc_a64.S1
-rw-r--r--core/arch/arm/tee/arch_svc_private.h1
-rw-r--r--core/arch/arm/tee/cache.c1
-rw-r--r--core/arch/arm/tee/entry_fast.c1
-rw-r--r--core/arch/arm/tee/entry_std.c1
-rw-r--r--core/arch/arm/tee/init.c1
-rw-r--r--core/arch/arm/tee/pta_socket.c1
-rw-r--r--core/arch/arm/tee/svc_cache.c1
-rw-r--r--core/arch/arm/tee/svc_dummy.c1
219 files changed, 219 insertions, 0 deletions
diff --git a/core/arch/arm/include/arm.h b/core/arch/arm/include/arm.h
index da459996..97516645 100644
--- a/core/arch/arm/include/arm.h
+++ b/core/arch/arm/include/arm.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/arm32.h b/core/arch/arm/include/arm32.h
index 109e64c3..0d4c2623 100644
--- a/core/arch/arm/include/arm32.h
+++ b/core/arch/arm/include/arm32.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/include/arm32_macros.S b/core/arch/arm/include/arm32_macros.S
index 68136a40..2f8ec7ff 100644
--- a/core/arch/arm/include/arm32_macros.S
+++ b/core/arch/arm/include/arm32_macros.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/include/arm32_macros_cortex_a9.S b/core/arch/arm/include/arm32_macros_cortex_a9.S
index 57a2a104..4960e9ff 100644
--- a/core/arch/arm/include/arm32_macros_cortex_a9.S
+++ b/core/arch/arm/include/arm32_macros_cortex_a9.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, Freescale Semiconductor, Inc.
* All rights reserved.
diff --git a/core/arch/arm/include/arm64.h b/core/arch/arm/include/arm64.h
index 388f5448..01be844b 100644
--- a/core/arch/arm/include/arm64.h
+++ b/core/arch/arm/include/arm64.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/arm64_macros.S b/core/arch/arm/include/arm64_macros.S
index 04d684c1..28c94760 100644
--- a/core/arch/arm/include/arm64_macros.S
+++ b/core/arch/arm/include/arm64_macros.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/abort.h b/core/arch/arm/include/kernel/abort.h
index 95101c05..ec74b997 100644
--- a/core/arch/arm/include/kernel/abort.h
+++ b/core/arch/arm/include/kernel/abort.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/cache_helpers.h b/core/arch/arm/include/kernel/cache_helpers.h
index 44433117..00a59a7b 100644
--- a/core/arch/arm/include/kernel/cache_helpers.h
+++ b/core/arch/arm/include/kernel/cache_helpers.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/delay.h b/core/arch/arm/include/kernel/delay.h
index e168d4fc..1d693439 100644
--- a/core/arch/arm/include/kernel/delay.h
+++ b/core/arch/arm/include/kernel/delay.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2017, Fuzhou Rockchip Electronics Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/early_ta.h b/core/arch/arm/include/kernel/early_ta.h
index 5b63b33a..021dde39 100644
--- a/core/arch/arm/include/kernel/early_ta.h
+++ b/core/arch/arm/include/kernel/early_ta.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/generic_boot.h b/core/arch/arm/include/kernel/generic_boot.h
index 4e577228..12e8712c 100644
--- a/core/arch/arm/include/kernel/generic_boot.h
+++ b/core/arch/arm/include/kernel/generic_boot.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/linker.h b/core/arch/arm/include/kernel/linker.h
index 8b2cd8cc..676f44f4 100644
--- a/core/arch/arm/include/kernel/linker.h
+++ b/core/arch/arm/include/kernel/linker.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/misc.h b/core/arch/arm/include/kernel/misc.h
index 13f87967..67d40b3c 100644
--- a/core/arch/arm/include/kernel/misc.h
+++ b/core/arch/arm/include/kernel/misc.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/mutex.h b/core/arch/arm/include/kernel/mutex.h
index 2cedee67..f25d693a 100644
--- a/core/arch/arm/include/kernel/mutex.h
+++ b/core/arch/arm/include/kernel/mutex.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014-2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/pm_stubs.h b/core/arch/arm/include/kernel/pm_stubs.h
index bd918707..bab0f1c6 100644
--- a/core/arch/arm/include/kernel/pm_stubs.h
+++ b/core/arch/arm/include/kernel/pm_stubs.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/pseudo_ta.h b/core/arch/arm/include/kernel/pseudo_ta.h
index c1250091..0d87b7ed 100644
--- a/core/arch/arm/include/kernel/pseudo_ta.h
+++ b/core/arch/arm/include/kernel/pseudo_ta.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/spinlock.h b/core/arch/arm/include/kernel/spinlock.h
index 2437bf2d..fc7e392f 100644
--- a/core/arch/arm/include/kernel/spinlock.h
+++ b/core/arch/arm/include/kernel/spinlock.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* Copyright (c) 2016, Linaro Limited
diff --git a/core/arch/arm/include/kernel/tee_l2cc_mutex.h b/core/arch/arm/include/kernel/tee_l2cc_mutex.h
index 508a5101..71aedcff 100644
--- a/core/arch/arm/include/kernel/tee_l2cc_mutex.h
+++ b/core/arch/arm/include/kernel/tee_l2cc_mutex.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/thread.h b/core/arch/arm/include/kernel/thread.h
index 66095d29..b2a46506 100644
--- a/core/arch/arm/include/kernel/thread.h
+++ b/core/arch/arm/include/kernel/thread.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* Copyright (c) 2016-2017, Linaro Limited
diff --git a/core/arch/arm/include/kernel/thread_defs.h b/core/arch/arm/include/kernel/thread_defs.h
index e0818952..25a4c27b 100644
--- a/core/arch/arm/include/kernel/thread_defs.h
+++ b/core/arch/arm/include/kernel/thread_defs.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/time_source.h b/core/arch/arm/include/kernel/time_source.h
index ddabfe99..0c0bcb33 100644
--- a/core/arch/arm/include/kernel/time_source.h
+++ b/core/arch/arm/include/kernel/time_source.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/tlb_helpers.h b/core/arch/arm/include/kernel/tlb_helpers.h
index 6dea8611..0a789b70 100644
--- a/core/arch/arm/include/kernel/tlb_helpers.h
+++ b/core/arch/arm/include/kernel/tlb_helpers.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* Copyright (c) 2017, Linaro Limited
diff --git a/core/arch/arm/include/kernel/tz_proc_def.h b/core/arch/arm/include/kernel/tz_proc_def.h
index abe281b8..2720b41c 100644
--- a/core/arch/arm/include/kernel/tz_proc_def.h
+++ b/core/arch/arm/include/kernel/tz_proc_def.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/tz_ssvce_def.h b/core/arch/arm/include/kernel/tz_ssvce_def.h
index 3e9f9fcb..75cf62bf 100644
--- a/core/arch/arm/include/kernel/tz_ssvce_def.h
+++ b/core/arch/arm/include/kernel/tz_ssvce_def.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/tz_ssvce_pl310.h b/core/arch/arm/include/kernel/tz_ssvce_pl310.h
index 88b91e1d..561c55bc 100644
--- a/core/arch/arm/include/kernel/tz_ssvce_pl310.h
+++ b/core/arch/arm/include/kernel/tz_ssvce_pl310.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/user_ta.h b/core/arch/arm/include/kernel/user_ta.h
index c945fdad..5f8c09f2 100644
--- a/core/arch/arm/include/kernel/user_ta.h
+++ b/core/arch/arm/include/kernel/user_ta.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/vfp.h b/core/arch/arm/include/kernel/vfp.h
index 267dee23..8f009ee0 100644
--- a/core/arch/arm/include/kernel/vfp.h
+++ b/core/arch/arm/include/kernel/vfp.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/kernel/wait_queue.h b/core/arch/arm/include/kernel/wait_queue.h
index 81133827..245090e0 100644
--- a/core/arch/arm/include/kernel/wait_queue.h
+++ b/core/arch/arm/include/kernel/wait_queue.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/mm/core_memprot.h b/core/arch/arm/include/mm/core_memprot.h
index 6bafbfa5..ed08cad9 100644
--- a/core/arch/arm/include/mm/core_memprot.h
+++ b/core/arch/arm/include/mm/core_memprot.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/include/mm/core_mmu.h b/core/arch/arm/include/mm/core_mmu.h
index b8be19a5..156399c6 100644
--- a/core/arch/arm/include/mm/core_mmu.h
+++ b/core/arch/arm/include/mm/core_mmu.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/include/mm/mobj.h b/core/arch/arm/include/mm/mobj.h
index 8125910c..6741eab1 100644
--- a/core/arch/arm/include/mm/mobj.h
+++ b/core/arch/arm/include/mm/mobj.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016-2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/mm/pgt_cache.h b/core/arch/arm/include/mm/pgt_cache.h
index c300591c..d8eab340 100644
--- a/core/arch/arm/include/mm/pgt_cache.h
+++ b/core/arch/arm/include/mm/pgt_cache.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/mm/tee_pager.h b/core/arch/arm/include/mm/tee_pager.h
index c5bc38d7..8fb05823 100644
--- a/core/arch/arm/include/mm/tee_pager.h
+++ b/core/arch/arm/include/mm/tee_pager.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/include/sm/optee_smc.h b/core/arch/arm/include/sm/optee_smc.h
index 11c78729..53e471ac 100644
--- a/core/arch/arm/include/sm/optee_smc.h
+++ b/core/arch/arm/include/sm/optee_smc.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/sm/pm.h b/core/arch/arm/include/sm/pm.h
index 7048e2b5..939f966e 100644
--- a/core/arch/arm/include/sm/pm.h
+++ b/core/arch/arm/include/sm/pm.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright 2017 NXP
* All rights reserved.
diff --git a/core/arch/arm/include/sm/sm.h b/core/arch/arm/include/sm/sm.h
index 320e26b2..4a77dbab 100644
--- a/core/arch/arm/include/sm/sm.h
+++ b/core/arch/arm/include/sm/sm.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/include/sm/tee_mon.h b/core/arch/arm/include/sm/tee_mon.h
index 725afb99..a136a6dd 100644
--- a/core/arch/arm/include/sm/tee_mon.h
+++ b/core/arch/arm/include/sm/tee_mon.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/include/sm/teesmc_opteed.h b/core/arch/arm/include/sm/teesmc_opteed.h
index c6e25e25..c9543030 100644
--- a/core/arch/arm/include/sm/teesmc_opteed.h
+++ b/core/arch/arm/include/sm/teesmc_opteed.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/sm/teesmc_opteed_macros.h b/core/arch/arm/include/sm/teesmc_opteed_macros.h
index 00e9eed5..98456d5d 100644
--- a/core/arch/arm/include/sm/teesmc_opteed_macros.h
+++ b/core/arch/arm/include/sm/teesmc_opteed_macros.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/tee/arch_svc.h b/core/arch/arm/include/tee/arch_svc.h
index 18488651..527f50c0 100644
--- a/core/arch/arm/include/tee/arch_svc.h
+++ b/core/arch/arm/include/tee/arch_svc.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/tee/entry_fast.h b/core/arch/arm/include/tee/entry_fast.h
index a9951f2f..55c515bd 100644
--- a/core/arch/arm/include/tee/entry_fast.h
+++ b/core/arch/arm/include/tee/entry_fast.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/include/tee/entry_std.h b/core/arch/arm/include/tee/entry_std.h
index d5459123..ed06790f 100644
--- a/core/arch/arm/include/tee/entry_std.h
+++ b/core/arch/arm/include/tee/entry_std.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/abort.c b/core/arch/arm/kernel/abort.c
index bac97eff..bb308402 100644
--- a/core/arch/arm/kernel/abort.c
+++ b/core/arch/arm/kernel/abort.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/asm-defines.c b/core/arch/arm/kernel/asm-defines.c
index fd917039..4dfaa510 100644
--- a/core/arch/arm/kernel/asm-defines.c
+++ b/core/arch/arm/kernel/asm-defines.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/delay.c b/core/arch/arm/kernel/delay.c
index 6407c9cf..dfd1dd79 100644
--- a/core/arch/arm/kernel/delay.c
+++ b/core/arch/arm/kernel/delay.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2017, Fuzhou Rockchip Electronics Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/kernel/early_ta.c b/core/arch/arm/kernel/early_ta.c
index 4e247484..b8090809 100644
--- a/core/arch/arm/kernel/early_ta.c
+++ b/core/arch/arm/kernel/early_ta.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/elf32.h b/core/arch/arm/kernel/elf32.h
index d3742085..96707b67 100644
--- a/core/arch/arm/kernel/elf32.h
+++ b/core/arch/arm/kernel/elf32.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*-
* Copyright (c) 1996-1998 John D. Polstra.
* All rights reserved.
diff --git a/core/arch/arm/kernel/elf64.h b/core/arch/arm/kernel/elf64.h
index c468dcda..d851b609 100644
--- a/core/arch/arm/kernel/elf64.h
+++ b/core/arch/arm/kernel/elf64.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*-
* Copyright (c) 1996-1998 John D. Polstra.
* All rights reserved.
diff --git a/core/arch/arm/kernel/elf_common.h b/core/arch/arm/kernel/elf_common.h
index a9cb6afa..0d7ab0f2 100644
--- a/core/arch/arm/kernel/elf_common.h
+++ b/core/arch/arm/kernel/elf_common.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*-
* Copyright (c) 2000, 2001, 2008, 2011, David E. O'Brien
* Copyright (c) 1998 John D. Polstra.
diff --git a/core/arch/arm/kernel/elf_load.c b/core/arch/arm/kernel/elf_load.c
index a981d1f8..f779dcf5 100644
--- a/core/arch/arm/kernel/elf_load.c
+++ b/core/arch/arm/kernel/elf_load.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/elf_load.h b/core/arch/arm/kernel/elf_load.h
index 01b607af..a576f126 100644
--- a/core/arch/arm/kernel/elf_load.h
+++ b/core/arch/arm/kernel/elf_load.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/generic_boot.c b/core/arch/arm/kernel/generic_boot.c
index 4c7cc6d4..2c8aaa94 100644
--- a/core/arch/arm/kernel/generic_boot.c
+++ b/core/arch/arm/kernel/generic_boot.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/generic_entry_a32.S b/core/arch/arm/kernel/generic_entry_a32.S
index 8b703034..dad9b669 100644
--- a/core/arch/arm/kernel/generic_entry_a32.S
+++ b/core/arch/arm/kernel/generic_entry_a32.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/generic_entry_a64.S b/core/arch/arm/kernel/generic_entry_a64.S
index 26cef79c..6eb24051 100644
--- a/core/arch/arm/kernel/generic_entry_a64.S
+++ b/core/arch/arm/kernel/generic_entry_a64.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/kern.ld.S b/core/arch/arm/kernel/kern.ld.S
index 30f7cc01..a83c8806 100644
--- a/core/arch/arm/kernel/kern.ld.S
+++ b/core/arch/arm/kernel/kern.ld.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: (BSD-2-Clause AND MIT) */
/*
* Copyright (c) 2014, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/link_dummies.c b/core/arch/arm/kernel/link_dummies.c
index 680a7762..80df01d6 100644
--- a/core/arch/arm/kernel/link_dummies.c
+++ b/core/arch/arm/kernel/link_dummies.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/link_dummy.ld b/core/arch/arm/kernel/link_dummy.ld
index c434f313..094a3df9 100644
--- a/core/arch/arm/kernel/link_dummy.ld
+++ b/core/arch/arm/kernel/link_dummy.ld
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/misc_a32.S b/core/arch/arm/kernel/misc_a32.S
index fabe33ed..d350bcb0 100644
--- a/core/arch/arm/kernel/misc_a32.S
+++ b/core/arch/arm/kernel/misc_a32.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/kernel/misc_a64.S b/core/arch/arm/kernel/misc_a64.S
index 65a31bca..08555fbd 100644
--- a/core/arch/arm/kernel/misc_a64.S
+++ b/core/arch/arm/kernel/misc_a64.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/mutex.c b/core/arch/arm/kernel/mutex.c
index 805e9aa9..9c86ae90 100644
--- a/core/arch/arm/kernel/mutex.c
+++ b/core/arch/arm/kernel/mutex.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015-2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/otp_stubs.c b/core/arch/arm/kernel/otp_stubs.c
index b12d5e5d..f5f025e2 100644
--- a/core/arch/arm/kernel/otp_stubs.c
+++ b/core/arch/arm/kernel/otp_stubs.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/pm_stubs.c b/core/arch/arm/kernel/pm_stubs.c
index db77e7c4..fce99af5 100644
--- a/core/arch/arm/kernel/pm_stubs.c
+++ b/core/arch/arm/kernel/pm_stubs.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/proc_a32.S b/core/arch/arm/kernel/proc_a32.S
index f0446a6a..6ea6a5ff 100644
--- a/core/arch/arm/kernel/proc_a32.S
+++ b/core/arch/arm/kernel/proc_a32.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
/*
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/kernel/proc_a64.S b/core/arch/arm/kernel/proc_a64.S
index 5db895a8..612fd263 100644
--- a/core/arch/arm/kernel/proc_a64.S
+++ b/core/arch/arm/kernel/proc_a64.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/pseudo_ta.c b/core/arch/arm/kernel/pseudo_ta.c
index 87f9aebf..3326a1a8 100644
--- a/core/arch/arm/kernel/pseudo_ta.c
+++ b/core/arch/arm/kernel/pseudo_ta.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* Copyright (c) 2015, Linaro Limited
diff --git a/core/arch/arm/kernel/ree_fs_ta.c b/core/arch/arm/kernel/ree_fs_ta.c
index bf1ebf02..d417e7bd 100644
--- a/core/arch/arm/kernel/ree_fs_ta.c
+++ b/core/arch/arm/kernel/ree_fs_ta.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/spin_lock_a32.S b/core/arch/arm/kernel/spin_lock_a32.S
index 52d8e9fc..6c39f6c5 100644
--- a/core/arch/arm/kernel/spin_lock_a32.S
+++ b/core/arch/arm/kernel/spin_lock_a32.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
diff --git a/core/arch/arm/kernel/spin_lock_a64.S b/core/arch/arm/kernel/spin_lock_a64.S
index 97fce42f..d48a3cc8 100644
--- a/core/arch/arm/kernel/spin_lock_a64.S
+++ b/core/arch/arm/kernel/spin_lock_a64.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: (BSD-2-Clause AND BSD-3-Clause) */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/spin_lock_debug.c b/core/arch/arm/kernel/spin_lock_debug.c
index 00a2a004..3691087b 100644
--- a/core/arch/arm/kernel/spin_lock_debug.c
+++ b/core/arch/arm/kernel/spin_lock_debug.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/tee_l2cc_mutex.c b/core/arch/arm/kernel/tee_l2cc_mutex.c
index 2afda4de..5129c14c 100644
--- a/core/arch/arm/kernel/tee_l2cc_mutex.c
+++ b/core/arch/arm/kernel/tee_l2cc_mutex.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/kernel/tee_time.c b/core/arch/arm/kernel/tee_time.c
index 671a8e9b..8a9318d2 100644
--- a/core/arch/arm/kernel/tee_time.c
+++ b/core/arch/arm/kernel/tee_time.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Linaro Limied
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/kernel/tee_time_arm_cntpct.c b/core/arch/arm/kernel/tee_time_arm_cntpct.c
index 59d6ea43..f9b28989 100644
--- a/core/arch/arm/kernel/tee_time_arm_cntpct.c
+++ b/core/arch/arm/kernel/tee_time_arm_cntpct.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, 2015 Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/tee_time_ree.c b/core/arch/arm/kernel/tee_time_ree.c
index d2a9bb15..d98b3e71 100644
--- a/core/arch/arm/kernel/tee_time_ree.c
+++ b/core/arch/arm/kernel/tee_time_ree.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/thread.c b/core/arch/arm/kernel/thread.c
index 26908a1b..43e5fb51 100644
--- a/core/arch/arm/kernel/thread.c
+++ b/core/arch/arm/kernel/thread.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/kernel/thread_a32.S b/core/arch/arm/kernel/thread_a32.S
index 31dfba30..878ee3fd 100644
--- a/core/arch/arm/kernel/thread_a32.S
+++ b/core/arch/arm/kernel/thread_a32.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016-2017, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/kernel/thread_a64.S b/core/arch/arm/kernel/thread_a64.S
index cdc5c90d..5fd978c4 100644
--- a/core/arch/arm/kernel/thread_a64.S
+++ b/core/arch/arm/kernel/thread_a64.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015-2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/thread_private.h b/core/arch/arm/kernel/thread_private.h
index c66b6fbd..0b7a5668 100644
--- a/core/arch/arm/kernel/thread_private.h
+++ b/core/arch/arm/kernel/thread_private.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/kernel/tlb_helpers_a32.S b/core/arch/arm/kernel/tlb_helpers_a32.S
index bff1ece0..1c4100c4 100644
--- a/core/arch/arm/kernel/tlb_helpers_a32.S
+++ b/core/arch/arm/kernel/tlb_helpers_a32.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* Copyright (c) 2017, Linaro Limited
diff --git a/core/arch/arm/kernel/tlb_helpers_a64.S b/core/arch/arm/kernel/tlb_helpers_a64.S
index a1a5816a..88930d7d 100644
--- a/core/arch/arm/kernel/tlb_helpers_a64.S
+++ b/core/arch/arm/kernel/tlb_helpers_a64.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015-2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/trace_ext.c b/core/arch/arm/kernel/trace_ext.c
index 35fe8af6..5b15c984 100644
--- a/core/arch/arm/kernel/trace_ext.c
+++ b/core/arch/arm/kernel/trace_ext.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/tz_ssvce_pl310_a32.S b/core/arch/arm/kernel/tz_ssvce_pl310_a32.S
index 3944b034..b504f770 100644
--- a/core/arch/arm/kernel/tz_ssvce_pl310_a32.S
+++ b/core/arch/arm/kernel/tz_ssvce_pl310_a32.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/kernel/unwind_arm32.c b/core/arch/arm/kernel/unwind_arm32.c
index 635c1956..334af5e8 100644
--- a/core/arch/arm/kernel/unwind_arm32.c
+++ b/core/arch/arm/kernel/unwind_arm32.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright 2015 Linaro Limited
* Copyright 2013-2014 Andrew Turner.
diff --git a/core/arch/arm/kernel/unwind_arm64.c b/core/arch/arm/kernel/unwind_arm64.c
index 9f3b3c31..baf4e080 100644
--- a/core/arch/arm/kernel/unwind_arm64.c
+++ b/core/arch/arm/kernel/unwind_arm64.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*-
* Copyright (c) 2015 Linaro Limited
* Copyright (c) 2015 The FreeBSD Foundation
diff --git a/core/arch/arm/kernel/user_ta.c b/core/arch/arm/kernel/user_ta.c
index a96488b2..636ae990 100644
--- a/core/arch/arm/kernel/user_ta.c
+++ b/core/arch/arm/kernel/user_ta.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* Copyright (c) 2015-2017 Linaro Limited
diff --git a/core/arch/arm/kernel/vfp.c b/core/arch/arm/kernel/vfp.c
index 99036428..0b0ec6ca 100644
--- a/core/arch/arm/kernel/vfp.c
+++ b/core/arch/arm/kernel/vfp.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/vfp_a32.S b/core/arch/arm/kernel/vfp_a32.S
index fb09b081..0e0524f3 100644
--- a/core/arch/arm/kernel/vfp_a32.S
+++ b/core/arch/arm/kernel/vfp_a32.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015-2016, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/vfp_a64.S b/core/arch/arm/kernel/vfp_a64.S
index 53210c50..77a263c4 100644
--- a/core/arch/arm/kernel/vfp_a64.S
+++ b/core/arch/arm/kernel/vfp_a64.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/vfp_private.h b/core/arch/arm/kernel/vfp_private.h
index 0c0ffba7..02780b7e 100644
--- a/core/arch/arm/kernel/vfp_private.h
+++ b/core/arch/arm/kernel/vfp_private.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/kernel/wait_queue.c b/core/arch/arm/kernel/wait_queue.c
index 13048bcb..7aaaedff 100644
--- a/core/arch/arm/kernel/wait_queue.c
+++ b/core/arch/arm/kernel/wait_queue.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015-2016, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/mm/core_mmu.c b/core/arch/arm/mm/core_mmu.c
index 87735cf1..1203e200 100644
--- a/core/arch/arm/mm/core_mmu.c
+++ b/core/arch/arm/mm/core_mmu.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/mm/core_mmu_lpae.c b/core/arch/arm/mm/core_mmu_lpae.c
index 2ea4eca1..c4e76fcf 100644
--- a/core/arch/arm/mm/core_mmu_lpae.c
+++ b/core/arch/arm/mm/core_mmu_lpae.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: (BSD-2-Clause AND BSD-3-Clause)
/*
* Copyright (c) 2015-2016, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/mm/core_mmu_private.h b/core/arch/arm/mm/core_mmu_private.h
index 3b972e52..c2ab205f 100644
--- a/core/arch/arm/mm/core_mmu_private.h
+++ b/core/arch/arm/mm/core_mmu_private.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015-2016, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/mm/core_mmu_v7.c b/core/arch/arm/mm/core_mmu_v7.c
index 5dad4491..7dbf2ecd 100644
--- a/core/arch/arm/mm/core_mmu_v7.c
+++ b/core/arch/arm/mm/core_mmu_v7.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/mm/mobj.c b/core/arch/arm/mm/mobj.c
index 0b477c94..7f736d27 100644
--- a/core/arch/arm/mm/mobj.c
+++ b/core/arch/arm/mm/mobj.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016-2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/mm/pgt_cache.c b/core/arch/arm/mm/pgt_cache.c
index 0ad11aeb..52d74d32 100644
--- a/core/arch/arm/mm/pgt_cache.c
+++ b/core/arch/arm/mm/pgt_cache.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/mm/tee_mm.c b/core/arch/arm/mm/tee_mm.c
index b72e56d1..897b8fde 100644
--- a/core/arch/arm/mm/tee_mm.c
+++ b/core/arch/arm/mm/tee_mm.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/mm/tee_mmu.c b/core/arch/arm/mm/tee_mmu.c
index c12548a5..af1c8670 100644
--- a/core/arch/arm/mm/tee_mmu.c
+++ b/core/arch/arm/mm/tee_mmu.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/mm/tee_pager.c b/core/arch/arm/mm/tee_pager.c
index 099dc2ca..da7c08a6 100644
--- a/core/arch/arm/mm/tee_pager.c
+++ b/core/arch/arm/mm/tee_pager.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/plat-d02/main.c b/core/arch/arm/plat-d02/main.c
index e75f269e..81d80bd7 100644
--- a/core/arch/arm/plat-d02/main.c
+++ b/core/arch/arm/plat-d02/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/plat-d02/platform_config.h b/core/arch/arm/plat-d02/platform_config.h
index ab73b021..4b1791e3 100644
--- a/core/arch/arm/plat-d02/platform_config.h
+++ b/core/arch/arm/plat-d02/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/plat-hikey/hikey_peripherals.h b/core/arch/arm/plat-hikey/hikey_peripherals.h
index 2ba4b252..ee897155 100644
--- a/core/arch/arm/plat-hikey/hikey_peripherals.h
+++ b/core/arch/arm/plat-hikey/hikey_peripherals.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
/*
* Copyright (c) 2016, Linaro Ltd and Contributors. All rights reserved.
* Copyright (c) 2016, Hisilicon Ltd and Contributors. All rights reserved.
diff --git a/core/arch/arm/plat-hikey/main.c b/core/arch/arm/plat-hikey/main.c
index e64b908f..6404d038 100644
--- a/core/arch/arm/plat-hikey/main.c
+++ b/core/arch/arm/plat-hikey/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/plat-hikey/platform_config.h b/core/arch/arm/plat-hikey/platform_config.h
index 43568ffb..36e88066 100644
--- a/core/arch/arm/plat-hikey/platform_config.h
+++ b/core/arch/arm/plat-hikey/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/plat-hikey/spi_test.c b/core/arch/arm/plat-hikey/spi_test.c
index 3992033e..ed978fa6 100644
--- a/core/arch/arm/plat-hikey/spi_test.c
+++ b/core/arch/arm/plat-hikey/spi_test.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/plat-imx/a7_plat_init.S b/core/arch/arm/plat-imx/a7_plat_init.S
index f87f78a6..eb0b8150 100644
--- a/core/arch/arm/plat-imx/a7_plat_init.S
+++ b/core/arch/arm/plat-imx/a7_plat_init.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, NXP
* All rights reserved.
diff --git a/core/arch/arm/plat-imx/a9_plat_init.S b/core/arch/arm/plat-imx/a9_plat_init.S
index 4ec1f8a6..b5f7f42e 100644
--- a/core/arch/arm/plat-imx/a9_plat_init.S
+++ b/core/arch/arm/plat-imx/a9_plat_init.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/plat-imx/config/config_imx6sx.h b/core/arch/arm/plat-imx/config/config_imx6sx.h
index e10aa939..b785f4e8 100644
--- a/core/arch/arm/plat-imx/config/config_imx6sx.h
+++ b/core/arch/arm/plat-imx/config/config_imx6sx.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright 2017 NXP
* All rights reserved.
diff --git a/core/arch/arm/plat-imx/config/config_imx7.h b/core/arch/arm/plat-imx/config/config_imx7.h
index 4066c678..d982f43a 100644
--- a/core/arch/arm/plat-imx/config/config_imx7.h
+++ b/core/arch/arm/plat-imx/config/config_imx7.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright 2017 NXP
* All rights reserved.
diff --git a/core/arch/arm/plat-imx/imx-common.c b/core/arch/arm/plat-imx/imx-common.c
index 650ddd81..d1d9061f 100644
--- a/core/arch/arm/plat-imx/imx-common.c
+++ b/core/arch/arm/plat-imx/imx-common.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2016 Freescale Semiconductor, Inc.
* Copyright 2017 NXP
diff --git a/core/arch/arm/plat-imx/imx-regs.h b/core/arch/arm/plat-imx/imx-regs.h
index a935160a..428f251f 100644
--- a/core/arch/arm/plat-imx/imx-regs.h
+++ b/core/arch/arm/plat-imx/imx-regs.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2015 Freescale Semiconductor, Inc.
* All rights reserved.
diff --git a/core/arch/arm/plat-imx/imx.h b/core/arch/arm/plat-imx/imx.h
index 8f08b8d7..893031a9 100644
--- a/core/arch/arm/plat-imx/imx.h
+++ b/core/arch/arm/plat-imx/imx.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright 2017 NXP
* All rights reserved.
diff --git a/core/arch/arm/plat-imx/imx6.c b/core/arch/arm/plat-imx/imx6.c
index 04b8c01c..d6a7d4cb 100644
--- a/core/arch/arm/plat-imx/imx6.c
+++ b/core/arch/arm/plat-imx/imx6.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2015 Freescale Semiconductor, Inc.
* All rights reserved.
diff --git a/core/arch/arm/plat-imx/imx6ul.c b/core/arch/arm/plat-imx/imx6ul.c
index 795c7504..22d14a8f 100644
--- a/core/arch/arm/plat-imx/imx6ul.c
+++ b/core/arch/arm/plat-imx/imx6ul.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2016 Freescale Semiconductor, Inc.
* All rights reserved.
diff --git a/core/arch/arm/plat-imx/imx7.c b/core/arch/arm/plat-imx/imx7.c
index 731d2854..162eaa07 100644
--- a/core/arch/arm/plat-imx/imx7.c
+++ b/core/arch/arm/plat-imx/imx7.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2017 NXP
* All rights reserved.
diff --git a/core/arch/arm/plat-imx/imx_pl310.c b/core/arch/arm/plat-imx/imx_pl310.c
index 014dcfba..acc5003d 100644
--- a/core/arch/arm/plat-imx/imx_pl310.c
+++ b/core/arch/arm/plat-imx/imx_pl310.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2016 Freescale Semiconductor, Inc.
* All rights reserved.
diff --git a/core/arch/arm/plat-imx/imx_pm.h b/core/arch/arm/plat-imx/imx_pm.h
index 7a0283bd..c7b0340e 100644
--- a/core/arch/arm/plat-imx/imx_pm.h
+++ b/core/arch/arm/plat-imx/imx_pm.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright 2017 NXP
*
diff --git a/core/arch/arm/plat-imx/main.c b/core/arch/arm/plat-imx/main.c
index ff2e97ed..d509c62c 100644
--- a/core/arch/arm/plat-imx/main.c
+++ b/core/arch/arm/plat-imx/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2015 Freescale Semiconductor, Inc.
* All rights reserved.
diff --git a/core/arch/arm/plat-imx/mmdc.c b/core/arch/arm/plat-imx/mmdc.c
index f597f531..577df79d 100644
--- a/core/arch/arm/plat-imx/mmdc.c
+++ b/core/arch/arm/plat-imx/mmdc.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright 2017 NXP
*
diff --git a/core/arch/arm/plat-imx/mmdc.h b/core/arch/arm/plat-imx/mmdc.h
index b2c05ef7..3927522e 100644
--- a/core/arch/arm/plat-imx/mmdc.h
+++ b/core/arch/arm/plat-imx/mmdc.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright 2017 NXP
*
diff --git a/core/arch/arm/plat-imx/platform_config.h b/core/arch/arm/plat-imx/platform_config.h
index e0fdf7cd..e4b303e0 100644
--- a/core/arch/arm/plat-imx/platform_config.h
+++ b/core/arch/arm/plat-imx/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2015 Freescale Semiconductor, Inc.
* All rights reserved.
diff --git a/core/arch/arm/plat-imx/pm/gpcv2.c b/core/arch/arm/plat-imx/pm/gpcv2.c
index ec3a5303..09abdb0a 100644
--- a/core/arch/arm/plat-imx/pm/gpcv2.c
+++ b/core/arch/arm/plat-imx/pm/gpcv2.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2017 NXP
* All rights reserved.
diff --git a/core/arch/arm/plat-imx/pm/imx7_suspend.c b/core/arch/arm/plat-imx/pm/imx7_suspend.c
index 660e71f6..6340c99c 100644
--- a/core/arch/arm/plat-imx/pm/imx7_suspend.c
+++ b/core/arch/arm/plat-imx/pm/imx7_suspend.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2017 NXP
*
diff --git a/core/arch/arm/plat-imx/pm/pm-imx7.c b/core/arch/arm/plat-imx/pm/pm-imx7.c
index 5d1284f3..ebc1f9ce 100644
--- a/core/arch/arm/plat-imx/pm/pm-imx7.c
+++ b/core/arch/arm/plat-imx/pm/pm-imx7.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright 2017 NXP
*
diff --git a/core/arch/arm/plat-imx/pm/psci-suspend-imx7.S b/core/arch/arm/plat-imx/pm/psci-suspend-imx7.S
index cb48a1b4..f5b243d8 100644
--- a/core/arch/arm/plat-imx/pm/psci-suspend-imx7.S
+++ b/core/arch/arm/plat-imx/pm/psci-suspend-imx7.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright 2017 NXP
*
diff --git a/core/arch/arm/plat-imx/pm/psci.c b/core/arch/arm/plat-imx/pm/psci.c
index 47e8b56b..d713f51d 100644
--- a/core/arch/arm/plat-imx/pm/psci.c
+++ b/core/arch/arm/plat-imx/pm/psci.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2016 Freescale Semiconductor, Inc.
* All rights reserved.
diff --git a/core/arch/arm/plat-ls/ls_core_pos_a32.S b/core/arch/arm/plat-ls/ls_core_pos_a32.S
index 62a11170..80dde9c4 100644
--- a/core/arch/arm/plat-ls/ls_core_pos_a32.S
+++ b/core/arch/arm/plat-ls/ls_core_pos_a32.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Freescale Semiconductor, Inc.
* All rights reserved.
diff --git a/core/arch/arm/plat-ls/ls_core_pos_a64.S b/core/arch/arm/plat-ls/ls_core_pos_a64.S
index deead69b..b2128d72 100644
--- a/core/arch/arm/plat-ls/ls_core_pos_a64.S
+++ b/core/arch/arm/plat-ls/ls_core_pos_a64.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright 2017 NXP
* All rights reserved.
diff --git a/core/arch/arm/plat-ls/main.c b/core/arch/arm/plat-ls/main.c
index 5e4fbfe8..9c586b94 100644
--- a/core/arch/arm/plat-ls/main.c
+++ b/core/arch/arm/plat-ls/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2015 Freescale Semiconductor, Inc.
* All rights reserved.
diff --git a/core/arch/arm/plat-ls/plat_init.S b/core/arch/arm/plat-ls/plat_init.S
index 88134806..e0266ee9 100644
--- a/core/arch/arm/plat-ls/plat_init.S
+++ b/core/arch/arm/plat-ls/plat_init.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, Wind River Systems.
* All rights reserved.
diff --git a/core/arch/arm/plat-ls/platform_config.h b/core/arch/arm/plat-ls/platform_config.h
index 575280a7..fc700ba0 100644
--- a/core/arch/arm/plat-ls/platform_config.h
+++ b/core/arch/arm/plat-ls/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2015 Freescale Semiconductor, Inc.
* All rights reserved.
diff --git a/core/arch/arm/plat-marvell/armada3700/hal_sec_perf.c b/core/arch/arm/plat-marvell/armada3700/hal_sec_perf.c
index b69135b9..86520d61 100644
--- a/core/arch/arm/plat-marvell/armada3700/hal_sec_perf.c
+++ b/core/arch/arm/plat-marvell/armada3700/hal_sec_perf.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2017 Marvell International Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-marvell/armada7k8k/hal_sec_perf.c b/core/arch/arm/plat-marvell/armada7k8k/hal_sec_perf.c
index 260882fb..779f7d3c 100644
--- a/core/arch/arm/plat-marvell/armada7k8k/hal_sec_perf.c
+++ b/core/arch/arm/plat-marvell/armada7k8k/hal_sec_perf.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2017 Marvell International Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-marvell/main.c b/core/arch/arm/plat-marvell/main.c
index 7c1bafdf..ca32a102 100644
--- a/core/arch/arm/plat-marvell/main.c
+++ b/core/arch/arm/plat-marvell/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2017 Marvell International Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-marvell/platform_config.h b/core/arch/arm/plat-marvell/platform_config.h
index b86f54ba..070e08d7 100644
--- a/core/arch/arm/plat-marvell/platform_config.h
+++ b/core/arch/arm/plat-marvell/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2017 Marvell International Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-mediatek/main.c b/core/arch/arm/plat-mediatek/main.c
index 4310da24..66be718f 100644
--- a/core/arch/arm/plat-mediatek/main.c
+++ b/core/arch/arm/plat-mediatek/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/plat-mediatek/platform_config.h b/core/arch/arm/plat-mediatek/platform_config.h
index fda55979..9d4b50ce 100644
--- a/core/arch/arm/plat-mediatek/platform_config.h
+++ b/core/arch/arm/plat-mediatek/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/plat-rcar/main.c b/core/arch/arm/plat-rcar/main.c
index a4e85f06..1a8ec843 100644
--- a/core/arch/arm/plat-rcar/main.c
+++ b/core/arch/arm/plat-rcar/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, GlobalLogic
* All rights reserved.
diff --git a/core/arch/arm/plat-rcar/platform_config.h b/core/arch/arm/plat-rcar/platform_config.h
index e5bef5a0..4b0dfc2c 100644
--- a/core/arch/arm/plat-rcar/platform_config.h
+++ b/core/arch/arm/plat-rcar/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, GlobalLogic
* All rights reserved.
diff --git a/core/arch/arm/plat-rockchip/common.h b/core/arch/arm/plat-rockchip/common.h
index 6ee74ce3..df16f3f2 100644
--- a/core/arch/arm/plat-rockchip/common.h
+++ b/core/arch/arm/plat-rockchip/common.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2017, Fuzhou Rockchip Electronics Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-rockchip/core_pos_a32.S b/core/arch/arm/plat-rockchip/core_pos_a32.S
index 0f49f102..6d1399d9 100644
--- a/core/arch/arm/plat-rockchip/core_pos_a32.S
+++ b/core/arch/arm/plat-rockchip/core_pos_a32.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/plat-rockchip/cru.h b/core/arch/arm/plat-rockchip/cru.h
index 62f0b1c9..73792a91 100644
--- a/core/arch/arm/plat-rockchip/cru.h
+++ b/core/arch/arm/plat-rockchip/cru.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2017, Fuzhou Rockchip Electronics Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-rockchip/grf.h b/core/arch/arm/plat-rockchip/grf.h
index 45c74f85..cc16993e 100644
--- a/core/arch/arm/plat-rockchip/grf.h
+++ b/core/arch/arm/plat-rockchip/grf.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2017, Fuzhou Rockchip Electronics Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-rockchip/main.c b/core/arch/arm/plat-rockchip/main.c
index e9c978bf..7d1fda38 100644
--- a/core/arch/arm/plat-rockchip/main.c
+++ b/core/arch/arm/plat-rockchip/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2017, Fuzhou Rockchip Electronics Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-rockchip/plat_init.S b/core/arch/arm/plat-rockchip/plat_init.S
index e20846ba..d756b800 100644
--- a/core/arch/arm/plat-rockchip/plat_init.S
+++ b/core/arch/arm/plat-rockchip/plat_init.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2017, Fuzhou Rockchip Electronics Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-rockchip/platform.c b/core/arch/arm/plat-rockchip/platform.c
index 3fd86f3e..fdf50d76 100644
--- a/core/arch/arm/plat-rockchip/platform.c
+++ b/core/arch/arm/plat-rockchip/platform.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2017, Fuzhou Rockchip Electronics Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-rockchip/platform_config.h b/core/arch/arm/plat-rockchip/platform_config.h
index 00b0a828..4eb36865 100644
--- a/core/arch/arm/plat-rockchip/platform_config.h
+++ b/core/arch/arm/plat-rockchip/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2017, Fuzhou Rockchip Electronics Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-rockchip/psci_rk322x.c b/core/arch/arm/plat-rockchip/psci_rk322x.c
index afd06d33..4504dcc7 100644
--- a/core/arch/arm/plat-rockchip/psci_rk322x.c
+++ b/core/arch/arm/plat-rockchip/psci_rk322x.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2017, Fuzhou Rockchip Electronics Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-rpi3/main.c b/core/arch/arm/plat-rpi3/main.c
index 995b4228..9519bfad 100644
--- a/core/arch/arm/plat-rpi3/main.c
+++ b/core/arch/arm/plat-rpi3/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Sequitur Labs Inc. All rights reserved.
* All rights reserved.
diff --git a/core/arch/arm/plat-rpi3/platform_config.h b/core/arch/arm/plat-rpi3/platform_config.h
index a8c077fa..61a8cb68 100644
--- a/core/arch/arm/plat-rpi3/platform_config.h
+++ b/core/arch/arm/plat-rpi3/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, Sequitur Labs Inc. All rights reserved.
* All rights reserved.
diff --git a/core/arch/arm/plat-sam/main.c b/core/arch/arm/plat-sam/main.c
index 6b8e05c5..5fde3bfe 100644
--- a/core/arch/arm/plat-sam/main.c
+++ b/core/arch/arm/plat-sam/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2017 Timesys Corporation.
* All rights reserved.
diff --git a/core/arch/arm/plat-sam/matrix.c b/core/arch/arm/plat-sam/matrix.c
index 4b0cce44..9cb3ca68 100644
--- a/core/arch/arm/plat-sam/matrix.c
+++ b/core/arch/arm/plat-sam/matrix.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-Source-Code
/*
* Copyright (c) 2013, Atmel Corporation
* Copyright (c) 2017, Timesys Corporation
diff --git a/core/arch/arm/plat-sam/matrix.h b/core/arch/arm/plat-sam/matrix.h
index edfcd3bf..404add77 100644
--- a/core/arch/arm/plat-sam/matrix.h
+++ b/core/arch/arm/plat-sam/matrix.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-Source-Code */
/* ----------------------------------------------------------------------------
* ATMEL Microcontroller Software Support
* ----------------------------------------------------------------------------
diff --git a/core/arch/arm/plat-sam/platform_config.h b/core/arch/arm/plat-sam/platform_config.h
index 530c7ccb..6bdc70f5 100644
--- a/core/arch/arm/plat-sam/platform_config.h
+++ b/core/arch/arm/plat-sam/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2017 Timesys Corporation.
* All rights reserved.
diff --git a/core/arch/arm/plat-sam/sama5d2.h b/core/arch/arm/plat-sam/sama5d2.h
index d25c4c81..9f4025c4 100644
--- a/core/arch/arm/plat-sam/sama5d2.h
+++ b/core/arch/arm/plat-sam/sama5d2.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-Source-Code */
/*
* Copyright (c) 2015, Atmel Corporation
* Copyright (c) 2017, Timesys Corporation
diff --git a/core/arch/arm/plat-sam/tz_matrix.h b/core/arch/arm/plat-sam/tz_matrix.h
index 843e39a7..7db2e3d2 100644
--- a/core/arch/arm/plat-sam/tz_matrix.h
+++ b/core/arch/arm/plat-sam/tz_matrix.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-Source-Code */
/*
* Copyright (c) 2013, Atmel Corporation
*
diff --git a/core/arch/arm/plat-sprd/console.c b/core/arch/arm/plat-sprd/console.c
index 5a8f9157..15a4b3b9 100644
--- a/core/arch/arm/plat-sprd/console.c
+++ b/core/arch/arm/plat-sprd/console.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Spreadtrum Communications Inc.
* All rights reserved.
diff --git a/core/arch/arm/plat-sprd/main.c b/core/arch/arm/plat-sprd/main.c
index 223e3814..565c4239 100644
--- a/core/arch/arm/plat-sprd/main.c
+++ b/core/arch/arm/plat-sprd/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Spreadtrum Communications Inc.
* All rights reserved.
diff --git a/core/arch/arm/plat-sprd/platform_config.h b/core/arch/arm/plat-sprd/platform_config.h
index 684b1297..4c530ef6 100644
--- a/core/arch/arm/plat-sprd/platform_config.h
+++ b/core/arch/arm/plat-sprd/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, Spreadtrum Communications Inc.
* All rights reserved.
diff --git a/core/arch/arm/plat-stm/main.c b/core/arch/arm/plat-stm/main.c
index 5e43b628..68470d4c 100644
--- a/core/arch/arm/plat-stm/main.c
+++ b/core/arch/arm/plat-stm/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014-2016, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/plat-stm/platform_config.h b/core/arch/arm/plat-stm/platform_config.h
index 4f754be0..7efe76f4 100644
--- a/core/arch/arm/plat-stm/platform_config.h
+++ b/core/arch/arm/plat-stm/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014-2016, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/plat-stm/rng_support.c b/core/arch/arm/plat-stm/rng_support.c
index 33843ada..82fad019 100644
--- a/core/arch/arm/plat-stm/rng_support.c
+++ b/core/arch/arm/plat-stm/rng_support.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014-2016, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/plat-stm/tz_a9init.S b/core/arch/arm/plat-stm/tz_a9init.S
index 2f78e04e..3fba6a98 100644
--- a/core/arch/arm/plat-stm/tz_a9init.S
+++ b/core/arch/arm/plat-stm/tz_a9init.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014-2016, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/plat-sunxi/entry.S b/core/arch/arm/plat-sunxi/entry.S
index 5729ce6b..a5ca38ae 100644
--- a/core/arch/arm/plat-sunxi/entry.S
+++ b/core/arch/arm/plat-sunxi/entry.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, Allwinner Technology Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-sunxi/head.c b/core/arch/arm/plat-sunxi/head.c
index 838dbf44..c32f6543 100644
--- a/core/arch/arm/plat-sunxi/head.c
+++ b/core/arch/arm/plat-sunxi/head.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, Allwinner Technology Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-sunxi/kern.ld.S b/core/arch/arm/plat-sunxi/kern.ld.S
index 0f7a67e0..a8a824c1 100644
--- a/core/arch/arm/plat-sunxi/kern.ld.S
+++ b/core/arch/arm/plat-sunxi/kern.ld.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: (BSD-2-Clause AND MIT) */
/*
* Copyright (c) 2014, Allwinner Technology Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-sunxi/main.c b/core/arch/arm/plat-sunxi/main.c
index 9ade6af7..29cdcb67 100644
--- a/core/arch/arm/plat-sunxi/main.c
+++ b/core/arch/arm/plat-sunxi/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, Allwinner Technology Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-sunxi/platform.c b/core/arch/arm/plat-sunxi/platform.c
index 8ae645ca..d41adc5b 100644
--- a/core/arch/arm/plat-sunxi/platform.c
+++ b/core/arch/arm/plat-sunxi/platform.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, Allwinner Technology Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-sunxi/platform.h b/core/arch/arm/plat-sunxi/platform.h
index c6db14be..c3dd3fe6 100644
--- a/core/arch/arm/plat-sunxi/platform.h
+++ b/core/arch/arm/plat-sunxi/platform.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, Allwinner Technology Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-sunxi/platform_config.h b/core/arch/arm/plat-sunxi/platform_config.h
index 63feba54..955836d2 100644
--- a/core/arch/arm/plat-sunxi/platform_config.h
+++ b/core/arch/arm/plat-sunxi/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, Allwinner Technology Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-sunxi/rng_support.c b/core/arch/arm/plat-sunxi/rng_support.c
index 434b1048..7396feb7 100644
--- a/core/arch/arm/plat-sunxi/rng_support.c
+++ b/core/arch/arm/plat-sunxi/rng_support.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, Allwinner Technology Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-sunxi/smp_boot.S b/core/arch/arm/plat-sunxi/smp_boot.S
index da93d7de..c7d2b846 100644
--- a/core/arch/arm/plat-sunxi/smp_boot.S
+++ b/core/arch/arm/plat-sunxi/smp_boot.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, Allwinner Technology Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-sunxi/smp_fixup.S b/core/arch/arm/plat-sunxi/smp_fixup.S
index bf533b45..453949db 100644
--- a/core/arch/arm/plat-sunxi/smp_fixup.S
+++ b/core/arch/arm/plat-sunxi/smp_fixup.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, Allwinner Technology Co., Ltd.
* All rights reserved.
diff --git a/core/arch/arm/plat-ti/a9_plat_init.S b/core/arch/arm/plat-ti/a9_plat_init.S
index 45879c1b..b99e812e 100644
--- a/core/arch/arm/plat-ti/a9_plat_init.S
+++ b/core/arch/arm/plat-ti/a9_plat_init.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, Texas Instruments
* All rights reserved.
diff --git a/core/arch/arm/plat-ti/api_monitor_index_a15.h b/core/arch/arm/plat-ti/api_monitor_index_a15.h
index 69ac5505..2e78c3c0 100644
--- a/core/arch/arm/plat-ti/api_monitor_index_a15.h
+++ b/core/arch/arm/plat-ti/api_monitor_index_a15.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Texas Instruments
* All rights reserved.
diff --git a/core/arch/arm/plat-ti/api_monitor_index_a9.h b/core/arch/arm/plat-ti/api_monitor_index_a9.h
index 7cbf1743..a38c4e94 100644
--- a/core/arch/arm/plat-ti/api_monitor_index_a9.h
+++ b/core/arch/arm/plat-ti/api_monitor_index_a9.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, Texas Instruments
* All rights reserved.
diff --git a/core/arch/arm/plat-ti/main.c b/core/arch/arm/plat-ti/main.c
index 1ddce574..462f44af 100644
--- a/core/arch/arm/plat-ti/main.c
+++ b/core/arch/arm/plat-ti/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/plat-ti/platform_config.h b/core/arch/arm/plat-ti/platform_config.h
index df696ece..783c08c7 100644
--- a/core/arch/arm/plat-ti/platform_config.h
+++ b/core/arch/arm/plat-ti/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/plat-ti/sm_platform_handler_a15.c b/core/arch/arm/plat-ti/sm_platform_handler_a15.c
index efd438e0..afdaa6bf 100644
--- a/core/arch/arm/plat-ti/sm_platform_handler_a15.c
+++ b/core/arch/arm/plat-ti/sm_platform_handler_a15.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Texas Instruments
* All rights reserved.
diff --git a/core/arch/arm/plat-ti/sm_platform_handler_a9.c b/core/arch/arm/plat-ti/sm_platform_handler_a9.c
index 8c88ea82..0e4941f6 100644
--- a/core/arch/arm/plat-ti/sm_platform_handler_a9.c
+++ b/core/arch/arm/plat-ti/sm_platform_handler_a9.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Texas Instruments
* All rights reserved.
diff --git a/core/arch/arm/plat-ti/ti_pl310.c b/core/arch/arm/plat-ti/ti_pl310.c
index 42b076dc..ced16ada 100644
--- a/core/arch/arm/plat-ti/ti_pl310.c
+++ b/core/arch/arm/plat-ti/ti_pl310.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Texas Instruments
* All rights reserved.
diff --git a/core/arch/arm/plat-vexpress/juno_core_pos_a32.S b/core/arch/arm/plat-vexpress/juno_core_pos_a32.S
index 9b9a95ce..3b363f22 100644
--- a/core/arch/arm/plat-vexpress/juno_core_pos_a32.S
+++ b/core/arch/arm/plat-vexpress/juno_core_pos_a32.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/plat-vexpress/juno_core_pos_a64.S b/core/arch/arm/plat-vexpress/juno_core_pos_a64.S
index cba4f737..50b4cc13 100644
--- a/core/arch/arm/plat-vexpress/juno_core_pos_a64.S
+++ b/core/arch/arm/plat-vexpress/juno_core_pos_a64.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/plat-vexpress/main.c b/core/arch/arm/plat-vexpress/main.c
index 572e4296..23cb1303 100644
--- a/core/arch/arm/plat-vexpress/main.c
+++ b/core/arch/arm/plat-vexpress/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/plat-vexpress/platform_config.h b/core/arch/arm/plat-vexpress/platform_config.h
index 1f01ab7a..148f6857 100644
--- a/core/arch/arm/plat-vexpress/platform_config.h
+++ b/core/arch/arm/plat-vexpress/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/plat-vexpress/vendor_props.c b/core/arch/arm/plat-vexpress/vendor_props.c
index 2f4d10d4..453ba4c4 100644
--- a/core/arch/arm/plat-vexpress/vendor_props.c
+++ b/core/arch/arm/plat-vexpress/vendor_props.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Linaro Limited.
* All rights reserved.
diff --git a/core/arch/arm/plat-zynq7k/main.c b/core/arch/arm/plat-zynq7k/main.c
index ae22f8ff..c6d6787e 100644
--- a/core/arch/arm/plat-zynq7k/main.c
+++ b/core/arch/arm/plat-zynq7k/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2015 Freescale Semiconductor, Inc.
* All rights reserved.
diff --git a/core/arch/arm/plat-zynq7k/plat_init.S b/core/arch/arm/plat-zynq7k/plat_init.S
index 8d06c538..42ea47fb 100644
--- a/core/arch/arm/plat-zynq7k/plat_init.S
+++ b/core/arch/arm/plat-zynq7k/plat_init.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/plat-zynq7k/platform_config.h b/core/arch/arm/plat-zynq7k/platform_config.h
index c970048e..6c006569 100644
--- a/core/arch/arm/plat-zynq7k/platform_config.h
+++ b/core/arch/arm/plat-zynq7k/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, Wind River Systems.
* All rights reserved.
diff --git a/core/arch/arm/plat-zynq7k/platform_smc.h b/core/arch/arm/plat-zynq7k/platform_smc.h
index ac6bc33c..b0b87928 100644
--- a/core/arch/arm/plat-zynq7k/platform_smc.h
+++ b/core/arch/arm/plat-zynq7k/platform_smc.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, Wind River System
* All rights reserved.
diff --git a/core/arch/arm/plat-zynqmp/main.c b/core/arch/arm/plat-zynqmp/main.c
index f49bcdd0..b706c373 100644
--- a/core/arch/arm/plat-zynqmp/main.c
+++ b/core/arch/arm/plat-zynqmp/main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Xilinx Inc.
* All rights reserved.
diff --git a/core/arch/arm/plat-zynqmp/platform_config.h b/core/arch/arm/plat-zynqmp/platform_config.h
index a02d10f2..12975808 100644
--- a/core/arch/arm/plat-zynqmp/platform_config.h
+++ b/core/arch/arm/plat-zynqmp/platform_config.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, Xilinx Inc.
* All rights reserved.
diff --git a/core/arch/arm/pta/benchmark.c b/core/arch/arm/pta/benchmark.c
index d5570761..855103f9 100644
--- a/core/arch/arm/pta/benchmark.c
+++ b/core/arch/arm/pta/benchmark.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/pta/core_fs_htree_tests.c b/core/arch/arm/pta/core_fs_htree_tests.c
index ba55ca94..c566a176 100644
--- a/core/arch/arm/pta/core_fs_htree_tests.c
+++ b/core/arch/arm/pta/core_fs_htree_tests.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/pta/core_self_tests.c b/core/arch/arm/pta/core_self_tests.c
index 0c4fe36d..5af7024c 100644
--- a/core/arch/arm/pta/core_self_tests.c
+++ b/core/arch/arm/pta/core_self_tests.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/pta/core_self_tests.h b/core/arch/arm/pta/core_self_tests.h
index 5289678b..7aecfa63 100644
--- a/core/arch/arm/pta/core_self_tests.h
+++ b/core/arch/arm/pta/core_self_tests.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/pta/gprof.c b/core/arch/arm/pta/gprof.c
index ab27f005..fd90764e 100644
--- a/core/arch/arm/pta/gprof.c
+++ b/core/arch/arm/pta/gprof.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/pta/interrupt_tests.c b/core/arch/arm/pta/interrupt_tests.c
index 8bf4c697..d1dc1d56 100644
--- a/core/arch/arm/pta/interrupt_tests.c
+++ b/core/arch/arm/pta/interrupt_tests.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/pta/pta_invoke_tests.c b/core/arch/arm/pta/pta_invoke_tests.c
index 75add7b0..19a8b090 100644
--- a/core/arch/arm/pta/pta_invoke_tests.c
+++ b/core/arch/arm/pta/pta_invoke_tests.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/pta/se_api_self_tests.c b/core/arch/arm/pta/se_api_self_tests.c
index f6f5ec48..56c41e66 100644
--- a/core/arch/arm/pta/se_api_self_tests.c
+++ b/core/arch/arm/pta/se_api_self_tests.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/pta/stats.c b/core/arch/arm/pta/stats.c
index 408c2849..3d1d3730 100644
--- a/core/arch/arm/pta/stats.c
+++ b/core/arch/arm/pta/stats.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/sm/pm.c b/core/arch/arm/sm/pm.c
index cc97dd5d..6a8f952c 100644
--- a/core/arch/arm/sm/pm.c
+++ b/core/arch/arm/sm/pm.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright 2017 NXP
*
diff --git a/core/arch/arm/sm/pm_a32.S b/core/arch/arm/sm/pm_a32.S
index cae5102b..ffa38e01 100644
--- a/core/arch/arm/sm/pm_a32.S
+++ b/core/arch/arm/sm/pm_a32.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright 2017 NXP
*
diff --git a/core/arch/arm/sm/psci-helper.S b/core/arch/arm/sm/psci-helper.S
index d4309539..9ad737d4 100644
--- a/core/arch/arm/sm/psci-helper.S
+++ b/core/arch/arm/sm/psci-helper.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright 2017 NXP
* All rights reserved.
diff --git a/core/arch/arm/sm/psci.c b/core/arch/arm/sm/psci.c
index e6726573..0084d7e2 100644
--- a/core/arch/arm/sm/psci.c
+++ b/core/arch/arm/sm/psci.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2016 Freescale Semiconductor, Inc.
* All rights reserved.
diff --git a/core/arch/arm/sm/sm.c b/core/arch/arm/sm/sm.c
index a5883642..66e8e1a7 100644
--- a/core/arch/arm/sm/sm.c
+++ b/core/arch/arm/sm/sm.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/sm/sm_a32.S b/core/arch/arm/sm/sm_a32.S
index a49a80fa..c596f191 100644
--- a/core/arch/arm/sm/sm_a32.S
+++ b/core/arch/arm/sm/sm_a32.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/sm/sm_private.h b/core/arch/arm/sm/sm_private.h
index 6578d473..1f933fbb 100644
--- a/core/arch/arm/sm/sm_private.h
+++ b/core/arch/arm/sm/sm_private.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
diff --git a/core/arch/arm/sm/std_smc.c b/core/arch/arm/sm/std_smc.c
index ab3817f8..52ed9188 100644
--- a/core/arch/arm/sm/std_smc.c
+++ b/core/arch/arm/sm/std_smc.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) 2016 Freescale Semiconductor, Inc.
* All rights reserved.
diff --git a/core/arch/arm/tee/arch_svc.c b/core/arch/arm/tee/arch_svc.c
index 60bb7b65..e4f46bda 100644
--- a/core/arch/arm/tee/arch_svc.c
+++ b/core/arch/arm/tee/arch_svc.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/tee/arch_svc_a32.S b/core/arch/arm/tee/arch_svc_a32.S
index 19036b89..890c6f8c 100644
--- a/core/arch/arm/tee/arch_svc_a32.S
+++ b/core/arch/arm/tee/arch_svc_a32.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/tee/arch_svc_a64.S b/core/arch/arm/tee/arch_svc_a64.S
index 939ec96f..c4f8b2ca 100644
--- a/core/arch/arm/tee/arch_svc_a64.S
+++ b/core/arch/arm/tee/arch_svc_a64.S
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/tee/arch_svc_private.h b/core/arch/arm/tee/arch_svc_private.h
index 7b2ea948..909120d5 100644
--- a/core/arch/arm/tee/arch_svc_private.h
+++ b/core/arch/arm/tee/arch_svc_private.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/tee/cache.c b/core/arch/arm/tee/cache.c
index ff4bab3d..524a6521 100644
--- a/core/arch/arm/tee/cache.c
+++ b/core/arch/arm/tee/cache.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* Copyright (c) 2015, Linaro Limited
diff --git a/core/arch/arm/tee/entry_fast.c b/core/arch/arm/tee/entry_fast.c
index a373ee64..448e9fb9 100644
--- a/core/arch/arm/tee/entry_fast.c
+++ b/core/arch/arm/tee/entry_fast.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/tee/entry_std.c b/core/arch/arm/tee/entry_std.c
index 1a84fc69..d256b276 100644
--- a/core/arch/arm/tee/entry_std.c
+++ b/core/arch/arm/tee/entry_std.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015-2016, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/tee/init.c b/core/arch/arm/tee/init.c
index f1565c25..acd9074b 100644
--- a/core/arch/arm/tee/init.c
+++ b/core/arch/arm/tee/init.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
diff --git a/core/arch/arm/tee/pta_socket.c b/core/arch/arm/tee/pta_socket.c
index 51ed79bb..87a281ac 100644
--- a/core/arch/arm/tee/pta_socket.c
+++ b/core/arch/arm/tee/pta_socket.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2016-2017, Linaro Limited
* All rights reserved.
diff --git a/core/arch/arm/tee/svc_cache.c b/core/arch/arm/tee/svc_cache.c
index 49ee3cfd..9863593d 100644
--- a/core/arch/arm/tee/svc_cache.c
+++ b/core/arch/arm/tee/svc_cache.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* Copyright (c) 2015, Linaro Limited
diff --git a/core/arch/arm/tee/svc_dummy.c b/core/arch/arm/tee/svc_dummy.c
index e6dee548..53949f10 100644
--- a/core/arch/arm/tee/svc_dummy.c
+++ b/core/arch/arm/tee/svc_dummy.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.