Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/wait.h>
#include <linux/of_platform.h>
#include <linux/of_gpio.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/gpio.h>
#include <linux/spi/spi.h>
#include <linux/spi/spi_bitbang.h>
#include <asm/io.h>
#include <asm/dcr.h>
#include <asm/dcr-regs.h>
Go to the source code of this file.
Data Structures | |
struct | spi_ppc4xx_regs |
struct | ppc4xx_spi |
struct | spi_ppc4xx_cs |
Macros | |
#define | SPI_PPC4XX_MODE_SCP (0x80 >> 3) |
#define | SPI_PPC4XX_MODE_SPE (0x80 >> 4) |
#define | SPI_PPC4XX_MODE_RD (0x80 >> 5) |
#define | SPI_PPC4XX_MODE_CI (0x80 >> 6) |
#define | SPI_PPC4XX_MODE_IL (0x80 >> 7) |
#define | SPI_PPC4XX_CR_STR (0x80 >> 7) |
#define | SPI_PPC4XX_SR_BSY (0x80 >> 6) |
#define | SPI_PPC4XX_SR_RBR (0x80 >> 7) |
#define | SPI_CLK_MODE0 (SPI_PPC4XX_MODE_SCP | 0) |
#define | SPI_CLK_MODE1 (0 | 0) |
#define | SPI_CLK_MODE2 (SPI_PPC4XX_MODE_SCP | SPI_PPC4XX_MODE_CI) |
#define | SPI_CLK_MODE3 (0 | SPI_PPC4XX_MODE_CI) |
#define | DRIVER_NAME "spi_ppc4xx_of" |
Functions | |
MODULE_DEVICE_TABLE (of, spi_ppc4xx_of_match) | |
module_platform_driver (spi_ppc4xx_of_driver) | |
MODULE_AUTHOR ("Gary Jennejohn & Stefan Roese") | |
MODULE_DESCRIPTION ("Simple PPC4xx SPI Driver") | |
MODULE_LICENSE ("GPL") | |
#define DRIVER_NAME "spi_ppc4xx_of" |
Definition at line 93 of file spi-ppc4xx.c.
#define SPI_CLK_MODE0 (SPI_PPC4XX_MODE_SCP | 0) |
Definition at line 88 of file spi-ppc4xx.c.
#define SPI_CLK_MODE1 (0 | 0) |
Definition at line 89 of file spi-ppc4xx.c.
#define SPI_CLK_MODE2 (SPI_PPC4XX_MODE_SCP | SPI_PPC4XX_MODE_CI) |
Definition at line 90 of file spi-ppc4xx.c.
#define SPI_CLK_MODE3 (0 | SPI_PPC4XX_MODE_CI) |
Definition at line 91 of file spi-ppc4xx.c.
#define SPI_PPC4XX_CR_STR (0x80 >> 7) |
Definition at line 79 of file spi-ppc4xx.c.
#define SPI_PPC4XX_MODE_CI (0x80 >> 6) |
Definition at line 69 of file spi-ppc4xx.c.
#define SPI_PPC4XX_MODE_IL (0x80 >> 7) |
Definition at line 75 of file spi-ppc4xx.c.
#define SPI_PPC4XX_MODE_RD (0x80 >> 5) |
Definition at line 62 of file spi-ppc4xx.c.
#define SPI_PPC4XX_MODE_SCP (0x80 >> 3) |
Definition at line 52 of file spi-ppc4xx.c.
#define SPI_PPC4XX_MODE_SPE (0x80 >> 4) |
Definition at line 55 of file spi-ppc4xx.c.
#define SPI_PPC4XX_SR_BSY (0x80 >> 6) |
Definition at line 83 of file spi-ppc4xx.c.
#define SPI_PPC4XX_SR_RBR (0x80 >> 7) |
Definition at line 85 of file spi-ppc4xx.c.
MODULE_AUTHOR | ( | "Gary Jennejohn & Stefan Roese" | ) |
MODULE_DESCRIPTION | ( | "Simple PPC4xx SPI Driver" | ) |
MODULE_DEVICE_TABLE | ( | of | , |
spi_ppc4xx_of_match | |||
) |
MODULE_LICENSE | ( | "GPL" | ) |
module_platform_driver | ( | spi_ppc4xx_of_driver | ) |