/* SPDX-License-Identifier: GPL-2.0-only */#ifndefOPENOCD_TARGET_MIPS_CPU_H#defineOPENOCD_TARGET_MIPS_CPU_H/* * NOTE: The proper detection of certain CPUs can become quite complicated. * Please consult the following Linux kernel code when adding new CPUs: * arch/mips/include/asm/cpu.h * arch/mips/kernel/cpu-probe.c *//* ... *//* Assigned Company values for bits 23:16 of the PRId register. */#definePRID_COMP_MASK0xff0000#definePRID_COMP_LEGACY0x000000#definePRID_COMP_MTI0x010000#definePRID_COMP_BROADCOM0x020000#definePRID_COMP_ALCHEMY0x030000#definePRID_COMP_LEXRA0x0b0000#definePRID_COMP_ALTERA0x100000#definePRID_COMP_INGENIC_E10xe10000/* * Assigned Processor ID (implementation) values for bits 15:8 of the PRId * register. In order to detect a certain CPU type exactly eventually additional * registers may need to be examined. *//* ... */#definePRID_IMP_MASK0xff00#definePRID_IMP_MAPTIV_UC0x9D00#definePRID_IMP_MAPTIV_UP0x9E00#definePRID_IMP_IAPTIV_CM0xA000#definePRID_IMP_IAPTIV0xA100#definePRID_IMP_M51500xA700#definePRID_IMP_XBURST_REV10x0200/* XBurst®1 with MXU1.0/MXU1.1 SIMD ISA */16 defines/* ... */#endif/* OPENOCD_TARGET_MIPS_CPU_H */