mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-07-08 17:56:11 +00:00
Drop in spi_imx from mainline. Not enabled in any config.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Automatically generated make config: don't edit
|
||||
# Linux kernel version: 2.6.31.14.12
|
||||
# Thu Dec 2 12:08:53 2010
|
||||
# Fri Dec 3 00:29:28 2010
|
||||
#
|
||||
CONFIG_ARM=y
|
||||
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
|
||||
@@ -1352,6 +1352,9 @@ CONFIG_SPI_MASTER=y
|
||||
#
|
||||
CONFIG_SPI_BITBANG=y
|
||||
# CONFIG_SPI_GPIO is not set
|
||||
CONFIG_SPI_IMX_VER_0_7=y
|
||||
CONFIG_SPI_IMX_VER_2_3=y
|
||||
# CONFIG_SPI_IMX is not set
|
||||
CONFIG_SPI_MXC=y
|
||||
# CONFIG_SPI_MXC_TEST_LOOPBACK is not set
|
||||
CONFIG_SPI_MXC_SELECT1=y
|
||||
|
||||
@@ -1354,6 +1354,9 @@ CONFIG_SPI_MASTER=y
|
||||
#
|
||||
CONFIG_SPI_BITBANG=y
|
||||
# CONFIG_SPI_GPIO is not set
|
||||
CONFIG_SPI_IMX_VER_0_7=y
|
||||
CONFIG_SPI_IMX_VER_2_3=y
|
||||
# CONFIG_SPI_IMX is not set
|
||||
CONFIG_SPI_MXC=y
|
||||
# CONFIG_SPI_MXC_TEST_LOOPBACK is not set
|
||||
CONFIG_SPI_MXC_SELECT1=y
|
||||
|
||||
26
arch/arm/plat-mxc/include/mach/spi.h
Normal file
26
arch/arm/plat-mxc/include/mach/spi.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef __MACH_SPI_H_
|
||||
#define __MACH_SPI_H_
|
||||
|
||||
/*
|
||||
* struct spi_imx_master - device.platform_data for SPI controller devices.
|
||||
* @chipselect: Array of chipselects for this master. Numbers >= 0 mean gpio
|
||||
* pins, numbers < 0 mean internal CSPI chipselects according
|
||||
* to MXC_SPI_CS(). Normally you want to use gpio based chip
|
||||
* selects as the CSPI module tries to be intelligent about
|
||||
* when to assert the chipselect: The CSPI module deasserts the
|
||||
* chipselect once it runs out of input data. The other problem
|
||||
* is that it is not possible to mix between high active and low
|
||||
* active chipselects on one single bus using the internal
|
||||
* chipselects. Unfortunately Freescale decided to put some
|
||||
* chipselects on dedicated pins which are not usable as gpios,
|
||||
* so we have to support the internal chipselects.
|
||||
* @num_chipselect: ARRAY_SIZE(chipselect)
|
||||
*/
|
||||
struct spi_imx_master {
|
||||
int *chipselect;
|
||||
int num_chipselect;
|
||||
};
|
||||
|
||||
#define MXC_SPI_CS(no) ((no) - 32)
|
||||
|
||||
#endif /* __MACH_SPI_H_*/
|
||||
@@ -116,9 +116,25 @@ config SPI_GPIO
|
||||
GPIO operations, you should be able to leverage that for better
|
||||
speed with a custom version of this driver; see the source code.
|
||||
|
||||
config SPI_IMX_VER_IMX1
|
||||
def_bool y if SOC_IMX1
|
||||
|
||||
config SPI_IMX_VER_0_0
|
||||
def_bool y if SOC_IMX21 || SOC_IMX27
|
||||
|
||||
config SPI_IMX_VER_0_4
|
||||
def_bool y if ARCH_MX31
|
||||
|
||||
config SPI_IMX_VER_0_7
|
||||
def_bool y if ARCH_MX25 || ARCH_MX35 || ARCH_MX51
|
||||
|
||||
config SPI_IMX_VER_2_3
|
||||
def_bool y if ARCH_MX51
|
||||
|
||||
config SPI_IMX
|
||||
tristate "Freescale iMX SPI controller"
|
||||
depends on ARCH_MX1 && EXPERIMENTAL
|
||||
depends on ARCH_MXC
|
||||
select SPI_BITBANG
|
||||
help
|
||||
This enables using the Freescale iMX SPI controller in master
|
||||
mode.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user