Linux Kernel
3.7.1
|
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/spi/spi.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/clk.h>
#include <asm/unaligned.h>
Go to the source code of this file.
Data Structures | |
struct | orion_spi |
Macros | |
#define | DRIVER_NAME "orion_spi" |
#define | ORION_NUM_CHIPSELECTS 1 /* only one slave is supported*/ |
#define | ORION_SPI_WAIT_RDY_MAX_LOOP 2000 /* in usec */ |
#define | ORION_SPI_IF_CTRL_REG 0x00 |
#define | ORION_SPI_IF_CONFIG_REG 0x04 |
#define | ORION_SPI_DATA_OUT_REG 0x08 |
#define | ORION_SPI_DATA_IN_REG 0x0c |
#define | ORION_SPI_INT_CAUSE_REG 0x10 |
#define | ORION_SPI_IF_8_16_BIT_MODE (1 << 5) |
#define | ORION_SPI_CLK_PRESCALE_MASK 0x1F |
Functions | |
MODULE_ALIAS ("platform:"DRIVER_NAME) | |
MODULE_DEVICE_TABLE (of, orion_spi_of_match_table) | |
module_init (orion_spi_init) | |
module_exit (orion_spi_exit) | |
MODULE_DESCRIPTION ("Orion SPI driver") | |
MODULE_AUTHOR ("Shadi Ammouri <[email protected]>") | |
MODULE_LICENSE ("GPL") | |
#define DRIVER_NAME "orion_spi" |
Definition at line 24 of file spi-orion.c.
Definition at line 26 of file spi-orion.c.
#define ORION_SPI_CLK_PRESCALE_MASK 0x1F |
Definition at line 36 of file spi-orion.c.
#define ORION_SPI_DATA_IN_REG 0x0c |
Definition at line 32 of file spi-orion.c.
#define ORION_SPI_DATA_OUT_REG 0x08 |
Definition at line 31 of file spi-orion.c.
#define ORION_SPI_IF_8_16_BIT_MODE (1 << 5) |
Definition at line 35 of file spi-orion.c.
#define ORION_SPI_IF_CONFIG_REG 0x04 |
Definition at line 30 of file spi-orion.c.
#define ORION_SPI_IF_CTRL_REG 0x00 |
Definition at line 29 of file spi-orion.c.
#define ORION_SPI_INT_CAUSE_REG 0x10 |
Definition at line 33 of file spi-orion.c.
#define ORION_SPI_WAIT_RDY_MAX_LOOP 2000 /* in usec */ |
Definition at line 27 of file spi-orion.c.
MODULE_ALIAS | ( | "platform:" | DRIVER_NAME | ) |
MODULE_AUTHOR | ( | "Shadi Ammouri <[email protected]>" | ) |
MODULE_DEVICE_TABLE | ( | of | , |
orion_spi_of_match_table | |||
) |
module_exit | ( | orion_spi_exit | ) |
module_init | ( | orion_spi_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |