Searched refs:xadc (Results 1 – 7 of 7) sorted by relevance
/Linux-v4.19/drivers/iio/adc/ |
D | xilinx-xadc-core.c | 106 static void xadc_write_reg(struct xadc *xadc, unsigned int reg, in xadc_write_reg() argument 109 writel(val, xadc->base + reg); in xadc_write_reg() 112 static void xadc_read_reg(struct xadc *xadc, unsigned int reg, in xadc_read_reg() argument 115 *val = readl(xadc->base + reg); in xadc_read_reg() 128 static void xadc_zynq_write_fifo(struct xadc *xadc, uint32_t *cmd, in xadc_zynq_write_fifo() argument 134 xadc_write_reg(xadc, XADC_ZYNQ_REG_CFIFO, cmd[i]); in xadc_zynq_write_fifo() 137 static void xadc_zynq_drain_fifo(struct xadc *xadc) in xadc_zynq_drain_fifo() argument 141 xadc_read_reg(xadc, XADC_ZYNQ_REG_STATUS, &status); in xadc_zynq_drain_fifo() 144 xadc_read_reg(xadc, XADC_ZYNQ_REG_DFIFO, &tmp); in xadc_zynq_drain_fifo() 145 xadc_read_reg(xadc, XADC_ZYNQ_REG_STATUS, &status); in xadc_zynq_drain_fifo() [all …]
|
D | xilinx-xadc-events.c | 118 struct xadc *xadc = iio_priv(indio_dev); in xadc_read_event_config() local 120 return (bool)(xadc->alarm_mask & xadc_get_alarm_mask(chan)); in xadc_read_event_config() 128 struct xadc *xadc = iio_priv(indio_dev); in xadc_write_event_config() local 132 mutex_lock(&xadc->mutex); in xadc_write_event_config() 135 xadc->alarm_mask |= alarm; in xadc_write_event_config() 137 xadc->alarm_mask &= ~alarm; in xadc_write_event_config() 139 xadc->ops->update_alarm(xadc, xadc->alarm_mask); in xadc_write_event_config() 141 ret = _xadc_read_adc_reg(xadc, XADC_REG_CONF1, &cfg); in xadc_write_event_config() 147 cfg &= ~((xadc->alarm_mask & 0xf0) << 4); /* bram, pint, paux, ddr */ in xadc_write_event_config() 148 cfg &= ~((xadc->alarm_mask & 0x08) >> 3); /* ot */ in xadc_write_event_config() [all …]
|
D | xilinx-xadc.h | 45 struct xadc { struct 75 int (*read)(struct xadc *xadc, unsigned int reg, uint16_t *val); argument 76 int (*write)(struct xadc *xadc, unsigned int reg, uint16_t val); 79 void (*update_alarm)(struct xadc *xadc, unsigned int alarm); 80 unsigned long (*get_dclk_rate)(struct xadc *xadc); 86 static inline int _xadc_read_adc_reg(struct xadc *xadc, unsigned int reg, in _xadc_read_adc_reg() argument 89 lockdep_assert_held(&xadc->mutex); in _xadc_read_adc_reg() 90 return xadc->ops->read(xadc, reg, val); in _xadc_read_adc_reg() 93 static inline int _xadc_write_adc_reg(struct xadc *xadc, unsigned int reg, in _xadc_write_adc_reg() argument 96 lockdep_assert_held(&xadc->mutex); in _xadc_write_adc_reg() [all …]
|
D | Makefile | 86 xilinx-xadc-y := xilinx-xadc-core.o xilinx-xadc-events.o 87 obj-$(CONFIG_XILINX_XADC) += xilinx-xadc.o
|
D | Kconfig | 942 xilinx-xadc.
|
/Linux-v4.19/Documentation/devicetree/bindings/iio/adc/ |
D | xilinx-xadc.txt | 14 * "xlnx,zynq-xadc-1.00.a": When using the ZYNQ device 16 * "xlnx,axi-xadc-1.00.a": When using the axi-xadc pcore to 75 xadc@f8007100 { 76 compatible = "xlnx,zynq-xadc-1.00.a"; 97 xadc@43200000 { 98 compatible = "xlnx,axi-xadc-1.00.a";
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | zynq-7000.dtsi | 70 compatible = "xlnx,zynq-xadc-1.00.a";
|