Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
spi-oc-tiny.c File Reference
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/spi/spi.h>
#include <linux/spi/spi_bitbang.h>
#include <linux/spi/spi_oc_tiny.h>
#include <linux/io.h>
#include <linux/gpio.h>
#include <linux/of.h>

Go to the source code of this file.

Data Structures

struct  tiny_spi
 

Macros

#define DRV_NAME   "spi_oc_tiny"
 
#define TINY_SPI_RXDATA   0
 
#define TINY_SPI_TXDATA   4
 
#define TINY_SPI_STATUS   8
 
#define TINY_SPI_CONTROL   12
 
#define TINY_SPI_BAUD   16
 
#define TINY_SPI_STATUS_TXE   0x1
 
#define TINY_SPI_STATUS_TXR   0x2
 
#define tiny_spi_match   NULL
 

Functions

 module_platform_driver (tiny_spi_driver)
 
 MODULE_DESCRIPTION ("OpenCores tiny SPI driver")
 
 MODULE_AUTHOR ("Thomas Chou <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:"DRV_NAME)
 

Macro Definition Documentation

#define DRV_NAME   "spi_oc_tiny"

Definition at line 30 of file spi-oc-tiny.c.

#define TINY_SPI_BAUD   16

Definition at line 36 of file spi-oc-tiny.c.

#define TINY_SPI_CONTROL   12

Definition at line 35 of file spi-oc-tiny.c.

#define tiny_spi_match   NULL

Definition at line 397 of file spi-oc-tiny.c.

#define TINY_SPI_RXDATA   0

Definition at line 32 of file spi-oc-tiny.c.

#define TINY_SPI_STATUS   8

Definition at line 34 of file spi-oc-tiny.c.

#define TINY_SPI_STATUS_TXE   0x1

Definition at line 38 of file spi-oc-tiny.c.

#define TINY_SPI_STATUS_TXR   0x2

Definition at line 39 of file spi-oc-tiny.c.

#define TINY_SPI_TXDATA   4

Definition at line 33 of file spi-oc-tiny.c.

Function Documentation

MODULE_ALIAS ( "platform:"  DRV_NAME)
MODULE_AUTHOR ( "Thomas Chou <[email protected]>"  )
MODULE_DESCRIPTION ( "OpenCores tiny SPI driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( tiny_spi_driver  )