Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/list.h>
#include <linux/workqueue.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/dmaengine.h>
#include <linux/dma-mapping.h>
#include <linux/sh_dma.h>
#include <linux/spi/spi.h>
#include <linux/spi/rspi.h>
Go to the source code of this file.
Data Structures | |
struct | rspi_data |
Macros | |
#define | RSPI_SPCR 0x00 |
#define | RSPI_SSLP 0x01 |
#define | RSPI_SPPCR 0x02 |
#define | RSPI_SPSR 0x03 |
#define | RSPI_SPDR 0x04 |
#define | RSPI_SPSCR 0x08 |
#define | RSPI_SPSSR 0x09 |
#define | RSPI_SPBR 0x0a |
#define | RSPI_SPDCR 0x0b |
#define | RSPI_SPCKD 0x0c |
#define | RSPI_SSLND 0x0d |
#define | RSPI_SPND 0x0e |
#define | RSPI_SPCR2 0x0f |
#define | RSPI_SPCMD0 0x10 |
#define | RSPI_SPCMD1 0x12 |
#define | RSPI_SPCMD2 0x14 |
#define | RSPI_SPCMD3 0x16 |
#define | RSPI_SPCMD4 0x18 |
#define | RSPI_SPCMD5 0x1a |
#define | RSPI_SPCMD6 0x1c |
#define | RSPI_SPCMD7 0x1e |
#define | SPCR_SPRIE 0x80 |
#define | SPCR_SPE 0x40 |
#define | SPCR_SPTIE 0x20 |
#define | SPCR_SPEIE 0x10 |
#define | SPCR_MSTR 0x08 |
#define | SPCR_MODFEN 0x04 |
#define | SPCR_TXMD 0x02 |
#define | SPCR_SPMS 0x01 |
#define | SSLP_SSL1P 0x02 |
#define | SSLP_SSL0P 0x01 |
#define | SPPCR_MOIFE 0x20 |
#define | SPPCR_MOIFV 0x10 |
#define | SPPCR_SPOM 0x04 |
#define | SPPCR_SPLP2 0x02 |
#define | SPPCR_SPLP 0x01 |
#define | SPSR_SPRF 0x80 |
#define | SPSR_SPTEF 0x20 |
#define | SPSR_PERF 0x08 |
#define | SPSR_MODF 0x04 |
#define | SPSR_IDLNF 0x02 |
#define | SPSR_OVRF 0x01 |
#define | SPSCR_SPSLN_MASK 0x07 |
#define | SPSSR_SPECM_MASK 0x70 |
#define | SPSSR_SPCP_MASK 0x07 |
#define | SPDCR_SPLW 0x20 |
#define | SPDCR_SPRDTD 0x10 |
#define | SPDCR_SLSEL1 0x08 |
#define | SPDCR_SLSEL0 0x04 |
#define | SPDCR_SLSEL_MASK 0x0c |
#define | SPDCR_SPFC1 0x02 |
#define | SPDCR_SPFC0 0x01 |
#define | SPCKD_SCKDL_MASK 0x07 |
#define | SSLND_SLNDL_MASK 0x07 |
#define | SPND_SPNDL_MASK 0x07 |
#define | SPCR2_PTE 0x08 |
#define | SPCR2_SPIE 0x04 |
#define | SPCR2_SPOE 0x02 |
#define | SPCR2_SPPE 0x01 |
#define | SPCMD_SCKDEN 0x8000 |
#define | SPCMD_SLNDEN 0x4000 |
#define | SPCMD_SPNDEN 0x2000 |
#define | SPCMD_LSBF 0x1000 |
#define | SPCMD_SPB_MASK 0x0f00 |
#define | SPCMD_SPB_8_TO_16(bit) (((bit - 1) << 8) & SPCMD_SPB_MASK) |
#define | SPCMD_SPB_20BIT 0x0000 |
#define | SPCMD_SPB_24BIT 0x0100 |
#define | SPCMD_SPB_32BIT 0x0200 |
#define | SPCMD_SSLKP 0x0080 |
#define | SPCMD_SSLA_MASK 0x0030 |
#define | SPCMD_BRDV_MASK 0x000c |
#define | SPCMD_CPOL 0x0002 |
#define | SPCMD_CPHA 0x0001 |
Functions | |
module_platform_driver (rspi_driver) | |
MODULE_DESCRIPTION ("Renesas RSPI bus driver") | |
MODULE_LICENSE ("GPL v2") | |
MODULE_AUTHOR ("Yoshihiro Shimoda") | |
MODULE_ALIAS ("platform:rspi") | |
#define RSPI_SPBR 0x0a |
Definition at line 47 of file spi-rspi.c.
#define RSPI_SPCKD 0x0c |
Definition at line 49 of file spi-rspi.c.
#define RSPI_SPCMD0 0x10 |
Definition at line 53 of file spi-rspi.c.
#define RSPI_SPCMD1 0x12 |
Definition at line 54 of file spi-rspi.c.
#define RSPI_SPCMD2 0x14 |
Definition at line 55 of file spi-rspi.c.
#define RSPI_SPCMD3 0x16 |
Definition at line 56 of file spi-rspi.c.
#define RSPI_SPCMD4 0x18 |
Definition at line 57 of file spi-rspi.c.
#define RSPI_SPCMD5 0x1a |
Definition at line 58 of file spi-rspi.c.
#define RSPI_SPCMD6 0x1c |
Definition at line 59 of file spi-rspi.c.
#define RSPI_SPCMD7 0x1e |
Definition at line 60 of file spi-rspi.c.
#define RSPI_SPCR 0x00 |
Definition at line 40 of file spi-rspi.c.
#define RSPI_SPCR2 0x0f |
Definition at line 52 of file spi-rspi.c.
#define RSPI_SPDCR 0x0b |
Definition at line 48 of file spi-rspi.c.
#define RSPI_SPDR 0x04 |
Definition at line 44 of file spi-rspi.c.
#define RSPI_SPND 0x0e |
Definition at line 51 of file spi-rspi.c.
#define RSPI_SPPCR 0x02 |
Definition at line 42 of file spi-rspi.c.
#define RSPI_SPSCR 0x08 |
Definition at line 45 of file spi-rspi.c.
#define RSPI_SPSR 0x03 |
Definition at line 43 of file spi-rspi.c.
#define RSPI_SPSSR 0x09 |
Definition at line 46 of file spi-rspi.c.
#define RSPI_SSLND 0x0d |
Definition at line 50 of file spi-rspi.c.
#define RSPI_SSLP 0x01 |
Definition at line 41 of file spi-rspi.c.
#define SPCKD_SCKDL_MASK 0x07 |
Definition at line 108 of file spi-rspi.c.
#define SPCMD_BRDV_MASK 0x000c |
Definition at line 134 of file spi-rspi.c.
#define SPCMD_CPHA 0x0001 |
Definition at line 136 of file spi-rspi.c.
#define SPCMD_CPOL 0x0002 |
Definition at line 135 of file spi-rspi.c.
#define SPCMD_LSBF 0x1000 |
Definition at line 126 of file spi-rspi.c.
#define SPCMD_SCKDEN 0x8000 |
Definition at line 123 of file spi-rspi.c.
#define SPCMD_SLNDEN 0x4000 |
Definition at line 124 of file spi-rspi.c.
#define SPCMD_SPB_20BIT 0x0000 |
Definition at line 129 of file spi-rspi.c.
#define SPCMD_SPB_24BIT 0x0100 |
Definition at line 130 of file spi-rspi.c.
#define SPCMD_SPB_32BIT 0x0200 |
Definition at line 131 of file spi-rspi.c.
#define SPCMD_SPB_8_TO_16 | ( | bit | ) | (((bit - 1) << 8) & SPCMD_SPB_MASK) |
Definition at line 128 of file spi-rspi.c.
#define SPCMD_SPB_MASK 0x0f00 |
Definition at line 127 of file spi-rspi.c.
#define SPCMD_SPNDEN 0x2000 |
Definition at line 125 of file spi-rspi.c.
#define SPCMD_SSLA_MASK 0x0030 |
Definition at line 133 of file spi-rspi.c.
#define SPCMD_SSLKP 0x0080 |
Definition at line 132 of file spi-rspi.c.
#define SPCR2_PTE 0x08 |
Definition at line 117 of file spi-rspi.c.
#define SPCR2_SPIE 0x04 |
Definition at line 118 of file spi-rspi.c.
#define SPCR2_SPOE 0x02 |
Definition at line 119 of file spi-rspi.c.
#define SPCR2_SPPE 0x01 |
Definition at line 120 of file spi-rspi.c.
#define SPCR_MODFEN 0x04 |
Definition at line 68 of file spi-rspi.c.
#define SPCR_MSTR 0x08 |
Definition at line 67 of file spi-rspi.c.
#define SPCR_SPE 0x40 |
Definition at line 64 of file spi-rspi.c.
#define SPCR_SPEIE 0x10 |
Definition at line 66 of file spi-rspi.c.
#define SPCR_SPMS 0x01 |
Definition at line 70 of file spi-rspi.c.
#define SPCR_SPRIE 0x80 |
Definition at line 63 of file spi-rspi.c.
#define SPCR_SPTIE 0x20 |
Definition at line 65 of file spi-rspi.c.
#define SPCR_TXMD 0x02 |
Definition at line 69 of file spi-rspi.c.
#define SPDCR_SLSEL0 0x04 |
Definition at line 102 of file spi-rspi.c.
#define SPDCR_SLSEL1 0x08 |
Definition at line 101 of file spi-rspi.c.
#define SPDCR_SLSEL_MASK 0x0c |
Definition at line 103 of file spi-rspi.c.
#define SPDCR_SPFC0 0x01 |
Definition at line 105 of file spi-rspi.c.
#define SPDCR_SPFC1 0x02 |
Definition at line 104 of file spi-rspi.c.
#define SPDCR_SPLW 0x20 |
Definition at line 99 of file spi-rspi.c.
#define SPDCR_SPRDTD 0x10 |
Definition at line 100 of file spi-rspi.c.
#define SPND_SPNDL_MASK 0x07 |
Definition at line 114 of file spi-rspi.c.
#define SPPCR_MOIFE 0x20 |
Definition at line 77 of file spi-rspi.c.
#define SPPCR_MOIFV 0x10 |
Definition at line 78 of file spi-rspi.c.
#define SPPCR_SPLP 0x01 |
Definition at line 81 of file spi-rspi.c.
#define SPPCR_SPLP2 0x02 |
Definition at line 80 of file spi-rspi.c.
#define SPPCR_SPOM 0x04 |
Definition at line 79 of file spi-rspi.c.
#define SPSCR_SPSLN_MASK 0x07 |
Definition at line 92 of file spi-rspi.c.
#define SPSR_IDLNF 0x02 |
Definition at line 88 of file spi-rspi.c.
#define SPSR_MODF 0x04 |
Definition at line 87 of file spi-rspi.c.
#define SPSR_OVRF 0x01 |
Definition at line 89 of file spi-rspi.c.
#define SPSR_PERF 0x08 |
Definition at line 86 of file spi-rspi.c.
#define SPSR_SPRF 0x80 |
Definition at line 84 of file spi-rspi.c.
#define SPSR_SPTEF 0x20 |
Definition at line 85 of file spi-rspi.c.
#define SPSSR_SPCP_MASK 0x07 |
Definition at line 96 of file spi-rspi.c.
#define SPSSR_SPECM_MASK 0x70 |
Definition at line 95 of file spi-rspi.c.
#define SSLND_SLNDL_MASK 0x07 |
Definition at line 111 of file spi-rspi.c.
#define SSLP_SSL0P 0x01 |
Definition at line 74 of file spi-rspi.c.
#define SSLP_SSL1P 0x02 |
Definition at line 73 of file spi-rspi.c.
MODULE_ALIAS | ( | "platform:rspi" | ) |
MODULE_AUTHOR | ( | "Yoshihiro Shimoda" | ) |
MODULE_LICENSE | ( | "GPL v2" | ) |
module_platform_driver | ( | rspi_driver | ) |