mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 14:26:40 +07:00
2874c5fd28
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 3029 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
40 lines
1.4 KiB
C
40 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Freescale SPI controller driver cpm functions.
|
|
*
|
|
* Maintainer: Kumar Gala
|
|
*
|
|
* Copyright (C) 2006 Polycom, Inc.
|
|
* Copyright 2010 Freescale Semiconductor, Inc.
|
|
*
|
|
* CPM SPI and QE buffer descriptors mode support:
|
|
* Copyright (c) 2009 MontaVista Software, Inc.
|
|
* Author: Anton Vorontsov <avorontsov@ru.mvista.com>
|
|
*/
|
|
|
|
#ifndef __SPI_FSL_CPM_H__
|
|
#define __SPI_FSL_CPM_H__
|
|
|
|
#include "spi-fsl-lib.h"
|
|
|
|
#ifdef CONFIG_FSL_SOC
|
|
extern void fsl_spi_cpm_reinit_txrx(struct mpc8xxx_spi *mspi);
|
|
extern int fsl_spi_cpm_bufs(struct mpc8xxx_spi *mspi,
|
|
struct spi_transfer *t, bool is_dma_mapped);
|
|
extern void fsl_spi_cpm_bufs_complete(struct mpc8xxx_spi *mspi);
|
|
extern void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events);
|
|
extern int fsl_spi_cpm_init(struct mpc8xxx_spi *mspi);
|
|
extern void fsl_spi_cpm_free(struct mpc8xxx_spi *mspi);
|
|
#else
|
|
static inline void fsl_spi_cpm_reinit_txrx(struct mpc8xxx_spi *mspi) { }
|
|
static inline int fsl_spi_cpm_bufs(struct mpc8xxx_spi *mspi,
|
|
struct spi_transfer *t,
|
|
bool is_dma_mapped) { return 0; }
|
|
static inline void fsl_spi_cpm_bufs_complete(struct mpc8xxx_spi *mspi) { }
|
|
static inline void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events) { }
|
|
static inline int fsl_spi_cpm_init(struct mpc8xxx_spi *mspi) { return 0; }
|
|
static inline void fsl_spi_cpm_free(struct mpc8xxx_spi *mspi) { }
|
|
#endif
|
|
|
|
#endif /* __SPI_FSL_CPM_H__ */
|