|
Linux Kernel
3.7.1
|
#include <linux/kernel.h>#include <linux/init.h>#include <linux/delay.h>#include <linux/platform_device.h>#include <linux/workqueue.h>#include <linux/interrupt.h>#include <linux/err.h>#include <linux/clk.h>#include <linux/slab.h>#include <linux/spi/spi.h>#include <linux/spi/spi_bitbang.h>#include <linux/module.h>#include <asm/irq.h>#include <mach/hardware.h>#include <asm/io.h>#include <asm/mach-types.h>#include <mach/mux.h>#include <mach/omap7xx.h>Go to the source code of this file.
Data Structures | |
| struct | uwire_spi |
| struct | uwire_state |
Macros | |
| #define | UWIRE_BASE_PHYS 0xFFFB3000 |
| #define | UWIRE_IO_SIZE 0x20 |
| #define | UWIRE_TDR 0x00 |
| #define | UWIRE_RDR 0x00 |
| #define | UWIRE_CSR 0x01 |
| #define | UWIRE_SR1 0x02 |
| #define | UWIRE_SR2 0x03 |
| #define | UWIRE_SR3 0x04 |
| #define | UWIRE_SR4 0x05 |
| #define | UWIRE_SR5 0x06 |
| #define | RDRB (1 << 15) |
| #define | CSRB (1 << 14) |
| #define | START (1 << 13) |
| #define | CS_CMD (1 << 12) |
| #define | UWIRE_READ_FALLING_EDGE 0x0001 |
| #define | UWIRE_READ_RISING_EDGE 0x0000 |
| #define | UWIRE_WRITE_FALLING_EDGE 0x0000 |
| #define | UWIRE_WRITE_RISING_EDGE 0x0002 |
| #define | UWIRE_CS_ACTIVE_LOW 0x0000 |
| #define | UWIRE_CS_ACTIVE_HIGH 0x0004 |
| #define | UWIRE_FREQ_DIV_2 0x0000 |
| #define | UWIRE_FREQ_DIV_4 0x0008 |
| #define | UWIRE_FREQ_DIV_8 0x0010 |
| #define | UWIRE_CHK_READY 0x0020 |
| #define | UWIRE_CLK_INVERTED 0x0040 |
Functions | |
| MODULE_ALIAS ("platform:omap_uwire") | |
| subsys_initcall (omap_uwire_init) | |
| module_exit (omap_uwire_exit) | |
| MODULE_LICENSE ("GPL") | |
| #define CS_CMD (1 << 12) |
Definition at line 80 of file spi-omap-uwire.c.
| #define CSRB (1 << 14) |
Definition at line 78 of file spi-omap-uwire.c.
| #define RDRB (1 << 15) |
Definition at line 77 of file spi-omap-uwire.c.
| #define START (1 << 13) |
Definition at line 79 of file spi-omap-uwire.c.
| #define UWIRE_BASE_PHYS 0xFFFB3000 |
Definition at line 63 of file spi-omap-uwire.c.
| #define UWIRE_CHK_READY 0x0020 |
Definition at line 92 of file spi-omap-uwire.c.
| #define UWIRE_CLK_INVERTED 0x0040 |
Definition at line 93 of file spi-omap-uwire.c.
| #define UWIRE_CS_ACTIVE_HIGH 0x0004 |
Definition at line 88 of file spi-omap-uwire.c.
| #define UWIRE_CS_ACTIVE_LOW 0x0000 |
Definition at line 87 of file spi-omap-uwire.c.
| #define UWIRE_CSR 0x01 |
Definition at line 69 of file spi-omap-uwire.c.
| #define UWIRE_FREQ_DIV_2 0x0000 |
Definition at line 89 of file spi-omap-uwire.c.
| #define UWIRE_FREQ_DIV_4 0x0008 |
Definition at line 90 of file spi-omap-uwire.c.
| #define UWIRE_FREQ_DIV_8 0x0010 |
Definition at line 91 of file spi-omap-uwire.c.
| #define UWIRE_IO_SIZE 0x20 |
Definition at line 66 of file spi-omap-uwire.c.
| #define UWIRE_RDR 0x00 |
Definition at line 68 of file spi-omap-uwire.c.
| #define UWIRE_READ_FALLING_EDGE 0x0001 |
Definition at line 83 of file spi-omap-uwire.c.
| #define UWIRE_READ_RISING_EDGE 0x0000 |
Definition at line 84 of file spi-omap-uwire.c.
| #define UWIRE_SR1 0x02 |
Definition at line 70 of file spi-omap-uwire.c.
| #define UWIRE_SR2 0x03 |
Definition at line 71 of file spi-omap-uwire.c.
| #define UWIRE_SR3 0x04 |
Definition at line 72 of file spi-omap-uwire.c.
| #define UWIRE_SR4 0x05 |
Definition at line 73 of file spi-omap-uwire.c.
| #define UWIRE_SR5 0x06 |
Definition at line 74 of file spi-omap-uwire.c.
| #define UWIRE_TDR 0x00 |
Definition at line 67 of file spi-omap-uwire.c.
| #define UWIRE_WRITE_FALLING_EDGE 0x0000 |
Definition at line 85 of file spi-omap-uwire.c.
| #define UWIRE_WRITE_RISING_EDGE 0x0002 |
Definition at line 86 of file spi-omap-uwire.c.
| MODULE_ALIAS | ( | "platform:omap_uwire" | ) |
| module_exit | ( | omap_uwire_exit | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| subsys_initcall | ( | omap_uwire_init | ) |
1.8.2