Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / spi / spi-fsl-cpm.h
blobe012abba055f4862c41675e5ea27bea270445c42
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Freescale SPI controller driver cpm functions.
5 * Maintainer: Kumar Gala
7 * Copyright (C) 2006 Polycom, Inc.
8 * Copyright 2010 Freescale Semiconductor, Inc.
10 * CPM SPI and QE buffer descriptors mode support:
11 * Copyright (c) 2009 MontaVista Software, Inc.
12 * Author: Anton Vorontsov <avorontsov@ru.mvista.com>
15 #ifndef __SPI_FSL_CPM_H__
16 #define __SPI_FSL_CPM_H__
18 #include "spi-fsl-lib.h"
20 #ifdef CONFIG_FSL_SOC
21 extern void fsl_spi_cpm_reinit_txrx(struct mpc8xxx_spi *mspi);
22 extern int fsl_spi_cpm_bufs(struct mpc8xxx_spi *mspi,
23 struct spi_transfer *t);
24 extern void fsl_spi_cpm_bufs_complete(struct mpc8xxx_spi *mspi);
25 extern void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events);
26 extern int fsl_spi_cpm_init(struct mpc8xxx_spi *mspi);
27 extern void fsl_spi_cpm_free(struct mpc8xxx_spi *mspi);
28 #else
29 static inline void fsl_spi_cpm_reinit_txrx(struct mpc8xxx_spi *mspi) { }
30 static inline int fsl_spi_cpm_bufs(struct mpc8xxx_spi *mspi,
31 struct spi_transfer *t) { return 0; }
32 static inline void fsl_spi_cpm_bufs_complete(struct mpc8xxx_spi *mspi) { }
33 static inline void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events) { }
34 static inline int fsl_spi_cpm_init(struct mpc8xxx_spi *mspi) { return 0; }
35 static inline void fsl_spi_cpm_free(struct mpc8xxx_spi *mspi) { }
36 #endif
38 #endif /* __SPI_FSL_CPM_H__ */