Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/of_platform.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/spi/spi.h>
#include <linux/io.h>
#include <linux/of_gpio.h>
#include <linux/slab.h>
#include <asm/time.h>
#include <asm/mpc52xx.h>
Go to the source code of this file.
Data Structures | |
struct | mpc52xx_spi |
Macros | |
#define | SPI_CTRL1 0x00 |
#define | SPI_CTRL1_SPIE (1 << 7) |
#define | SPI_CTRL1_SPE (1 << 6) |
#define | SPI_CTRL1_MSTR (1 << 4) |
#define | SPI_CTRL1_CPOL (1 << 3) |
#define | SPI_CTRL1_CPHA (1 << 2) |
#define | SPI_CTRL1_SSOE (1 << 1) |
#define | SPI_CTRL1_LSBFE (1 << 0) |
#define | SPI_CTRL2 0x01 |
#define | SPI_BRR 0x04 |
#define | SPI_STATUS 0x05 |
#define | SPI_STATUS_SPIF (1 << 7) |
#define | SPI_STATUS_WCOL (1 << 6) |
#define | SPI_STATUS_MODF (1 << 4) |
#define | SPI_DATA 0x09 |
#define | SPI_PORTDATA 0x0d |
#define | SPI_DATADIR 0x10 |
#define | FSM_STOP 0 /* Nothing more for the state machine to */ |
#define | FSM_POLL 1 /* need to poll for completion, an IRQ is */ |
#define | FSM_CONTINUE 2 /* Keep iterating the state machine */ |
Functions | |
MODULE_AUTHOR ("Grant Likely <grant.likely@secretlab.ca>") | |
MODULE_DESCRIPTION ("MPC52xx SPI (non-PSC) Driver") | |
MODULE_LICENSE ("GPL") | |
MODULE_DEVICE_TABLE (of, mpc52xx_spi_match) | |
module_platform_driver (mpc52xx_spi_of_driver) | |
Definition at line 59 of file spi-mpc52xx.c.
#define FSM_POLL 1 /* need to poll for completion, an IRQ is */ |
Definition at line 57 of file spi-mpc52xx.c.
Definition at line 54 of file spi-mpc52xx.c.
#define SPI_BRR 0x04 |
Definition at line 42 of file spi-mpc52xx.c.
#define SPI_CTRL1 0x00 |
Definition at line 32 of file spi-mpc52xx.c.
#define SPI_CTRL1_CPHA (1 << 2) |
Definition at line 37 of file spi-mpc52xx.c.
#define SPI_CTRL1_CPOL (1 << 3) |
Definition at line 36 of file spi-mpc52xx.c.
#define SPI_CTRL1_LSBFE (1 << 0) |
Definition at line 39 of file spi-mpc52xx.c.
#define SPI_CTRL1_MSTR (1 << 4) |
Definition at line 35 of file spi-mpc52xx.c.
#define SPI_CTRL1_SPE (1 << 6) |
Definition at line 34 of file spi-mpc52xx.c.
#define SPI_CTRL1_SPIE (1 << 7) |
Definition at line 33 of file spi-mpc52xx.c.
#define SPI_CTRL1_SSOE (1 << 1) |
Definition at line 38 of file spi-mpc52xx.c.
#define SPI_CTRL2 0x01 |
Definition at line 41 of file spi-mpc52xx.c.
#define SPI_DATA 0x09 |
Definition at line 49 of file spi-mpc52xx.c.
#define SPI_DATADIR 0x10 |
Definition at line 51 of file spi-mpc52xx.c.
#define SPI_PORTDATA 0x0d |
Definition at line 50 of file spi-mpc52xx.c.
#define SPI_STATUS 0x05 |
Definition at line 44 of file spi-mpc52xx.c.
#define SPI_STATUS_MODF (1 << 4) |
Definition at line 47 of file spi-mpc52xx.c.
#define SPI_STATUS_SPIF (1 << 7) |
Definition at line 45 of file spi-mpc52xx.c.
#define SPI_STATUS_WCOL (1 << 6) |
Definition at line 46 of file spi-mpc52xx.c.
MODULE_AUTHOR | ( | "Grant Likely <grant.likely@secretlab.ca>" | ) |
MODULE_DEVICE_TABLE | ( | of | , |
mpc52xx_spi_match | |||
) |
MODULE_LICENSE | ( | "GPL" | ) |
module_platform_driver | ( | mpc52xx_spi_of_driver | ) |