|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/types.h>#include <linux/kernel.h>#include <linux/interrupt.h>#include <linux/delay.h>#include <linux/irq.h>#include <linux/spi/spi.h>#include <linux/spi/spi_bitbang.h>#include <linux/platform_device.h>#include <linux/fsl_devices.h>#include <linux/dma-mapping.h>#include <linux/mm.h>#include <linux/mutex.h>#include <linux/of.h>#include <linux/of_platform.h>#include <linux/gpio.h>#include <linux/of_gpio.h>#include <sysdev/fsl_soc.h>#include <asm/cpm.h>#include <asm/qe.h>#include "spi-fsl-lib.h"#include <asm/cpm2.h>Go to the source code of this file.
Data Structures | |
| struct | fsl_spi_reg |
Macros | |
| #define | CPM_SPI_CMD mk_cr_cmd(CPM_CR_SPI_PAGE, CPM_CR_SPI_SBLOCK, 0, 0) |
| #define | SPMODE_LOOP (1 << 30) |
| #define | SPMODE_CI_INACTIVEHIGH (1 << 29) |
| #define | SPMODE_CP_BEGIN_EDGECLK (1 << 28) |
| #define | SPMODE_DIV16 (1 << 27) |
| #define | SPMODE_REV (1 << 26) |
| #define | SPMODE_MS (1 << 25) |
| #define | SPMODE_ENABLE (1 << 24) |
| #define | SPMODE_LEN(x) ((x) << 20) |
| #define | SPMODE_PM(x) ((x) << 16) |
| #define | SPMODE_OP (1 << 14) |
| #define | SPMODE_CG(x) ((x) << 7) |
| #define | SPMODE_INIT_VAL |
| #define | SPIE_NE 0x00000200 /* Not empty */ |
| #define | SPIE_NF 0x00000100 /* Not full */ |
| #define | SPIM_NE 0x00000200 /* Not empty */ |
| #define | SPIM_NF 0x00000100 /* Not full */ |
| #define | SPIE_TXB 0x00000200 /* Last char is written to tx fifo */ |
| #define | SPIE_RXB 0x00000100 /* Last char is written to rx buf */ |
| #define | SPCOM_STR (1 << 23) /* Start transmit */ |
| #define | SPI_PRAM_SIZE 0x100 |
| #define | SPI_MRBLR ((unsigned int)PAGE_SIZE) |
Functions | |
| MODULE_DEVICE_TABLE (of, of_fsl_spi_match) | |
| module_init (fsl_spi_init) | |
| module_exit (fsl_spi_exit) | |
| MODULE_AUTHOR ("Kumar Gala") | |
| MODULE_DESCRIPTION ("Simple Freescale SPI Driver") | |
| MODULE_LICENSE ("GPL") | |
| #define CPM_SPI_CMD mk_cr_cmd(CPM_CR_SPI_PAGE, CPM_CR_SPI_SBLOCK, 0, 0) |
Definition at line 48 of file spi-fsl-spi.c.
| #define SPCOM_STR (1 << 23) /* Start transmit */ |
Definition at line 94 of file spi-fsl-spi.c.
Definition at line 97 of file spi-fsl-spi.c.
| #define SPI_PRAM_SIZE 0x100 |
Definition at line 96 of file spi-fsl-spi.c.
| #define SPIE_NE 0x00000200 /* Not empty */ |
Definition at line 83 of file spi-fsl-spi.c.
| #define SPIE_NF 0x00000100 /* Not full */ |
Definition at line 84 of file spi-fsl-spi.c.
| #define SPIE_RXB 0x00000100 /* Last char is written to rx buf */ |
Definition at line 91 of file spi-fsl-spi.c.
| #define SPIE_TXB 0x00000200 /* Last char is written to tx fifo */ |
Definition at line 90 of file spi-fsl-spi.c.
| #define SPIM_NE 0x00000200 /* Not empty */ |
Definition at line 87 of file spi-fsl-spi.c.
| #define SPIM_NF 0x00000100 /* Not full */ |
Definition at line 88 of file spi-fsl-spi.c.
Definition at line 73 of file spi-fsl-spi.c.
| #define SPMODE_CI_INACTIVEHIGH (1 << 29) |
Definition at line 64 of file spi-fsl-spi.c.
| #define SPMODE_CP_BEGIN_EDGECLK (1 << 28) |
Definition at line 65 of file spi-fsl-spi.c.
| #define SPMODE_DIV16 (1 << 27) |
Definition at line 66 of file spi-fsl-spi.c.
| #define SPMODE_ENABLE (1 << 24) |
Definition at line 69 of file spi-fsl-spi.c.
| #define SPMODE_INIT_VAL |
Definition at line 79 of file spi-fsl-spi.c.
Definition at line 70 of file spi-fsl-spi.c.
| #define SPMODE_LOOP (1 << 30) |
Definition at line 63 of file spi-fsl-spi.c.
| #define SPMODE_MS (1 << 25) |
Definition at line 68 of file spi-fsl-spi.c.
| #define SPMODE_OP (1 << 14) |
Definition at line 72 of file spi-fsl-spi.c.
Definition at line 71 of file spi-fsl-spi.c.
| #define SPMODE_REV (1 << 26) |
Definition at line 67 of file spi-fsl-spi.c.
| MODULE_AUTHOR | ( | "Kumar Gala" | ) |
| MODULE_DESCRIPTION | ( | "Simple Freescale SPI Driver" | ) |
| MODULE_DEVICE_TABLE | ( | of | , |
| of_fsl_spi_match | |||
| ) |
| module_exit | ( | fsl_spi_exit | ) |
| module_init | ( | fsl_spi_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
1.8.2