/* SPDX-License-Identifier: GPL-2.0-only */ /* * HYGON Secure Processor interface * * Copyright (C) 2024 Hygon Info Technologies Ltd. * * Author: Liyang Han */ #ifndef __CCP_HYGON_SP_DEV_H__ #define __CCP_HYGON_SP_DEV_H__ #include #include #include "../ccp-dev.h" #include "../sp-dev.h" #ifdef CONFIG_X86_64 static inline bool is_vendor_hygon(void) { return boot_cpu_data.x86_vendor == X86_VENDOR_HYGON; } #else static inline bool is_vendor_hygon(void) { return false; } #endif extern const struct sp_dev_vdata hygon_dev_vdata[]; #endif /* __CCP_HYGON_SP_DEV_H__ */