D | ftm-quaddec.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Flex Timer Module Quadrature decoder 5 * This module implements a driver for decoding the FTM quadrature 9 #include <linux/fsl/ftm.h> 19 #define FTM_FIELD_UPDATE(ftm, offset, mask, val) \ argument 22 ftm_read(ftm, offset, &flags); \ 25 ftm_write(ftm, offset, flags); \ 35 static void ftm_read(struct ftm_quaddec *ftm, uint32_t offset, uint32_t *data) in ftm_read() argument 37 if (ftm->big_endian) in ftm_read() 38 *data = ioread32be(ftm->ftm_base + offset); in ftm_read() [all …]
|