Linux Kernel
3.7.1
|
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/dmaengine.h>
#include <linux/bitops.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/workqueue.h>
#include <linux/sched.h>
#include <linux/scatterlist.h>
#include <linux/spi/spi.h>
#include <linux/platform_data/dma-ep93xx.h>
#include <linux/platform_data/spi-ep93xx.h>
Go to the source code of this file.
Data Structures | |
struct | ep93xx_spi |
struct | ep93xx_spi_chip |
Macros | |
#define | SSPCR0 0x0000 |
#define | SSPCR0_MODE_SHIFT 6 |
#define | SSPCR0_SCR_SHIFT 8 |
#define | SSPCR1 0x0004 |
#define | SSPCR1_RIE BIT(0) |
#define | SSPCR1_TIE BIT(1) |
#define | SSPCR1_RORIE BIT(2) |
#define | SSPCR1_LBM BIT(3) |
#define | SSPCR1_SSE BIT(4) |
#define | SSPCR1_MS BIT(5) |
#define | SSPCR1_SOD BIT(6) |
#define | SSPDR 0x0008 |
#define | SSPSR 0x000c |
#define | SSPSR_TFE BIT(0) |
#define | SSPSR_TNF BIT(1) |
#define | SSPSR_RNE BIT(2) |
#define | SSPSR_RFF BIT(3) |
#define | SSPSR_BSY BIT(4) |
#define | SSPCPSR 0x0010 |
#define | SSPIIR 0x0014 |
#define | SSPIIR_RIS BIT(0) |
#define | SSPIIR_TIS BIT(1) |
#define | SSPIIR_RORIS BIT(2) |
#define | SSPICR SSPIIR |
#define | SPI_TIMEOUT 5 |
#define | SPI_FIFO_SIZE 8 |
#define | bits_per_word_to_dss(bpw) ((bpw) - 1) |
#define | work_to_espi(work) (container_of((work), struct ep93xx_spi, msg_work)) |
Functions | |
module_platform_driver (ep93xx_spi_driver) | |
MODULE_DESCRIPTION ("EP93xx SPI Controller driver") | |
MODULE_AUTHOR ("Mika Westerberg <[email protected]>") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS ("platform:ep93xx-spi") | |
#define bits_per_word_to_dss | ( | bpw | ) | ((bpw) - 1) |
Definition at line 159 of file spi-ep93xx.c.
#define SPI_FIFO_SIZE 8 |
Definition at line 69 of file spi-ep93xx.c.
#define SPI_TIMEOUT 5 |
Definition at line 67 of file spi-ep93xx.c.
#define SSPCPSR 0x0010 |
Definition at line 58 of file spi-ep93xx.c.
#define SSPCR0 0x0000 |
Definition at line 37 of file spi-ep93xx.c.
#define SSPCR0_MODE_SHIFT 6 |
Definition at line 38 of file spi-ep93xx.c.
#define SSPCR0_SCR_SHIFT 8 |
Definition at line 39 of file spi-ep93xx.c.
#define SSPCR1 0x0004 |
Definition at line 41 of file spi-ep93xx.c.
#define SSPCR1_LBM BIT(3) |
Definition at line 45 of file spi-ep93xx.c.
#define SSPCR1_MS BIT(5) |
Definition at line 47 of file spi-ep93xx.c.
#define SSPCR1_RIE BIT(0) |
Definition at line 42 of file spi-ep93xx.c.
#define SSPCR1_RORIE BIT(2) |
Definition at line 44 of file spi-ep93xx.c.
#define SSPCR1_SOD BIT(6) |
Definition at line 48 of file spi-ep93xx.c.
#define SSPCR1_SSE BIT(4) |
Definition at line 46 of file spi-ep93xx.c.
#define SSPCR1_TIE BIT(1) |
Definition at line 43 of file spi-ep93xx.c.
#define SSPDR 0x0008 |
Definition at line 50 of file spi-ep93xx.c.
#define SSPICR SSPIIR |
Definition at line 64 of file spi-ep93xx.c.
#define SSPIIR 0x0014 |
Definition at line 60 of file spi-ep93xx.c.
#define SSPIIR_RIS BIT(0) |
Definition at line 61 of file spi-ep93xx.c.
#define SSPIIR_RORIS BIT(2) |
Definition at line 63 of file spi-ep93xx.c.
#define SSPIIR_TIS BIT(1) |
Definition at line 62 of file spi-ep93xx.c.
#define SSPSR 0x000c |
Definition at line 52 of file spi-ep93xx.c.
#define SSPSR_BSY BIT(4) |
Definition at line 57 of file spi-ep93xx.c.
#define SSPSR_RFF BIT(3) |
Definition at line 56 of file spi-ep93xx.c.
#define SSPSR_RNE BIT(2) |
Definition at line 55 of file spi-ep93xx.c.
#define SSPSR_TFE BIT(0) |
Definition at line 53 of file spi-ep93xx.c.
#define SSPSR_TNF BIT(1) |
Definition at line 54 of file spi-ep93xx.c.
#define work_to_espi | ( | work | ) | (container_of((work), struct ep93xx_spi, msg_work)) |
Definition at line 871 of file spi-ep93xx.c.
MODULE_ALIAS | ( | "platform:ep93xx-spi" | ) |
MODULE_AUTHOR | ( | "Mika Westerberg <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "EP93xx SPI Controller driver" | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_platform_driver | ( | ep93xx_spi_driver | ) |