linux/drivers/fpga/lattice-sysconfig.h

/* SPDX-License-Identifier: GPL-2.0 */

#ifndef	__LATTICE_SYSCONFIG_H
#define __LATTICE_SYSCONFIG_H

#define SYSCONFIG_ISC_ENABLE
#define SYSCONFIG_ISC_DISABLE
#define SYSCONFIG_ISC_ERASE
#define SYSCONFIG_LSC_READ_STATUS
#define SYSCONFIG_LSC_CHECK_BUSY
#define SYSCONFIG_LSC_REFRESH
#define SYSCONFIG_LSC_INIT_ADDR
#define SYSCONFIG_LSC_BITSTREAM_BURST

#define SYSCONFIG_STATUS_DONE
#define SYSCONFIG_STATUS_BUSY
#define SYSCONFIG_STATUS_FAIL
#define SYSCONFIG_STATUS_ERR

#define SYSCONFIG_POLL_INTERVAL_US
#define SYSCONFIG_POLL_BUSY_TIMEOUT_US
#define SYSCONFIG_POLL_GPIO_TIMEOUT_US

struct sysconfig_priv {};

int sysconfig_probe(struct sysconfig_priv *priv);

#endif /* __LATTICE_SYSCONFIG_H */