Home
last modified time | relevance | path

Searched refs:xadc (Results 1 – 8 of 8) sorted by relevance

/linux-5.19.10/drivers/iio/adc/
Dxilinx-xadc-core.c122 static void xadc_write_reg(struct xadc *xadc, unsigned int reg, in xadc_write_reg() argument
125 writel(val, xadc->base + reg); in xadc_write_reg()
128 static void xadc_read_reg(struct xadc *xadc, unsigned int reg, in xadc_read_reg() argument
131 *val = readl(xadc->base + reg); in xadc_read_reg()
144 static void xadc_zynq_write_fifo(struct xadc *xadc, uint32_t *cmd, in xadc_zynq_write_fifo() argument
150 xadc_write_reg(xadc, XADC_ZYNQ_REG_CFIFO, cmd[i]); in xadc_zynq_write_fifo()
153 static void xadc_zynq_drain_fifo(struct xadc *xadc) in xadc_zynq_drain_fifo() argument
157 xadc_read_reg(xadc, XADC_ZYNQ_REG_STATUS, &status); in xadc_zynq_drain_fifo()
160 xadc_read_reg(xadc, XADC_ZYNQ_REG_DFIFO, &tmp); in xadc_zynq_drain_fifo()
161 xadc_read_reg(xadc, XADC_ZYNQ_REG_STATUS, &status); in xadc_zynq_drain_fifo()
[all …]
Dxilinx-xadc-events.c117 struct xadc *xadc = iio_priv(indio_dev); in xadc_read_event_config() local
119 return (bool)(xadc->alarm_mask & xadc_get_alarm_mask(chan)); in xadc_read_event_config()
127 struct xadc *xadc = iio_priv(indio_dev); in xadc_write_event_config() local
131 mutex_lock(&xadc->mutex); in xadc_write_event_config()
134 xadc->alarm_mask |= alarm; in xadc_write_event_config()
136 xadc->alarm_mask &= ~alarm; in xadc_write_event_config()
138 xadc->ops->update_alarm(xadc, xadc->alarm_mask); in xadc_write_event_config()
140 ret = _xadc_read_adc_reg(xadc, XADC_REG_CONF1, &cfg); in xadc_write_event_config()
146 cfg &= ~((xadc->alarm_mask & 0xf0) << 4); /* bram, pint, paux, ddr */ in xadc_write_event_config()
147 cfg &= ~((xadc->alarm_mask & 0x08) >> 3); /* ot */ in xadc_write_event_config()
[all …]
Dxilinx-xadc.h44 struct xadc { struct
78 int (*read)(struct xadc *xadc, unsigned int reg, uint16_t *val); argument
79 int (*write)(struct xadc *xadc, unsigned int reg, uint16_t val);
82 void (*update_alarm)(struct xadc *xadc, unsigned int alarm);
83 unsigned long (*get_dclk_rate)(struct xadc *xadc);
90 static inline int _xadc_read_adc_reg(struct xadc *xadc, unsigned int reg, in _xadc_read_adc_reg() argument
93 lockdep_assert_held(&xadc->mutex); in _xadc_read_adc_reg()
94 return xadc->ops->read(xadc, reg, val); in _xadc_read_adc_reg()
97 static inline int _xadc_write_adc_reg(struct xadc *xadc, unsigned int reg, in _xadc_write_adc_reg() argument
100 lockdep_assert_held(&xadc->mutex); in _xadc_write_adc_reg()
[all …]
DMakefile117 xilinx-xadc-y := xilinx-xadc-core.o xilinx-xadc-events.o
118 obj-$(CONFIG_XILINX_XADC) += xilinx-xadc.o
DKconfig1300 xilinx-xadc.
/linux-5.19.10/Documentation/devicetree/bindings/iio/adc/
Dxilinx-xadc.txt23 * "xlnx,zynq-xadc-1.00.a": When using the ZYNQ device
25 * "xlnx,axi-xadc-1.00.a": When using the axi-xadc pcore to
33 when using the axi-xadc or the axi-system-management-wizard this must be
87 xadc@f8007100 {
88 compatible = "xlnx,zynq-xadc-1.00.a";
109 xadc@43200000 {
110 compatible = "xlnx,axi-xadc-1.00.a";
/linux-5.19.10/arch/arm/boot/dts/
Dzynq-7000.dtsi103 compatible = "xlnx,zynq-xadc-1.00.a";
Dam437x-gp-evm.dts550 AM4372_IOPAD(0xadc, PIN_INPUT_PULLDOWN | MUX_MODE7)