28#ifndef LIBBSP_ARM_XILINX_ZYNQ_CADENCE_SPI_REGS_H
29#define LIBBSP_ARM_XILINX_ZYNQ_CADENCE_SPI_REGS_H
35#define CADENCE_SPI_CONFIG_MODEFAIL_EN BSP_BIT32(17)
36#define CADENCE_SPI_CONFIG_MANSTRT BSP_BIT32(16)
37#define CADENCE_SPI_CONFIG_MANSTRT_EN BSP_BIT32(15)
38#define CADENCE_SPI_CONFIG_MANUAL_CS BSP_BIT32(14)
39#define CADENCE_SPI_CONFIG_CS(val) BSP_FLD32(val, 10, 13)
40#define CADENCE_SPI_CONFIG_CS_GET(reg) BSP_FLD32GET(reg, 10, 13)
41#define CADENCE_SPI_CONFIG_CS_SET(reg, val) BSP_FLD32SET(reg, val, 10, 13)
42#define CADENCE_SPI_CONFIG_PERI_SEL BSP_BIT32(9)
43#define CADENCE_SPI_CONFIG_REF_CLK BSP_BIT32(8)
44#define CADENCE_SPI_CONFIG_BAUD_DIV(val) BSP_FLD32(val, 3, 5)
45#define CADENCE_SPI_CONFIG_BAUD_DIV_GET(reg) BSP_FLD32GET(reg, 3, 5)
46#define CADENCE_SPI_CONFIG_BAUD_DIV_SET(reg, val) BSP_FLD32SET(reg, val, 3, 5)
47#define CADENCE_SPI_CONFIG_CLK_PH BSP_BIT32(2)
48#define CADENCE_SPI_CONFIG_CLK_POL BSP_BIT32(1)
49#define CADENCE_SPI_CONFIG_MSTREN BSP_BIT32(0)
54#define CADENCE_SPI_IXR_TXUF BSP_BIT32(6)
55#define CADENCE_SPI_IXR_RXFULL BSP_BIT32(5)
56#define CADENCE_SPI_IXR_RXNEMPTY BSP_BIT32(4)
57#define CADENCE_SPI_IXR_TXFULL BSP_BIT32(3)
58#define CADENCE_SPI_IXR_TXOW BSP_BIT32(2)
59#define CADENCE_SPI_IXR_MODF BSP_BIT32(1)
60#define CADENCE_SPI_IXR_RXOVR BSP_BIT32(0)
62#define CADENCE_SPI_EN BSP_BIT32(0)
64#define CADENCE_SPI_DELAY_DNSS(val) BSP_FLD32(val, 24, 31)
65#define CADENCE_SPI_DELAY_DNSS_GET(reg) BSP_FLD32GET(reg, 24, 31)
66#define CADENCE_SPI_DELAY_DNSS_SET(reg, val) BSP_FLD32SET(reg, val, 24, 31)
67#define CADENCE_SPI_DELAY_DBTWN(val) BSP_FLD32(val, 16, 23)
68#define CADENCE_SPI_DELAY_DBTWN_GET(reg) BSP_FLD32GET(reg, 16, 23)
69#define CADENCE_SPI_DELAY_DBTWN_SET(reg, val) BSP_FLD32SET(reg, val, 16, 23)
70#define CADENCE_SPI_DELAY_DAFTER(val) BSP_FLD32(val, 8, 15)
71#define CADENCE_SPI_DELAY_DAFTER_GET(reg) BSP_FLD32GET(reg, 8, 15)
72#define CADENCE_SPI_DELAY_DAFTER_SET(reg, val) BSP_FLD32SET(reg, val, 8, 15)
73#define CADENCE_SPI_DELAY_DINT(val) BSP_FLD32(val, 0, 7)
74#define CADENCE_SPI_DELAY_DINT_GET(reg) BSP_FLD32GET(reg, 0, 7)
75#define CADENCE_SPI_DELAY_DINT_SET(reg, val) BSP_FLD32SET(reg, val, 0, 7)
78 uint32_t slave_idle_count;
This header file provides utility macros for BSPs.
Definition: cadence-spi-regs.h:33
Definition: deflate.c:114