mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
fpga: altera: Rename Stratix10 FPGA to Intel FPGA SDM Mailbox
Rename Stratix10 FPGA driver to Intel FPGA SDM Mailbox driver because it is using generic SDM (Secure Device Manager) Mailbox interface shared by other platform (e.g. Agilex) as well. Signed-off-by: Chee Hong Ang <chee.hong.ang@intel.com> Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
This commit is contained in:
parent
2473e13bb8
commit
d2170168dd
7 changed files with 19 additions and 17 deletions
|
@ -79,7 +79,7 @@ config TARGET_SOCFPGA_STRATIX10
|
||||||
select ARMV8_MULTIENTRY
|
select ARMV8_MULTIENTRY
|
||||||
select ARMV8_SET_SMPEN
|
select ARMV8_SET_SMPEN
|
||||||
select ARMV8_SPIN_TABLE
|
select ARMV8_SPIN_TABLE
|
||||||
select FPGA_STRATIX10
|
select FPGA_INTEL_SDM_MAILBOX
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Altera SOCFPGA board select"
|
prompt "Altera SOCFPGA board select"
|
||||||
|
|
|
@ -24,7 +24,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||||
static Altera_desc altera_fpga[] = {
|
static Altera_desc altera_fpga[] = {
|
||||||
{
|
{
|
||||||
/* Family */
|
/* Family */
|
||||||
Intel_FPGA_Stratix10,
|
Intel_FPGA_SDM_Mailbox,
|
||||||
/* Interface type */
|
/* Interface type */
|
||||||
secure_device_manager_mailbox,
|
secure_device_manager_mailbox,
|
||||||
/* No limitation as additional data will be ignored */
|
/* No limitation as additional data will be ignored */
|
||||||
|
|
|
@ -31,16 +31,16 @@ config FPGA_CYCLON2
|
||||||
Enable FPGA driver for loading bitstream in BIT and BIN format
|
Enable FPGA driver for loading bitstream in BIT and BIN format
|
||||||
on Altera Cyclone II device.
|
on Altera Cyclone II device.
|
||||||
|
|
||||||
config FPGA_STRATIX10
|
config FPGA_INTEL_SDM_MAILBOX
|
||||||
bool "Enable Altera FPGA driver for Stratix 10"
|
bool "Enable Intel FPGA Full Reconfiguration SDM Mailbox driver"
|
||||||
depends on TARGET_SOCFPGA_STRATIX10
|
depends on TARGET_SOCFPGA_STRATIX10
|
||||||
select FPGA_ALTERA
|
select FPGA_ALTERA
|
||||||
help
|
help
|
||||||
Say Y here to enable the Altera Stratix 10 FPGA specific driver
|
Say Y here to enable the Intel FPGA Full Reconfig SDM Mailbox driver
|
||||||
|
|
||||||
This provides common functionality for Altera Stratix 10 devices.
|
This provides common functionality for Intel FPGA devices.
|
||||||
Enable FPGA driver for writing bitstream into Altera Stratix10
|
Enable FPGA driver for writing full bitstream into Intel FPGA
|
||||||
device.
|
devices through SDM (Secure Device Manager) Mailbox.
|
||||||
|
|
||||||
config FPGA_XILINX
|
config FPGA_XILINX
|
||||||
bool "Enable Xilinx FPGA drivers"
|
bool "Enable Xilinx FPGA drivers"
|
||||||
|
|
|
@ -16,9 +16,9 @@ ifdef CONFIG_FPGA_ALTERA
|
||||||
obj-y += altera.o
|
obj-y += altera.o
|
||||||
obj-$(CONFIG_FPGA_ACEX1K) += ACEX1K.o
|
obj-$(CONFIG_FPGA_ACEX1K) += ACEX1K.o
|
||||||
obj-$(CONFIG_FPGA_CYCLON2) += cyclon2.o
|
obj-$(CONFIG_FPGA_CYCLON2) += cyclon2.o
|
||||||
|
obj-$(CONFIG_FPGA_INTEL_SDM_MAILBOX) += intel_sdm_mb.o
|
||||||
obj-$(CONFIG_FPGA_STRATIX_II) += stratixII.o
|
obj-$(CONFIG_FPGA_STRATIX_II) += stratixII.o
|
||||||
obj-$(CONFIG_FPGA_STRATIX_V) += stratixv.o
|
obj-$(CONFIG_FPGA_STRATIX_V) += stratixv.o
|
||||||
obj-$(CONFIG_FPGA_STRATIX10) += stratix10.o
|
|
||||||
obj-$(CONFIG_FPGA_SOCFPGA) += socfpga.o
|
obj-$(CONFIG_FPGA_SOCFPGA) += socfpga.o
|
||||||
obj-$(CONFIG_TARGET_SOCFPGA_GEN5) += socfpga_gen5.o
|
obj-$(CONFIG_TARGET_SOCFPGA_GEN5) += socfpga_gen5.o
|
||||||
obj-$(CONFIG_TARGET_SOCFPGA_ARRIA10) += socfpga_arria10.o
|
obj-$(CONFIG_TARGET_SOCFPGA_ARRIA10) += socfpga_arria10.o
|
||||||
|
|
|
@ -40,12 +40,13 @@ static const struct altera_fpga {
|
||||||
#if defined(CONFIG_FPGA_STRATIX_V)
|
#if defined(CONFIG_FPGA_STRATIX_V)
|
||||||
{ Altera_StratixV, "StratixV", stratixv_load, NULL, NULL },
|
{ Altera_StratixV, "StratixV", stratixv_load, NULL, NULL },
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_FPGA_STRATIX10)
|
|
||||||
{ Intel_FPGA_Stratix10, "Stratix10", stratix10_load, NULL, NULL },
|
|
||||||
#endif
|
|
||||||
#if defined(CONFIG_FPGA_SOCFPGA)
|
#if defined(CONFIG_FPGA_SOCFPGA)
|
||||||
{ Altera_SoCFPGA, "SoC FPGA", socfpga_load, NULL, NULL },
|
{ Altera_SoCFPGA, "SoC FPGA", socfpga_load, NULL, NULL },
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(CONFIG_FPGA_INTEL_SDM_MAILBOX)
|
||||||
|
{ Intel_FPGA_SDM_Mailbox, "Intel SDM Mailbox", intel_sdm_mb_load, NULL,
|
||||||
|
NULL },
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
static int altera_validate(Altera_desc *desc, const char *fn)
|
static int altera_validate(Altera_desc *desc, const char *fn)
|
||||||
|
|
|
@ -247,7 +247,7 @@ static int send_reconfig_data(const void *rbf_data, size_t rbf_size,
|
||||||
* This is the interface used by FPGA driver.
|
* This is the interface used by FPGA driver.
|
||||||
* Return 0 for success, non-zero for error.
|
* Return 0 for success, non-zero for error.
|
||||||
*/
|
*/
|
||||||
int stratix10_load(Altera_desc *desc, const void *rbf_data, size_t rbf_size)
|
int intel_sdm_mb_load(Altera_desc *desc, const void *rbf_data, size_t rbf_size)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
u32 resp_len = 2;
|
u32 resp_len = 2;
|
|
@ -56,10 +56,10 @@ enum altera_family {
|
||||||
Altera_StratixII,
|
Altera_StratixII,
|
||||||
/* StratixV Family */
|
/* StratixV Family */
|
||||||
Altera_StratixV,
|
Altera_StratixV,
|
||||||
/* Stratix10 Family */
|
|
||||||
Intel_FPGA_Stratix10,
|
|
||||||
/* SoCFPGA Family */
|
/* SoCFPGA Family */
|
||||||
Altera_SoCFPGA,
|
Altera_SoCFPGA,
|
||||||
|
/* Intel FPGA Family with SDM (Secure Device Manager) Mailbox */
|
||||||
|
Intel_FPGA_SDM_Mailbox,
|
||||||
|
|
||||||
/* Add new models here */
|
/* Add new models here */
|
||||||
|
|
||||||
|
@ -120,8 +120,9 @@ int socfpga_load(Altera_desc *desc, const void *rbf_data, size_t rbf_size);
|
||||||
int stratixv_load(Altera_desc *desc, const void *rbf_data, size_t rbf_size);
|
int stratixv_load(Altera_desc *desc, const void *rbf_data, size_t rbf_size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_FPGA_STRATIX10
|
#ifdef CONFIG_FPGA_INTEL_SDM_MAILBOX
|
||||||
int stratix10_load(Altera_desc *desc, const void *rbf_data, size_t rbf_size);
|
int intel_sdm_mb_load(Altera_desc *desc, const void *rbf_data,
|
||||||
|
size_t rbf_size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _ALTERA_H_ */
|
#endif /* _ALTERA_H_ */
|
||||||
|
|
Loading…
Reference in a new issue