include: Add SPDX-License-Identifiers to files missing them

This adds SPDX-License-Identifiers to all of the files in src/include
that are missing them or have unrecognized identifiers.

Files that were written specifically for coreboot and don't have license
information are licensed GPL-2.0-only, which is the license for the
overall coreboot project.

Files that were sourced from Linux are similarly GPL-2.0-only.

The cpu/power files were committed with source that was licensed as
GPL-2.0-or-later, so presumably that's the license for that entire
commit.

The final file, vbe.h gives a pointer to the BSD-2-Clause license
at opensource.org.

Change-Id: I3f8fd7848ce11c1a0060e05903fb17a7583b4725
Signed-off-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66284
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
diff --git a/src/include/asan.h b/src/include/asan.h
index 103fcc9..c63b5b7 100644
--- a/src/include/asan.h
+++ b/src/include/asan.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0 */
+/* SPDX-License-Identifier: GPL-2.0-only */
 
 #ifndef __ASAN_H
 #define __ASAN_H
diff --git a/src/include/boot/coreboot_tables.h b/src/include/boot/coreboot_tables.h
index 7525fda..6188ce0 100644
--- a/src/include/boot/coreboot_tables.h
+++ b/src/include/boot/coreboot_tables.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef COREBOOT_TABLES_H
 #define COREBOOT_TABLES_H
 
diff --git a/src/include/boot/tables.h b/src/include/boot/tables.h
index b440c8b..74cc4e1 100644
--- a/src/include/boot/tables.h
+++ b/src/include/boot/tables.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef BOOT_TABLES_H
 #define BOOT_TABLES_H
 
diff --git a/src/include/console/qemu_debugcon.h b/src/include/console/qemu_debugcon.h
index f0252ee..155bfda 100644
--- a/src/include/console/qemu_debugcon.h
+++ b/src/include/console/qemu_debugcon.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef _QEMU_DEBUGCON_H_
 #define _QEMU_DEBUGCON_H_
 
diff --git a/src/include/console/spkmodem.h b/src/include/console/spkmodem.h
index c8c142f..fe4181c 100644
--- a/src/include/console/spkmodem.h
+++ b/src/include/console/spkmodem.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef SPKMODEM_H
 #define SPKMODEM_H 1
 
diff --git a/src/include/console/system76_ec.h b/src/include/console/system76_ec.h
index 616e46f..2aa265a 100644
--- a/src/include/console/system76_ec.h
+++ b/src/include/console/system76_ec.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef CONSOLE_SYSTEM76_EC_H
 #define CONSOLE_SYSTEM76_EC_H 1
 
diff --git a/src/include/cpu/amd/microcode.h b/src/include/cpu/amd/microcode.h
index 7407594..9e88936 100644
--- a/src/include/cpu/amd/microcode.h
+++ b/src/include/cpu/amd/microcode.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef CPU_AMD_MICROCODE_H
 #define CPU_AMD_MICROCODE_H
 
diff --git a/src/include/cpu/amd/mtrr.h b/src/include/cpu/amd/mtrr.h
index 6fe1628..bc3f313 100644
--- a/src/include/cpu/amd/mtrr.h
+++ b/src/include/cpu/amd/mtrr.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef CPU_AMD_MTRR_H
 #define CPU_AMD_MTRR_H
 
diff --git a/src/include/cpu/cpu.h b/src/include/cpu/cpu.h
index 99249ba..6610368 100644
--- a/src/include/cpu/cpu.h
+++ b/src/include/cpu/cpu.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef CPU_CPU_H
 #define CPU_CPU_H
 
diff --git a/src/include/cpu/intel/hyperthreading.h b/src/include/cpu/intel/hyperthreading.h
index 0a1461c..0613aa1 100644
--- a/src/include/cpu/intel/hyperthreading.h
+++ b/src/include/cpu/intel/hyperthreading.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef CPU_INTEL_HYPERTHREADING_H
 #define CPU_INTEL_HYPERTHREADING_H
 
diff --git a/src/include/cpu/power/scom.h b/src/include/cpu/power/scom.h
index ef5796c..f5354c8 100644
--- a/src/include/cpu/power/scom.h
+++ b/src/include/cpu/power/scom.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 #ifndef CPU_PPC64_SCOM_H
 #define CPU_PPC64_SCOM_H
 
diff --git a/src/include/cpu/power/spr.h b/src/include/cpu/power/spr.h
index 3b229f7..300147d 100644
--- a/src/include/cpu/power/spr.h
+++ b/src/include/cpu/power/spr.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 #ifndef CPU_PPC64_SPR_H
 #define CPU_PPC64_SPR_H
 
diff --git a/src/include/cpu/x86/lapic.h b/src/include/cpu/x86/lapic.h
index 400199b..5fa5608 100644
--- a/src/include/cpu/x86/lapic.h
+++ b/src/include/cpu/x86/lapic.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef CPU_X86_LAPIC_H
 #define CPU_X86_LAPIC_H
 
diff --git a/src/include/cpu/x86/lapic_def.h b/src/include/cpu/x86/lapic_def.h
index 84a3413..e118b6b 100644
--- a/src/include/cpu/x86/lapic_def.h
+++ b/src/include/cpu/x86/lapic_def.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef CPU_X86_LAPIC_DEF_H
 #define CPU_X86_LAPIC_DEF_H
 
diff --git a/src/include/cpu/x86/msr.h b/src/include/cpu/x86/msr.h
index 9f30c05..ca2a37f 100644
--- a/src/include/cpu/x86/msr.h
+++ b/src/include/cpu/x86/msr.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef CPU_X86_MSR_H
 #define CPU_X86_MSR_H
 
diff --git a/src/include/cpu/x86/mtrr.h b/src/include/cpu/x86/mtrr.h
index b2bc2c8..ed55c04 100644
--- a/src/include/cpu/x86/mtrr.h
+++ b/src/include/cpu/x86/mtrr.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef CPU_X86_MTRR_H
 #define CPU_X86_MTRR_H
 
diff --git a/src/include/cpu/x86/post_code.h b/src/include/cpu/x86/post_code.h
index 200d93e..db8f90d 100644
--- a/src/include/cpu/x86/post_code.h
+++ b/src/include/cpu/x86/post_code.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef __X86_POST_CODE_H__
 #define __X86_POST_CODE_H__
 
diff --git a/src/include/cpu/x86/tsc.h b/src/include/cpu/x86/tsc.h
index ddce96b..5d173da 100644
--- a/src/include/cpu/x86/tsc.h
+++ b/src/include/cpu/x86/tsc.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef CPU_X86_TSC_H
 #define CPU_X86_TSC_H
 
diff --git a/src/include/ctype.h b/src/include/ctype.h
index b4684af..7939c62 100644
--- a/src/include/ctype.h
+++ b/src/include/ctype.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef CTYPE_H
 #define CTYPE_H
 
diff --git a/src/include/delay.h b/src/include/delay.h
index 1c481be..327ad4d 100644
--- a/src/include/delay.h
+++ b/src/include/delay.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef DELAY_H
 #define DELAY_H
 
diff --git a/src/include/device/cardbus.h b/src/include/device/cardbus.h
index 4443c15..056e6ac 100644
--- a/src/include/device/cardbus.h
+++ b/src/include/device/cardbus.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 /* (c) 2005 Linux Networx GPL see COPYING for details */
 
 #ifndef DEVICE_CARDBUS_H
diff --git a/src/include/device/device.h b/src/include/device/device.h
index d2dcb5b..43ac66d 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef DEVICE_H
 
 #define DEVICE_H
diff --git a/src/include/device/path.h b/src/include/device/path.h
index 934d3b3..1be7e72 100644
--- a/src/include/device/path.h
+++ b/src/include/device/path.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef DEVICE_PATH_H
 #define DEVICE_PATH_H
 
diff --git a/src/include/device/pci.h b/src/include/device/pci.h
index db7cc69..f2e2506 100644
--- a/src/include/device/pci.h
+++ b/src/include/device/pci.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 /*
  *	PCI defines and function prototypes
  *	Copyright 1994, Drew Eckhardt
diff --git a/src/include/device/pci_def.h b/src/include/device/pci_def.h
index 1c4a3e7..fa52067 100644
--- a/src/include/device/pci_def.h
+++ b/src/include/device/pci_def.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef PCI_DEF_H
 #define PCI_DEF_H
 
diff --git a/src/include/device/pci_rom.h b/src/include/device/pci_rom.h
index 25bca40..efda282 100644
--- a/src/include/device/pci_rom.h
+++ b/src/include/device/pci_rom.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef PCI_ROM_H
 #define PCI_ROM_H
 
diff --git a/src/include/device/pciexp.h b/src/include/device/pciexp.h
index 30c2a54..13776df 100644
--- a/src/include/device/pciexp.h
+++ b/src/include/device/pciexp.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef DEVICE_PCIEXP_H
 #define DEVICE_PCIEXP_H
 /* (c) 2005 Linux Networx GPL see COPYING for details */
diff --git a/src/include/device/pcix.h b/src/include/device/pcix.h
index def7f6c..4c1d112 100644
--- a/src/include/device/pcix.h
+++ b/src/include/device/pcix.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef DEVICE_PCIX_H
 #define DEVICE_PCIX_H
 /* (c) 2005 Linux Networx GPL see COPYING for details */
diff --git a/src/include/device/pnp_def.h b/src/include/device/pnp_def.h
index 712357b..a5f2260 100644
--- a/src/include/device/pnp_def.h
+++ b/src/include/device/pnp_def.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef DEVICE_PNP_DEF_H
 #define DEVICE_PNP_DEF_H
 
diff --git a/src/include/device/resource.h b/src/include/device/resource.h
index 6f16c03..9624135 100644
--- a/src/include/device/resource.h
+++ b/src/include/device/resource.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef DEVICE_RESOURCE_H
 #define DEVICE_RESOURCE_H
 
diff --git a/src/include/device/smbus.h b/src/include/device/smbus.h
index 5782d5e..171e304 100644
--- a/src/include/device/smbus.h
+++ b/src/include/device/smbus.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef DEVICE_SMBUS_H
 #define DEVICE_SMBUS_H
 
diff --git a/src/include/device/smbus_def.h b/src/include/device/smbus_def.h
index 61d7861..0e502fe 100644
--- a/src/include/device/smbus_def.h
+++ b/src/include/device/smbus_def.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef DEVICE_SMBUS_DEF_H
 #define DEVICE_SMBUS_DEF_H
 
diff --git a/src/include/fallback.h b/src/include/fallback.h
index 1cf183f..dda2c30 100644
--- a/src/include/fallback.h
+++ b/src/include/fallback.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef FALLBACK_H
 #define FALLBACK_H
 
diff --git a/src/include/imd_private.h b/src/include/imd_private.h
index fea7315..7b9a277 100644
--- a/src/include/imd_private.h
+++ b/src/include/imd_private.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef _IMD_PRIVATE_H_
 #define _IMD_PRIVATE_H_
 
diff --git a/src/include/ip_checksum.h b/src/include/ip_checksum.h
index f2632e7..74a2f48 100644
--- a/src/include/ip_checksum.h
+++ b/src/include/ip_checksum.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef IP_CHECKSUM_H
 #define IP_CHECKSUM_H
 unsigned long compute_ip_checksum(const void *addr, unsigned long length);
diff --git a/src/include/limits.h b/src/include/limits.h
index a21716c..938eeed 100644
--- a/src/include/limits.h
+++ b/src/include/limits.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0 */
+/* SPDX-License-Identifier: GPL-2.0-only */
 
 #ifndef LIMITS_H
 #define LIMITS_H
diff --git a/src/include/main_decl.h b/src/include/main_decl.h
index 90c1716..4198d64 100644
--- a/src/include/main_decl.h
+++ b/src/include/main_decl.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef _MAIN_DECL_H_
 #define _MAIN_DECL_H_
 
diff --git a/src/include/pc80/isa-dma.h b/src/include/pc80/isa-dma.h
index 205a1b4..7c391e9 100644
--- a/src/include/pc80/isa-dma.h
+++ b/src/include/pc80/isa-dma.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef PC80_ISA_DMA_H
 #define PC80_ISA_DMA_H
 
diff --git a/src/include/pc80/keyboard.h b/src/include/pc80/keyboard.h
index d2d66b0..6664980 100644
--- a/src/include/pc80/keyboard.h
+++ b/src/include/pc80/keyboard.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef PC80_KEYBOARD_H
 #define PC80_KEYBOARD_H
 
diff --git a/src/include/reset.h b/src/include/reset.h
index 5b5e1d3..95fe066 100644
--- a/src/include/reset.h
+++ b/src/include/reset.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef RESET_H
 #define RESET_H
 
diff --git a/src/include/smp/atomic.h b/src/include/smp/atomic.h
index 5e78ae4..18f83de 100644
--- a/src/include/smp/atomic.h
+++ b/src/include/smp/atomic.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef SMP_ATOMIC_H
 #define SMP_ATOMIC_H
 
diff --git a/src/include/smp/node.h b/src/include/smp/node.h
index 4dea175..8f3d14f 100644
--- a/src/include/smp/node.h
+++ b/src/include/smp/node.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef _SMP_NODE_H_
 #define _SMP_NODE_H_
 
diff --git a/src/include/smp/spinlock.h b/src/include/smp/spinlock.h
index 0ca391d..90eae6b 100644
--- a/src/include/smp/spinlock.h
+++ b/src/include/smp/spinlock.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef SMP_SPINLOCK_H
 #define SMP_SPINLOCK_H
 
diff --git a/src/include/stddef.h b/src/include/stddef.h
index 100368e..e30b05f 100644
--- a/src/include/stddef.h
+++ b/src/include/stddef.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef STDDEF_H
 #define STDDEF_H
 
diff --git a/src/include/stdlib.h b/src/include/stdlib.h
index 8636ea4..8fa5d20 100644
--- a/src/include/stdlib.h
+++ b/src/include/stdlib.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef STDLIB_H
 #define STDLIB_H
 
diff --git a/src/include/swab.h b/src/include/swab.h
index 6a33b39..eadf293 100644
--- a/src/include/swab.h
+++ b/src/include/swab.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 /*
  * linux/byteorder/swab.h
  * Byte-swapping, independently from CPU endianness
diff --git a/src/include/sys/types.h b/src/include/sys/types.h
index 69968dd..d5c7d6e 100644
--- a/src/include/sys/types.h
+++ b/src/include/sys/types.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef __SYS_TYPES_H__
 #define __SYS_TYPES_H__
 
diff --git a/src/include/vbe.h b/src/include/vbe.h
index 9497ec6..afb48ff 100644
--- a/src/include/vbe.h
+++ b/src/include/vbe.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
 /******************************************************************************
  * Copyright (c) 2004, 2008 IBM Corporation
  * Copyright (c) 2009 Pattrick Hueper <phueper@hueper.net>
diff --git a/src/include/version.h b/src/include/version.h
index 6b0d53d..84bb34a 100644
--- a/src/include/version.h
+++ b/src/include/version.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef VERSION_H
 #define VERSION_H
 
diff --git a/src/include/watchdog.h b/src/include/watchdog.h
index e54f3fb..b4f5917 100644
--- a/src/include/watchdog.h
+++ b/src/include/watchdog.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #ifndef WATCHDOG_H
 #define WATCHDOG_H