31 lines
634 B
C
31 lines
634 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* HYGON Secure Processor interface
|
|
*
|
|
* Copyright (C) 2024 Hygon Info Technologies Ltd.
|
|
*
|
|
* Author: Liyang Han <hanliyang@hygon.cn>
|
|
*/
|
|
|
|
#ifndef __CCP_HYGON_SP_DEV_H__
|
|
#define __CCP_HYGON_SP_DEV_H__
|
|
|
|
#include <linux/processor.h>
|
|
#include <linux/ccp.h>
|
|
|
|
#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__ */
|