|
@@ -22,15 +22,10 @@ Typically a SPI master is defined in the arch/.../mach-*/board-*.c as a
|
|
found in include/linux/spi/pxa2xx_spi.h:
|
|
found in include/linux/spi/pxa2xx_spi.h:
|
|
|
|
|
|
struct pxa2xx_spi_master {
|
|
struct pxa2xx_spi_master {
|
|
- u32 clock_enable;
|
|
|
|
u16 num_chipselect;
|
|
u16 num_chipselect;
|
|
u8 enable_dma;
|
|
u8 enable_dma;
|
|
};
|
|
};
|
|
|
|
|
|
-The "pxa2xx_spi_master.clock_enable" field is used to enable/disable the
|
|
|
|
-corresponding SSP peripheral block in the "Clock Enable Register (CKEN"). See
|
|
|
|
-the "PXA2xx Developer Manual" section "Clocks and Power Management".
|
|
|
|
-
|
|
|
|
The "pxa2xx_spi_master.num_chipselect" field is used to determine the number of
|
|
The "pxa2xx_spi_master.num_chipselect" field is used to determine the number of
|
|
slave device (chips) attached to this SPI master.
|
|
slave device (chips) attached to this SPI master.
|
|
|
|
|
|
@@ -57,7 +52,6 @@ static struct resource pxa_spi_nssp_resources[] = {
|
|
};
|
|
};
|
|
|
|
|
|
static struct pxa2xx_spi_master pxa_nssp_master_info = {
|
|
static struct pxa2xx_spi_master pxa_nssp_master_info = {
|
|
- .clock_enable = CKEN_NSSP, /* NSSP Peripheral clock */
|
|
|
|
.num_chipselect = 1, /* Matches the number of chips attached to NSSP */
|
|
.num_chipselect = 1, /* Matches the number of chips attached to NSSP */
|
|
.enable_dma = 1, /* Enables NSSP DMA */
|
|
.enable_dma = 1, /* Enables NSSP DMA */
|
|
};
|
|
};
|