xilinx_spi.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Xilinx SPI device driver API and platform data header file
  3. *
  4. * Copyright (c) 2009 Intel Corporation
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. */
  19. #ifndef _XILINX_SPI_H_
  20. #define _XILINX_SPI_H_
  21. #include <linux/spi/spi.h>
  22. #include <linux/spi/spi_bitbang.h>
  23. #define XILINX_SPI_NAME "xilinx_spi"
  24. struct spi_master *xilinx_spi_init(struct device *dev, struct resource *mem,
  25. u32 irq, s16 bus_num);
  26. void xilinx_spi_deinit(struct spi_master *master);
  27. #endif