diff options
author | Feng Tang <feng.tang@intel.com> | 2011-08-26 06:25:14 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-26 14:01:14 -0400 |
commit | efe3ed9837fd2f9679659673f1d2078f1597bf18 (patch) | |
tree | 6f9967606552cb2d4db3250a4064e4d46b13200b /arch/x86/platform | |
parent | 7b18bd52b2c63ea030364370d0d1f5cc6950aea7 (diff) |
x86/mrst: Add platform data for Max3110 devices
Those info will be used when spi controller driver setup
max3110 as a slave device
Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/x86/platform')
-rw-r--r-- | arch/x86/platform/mrst/mrst.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/platform/mrst/mrst.c b/arch/x86/platform/mrst/mrst.c index 7000e74b3087..b8da1b968998 100644 --- a/arch/x86/platform/mrst/mrst.c +++ b/arch/x86/platform/mrst/mrst.c | |||
@@ -14,6 +14,8 @@ | |||
14 | 14 | ||
15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
16 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
17 | #include <linux/interrupt.h> | ||
18 | #include <linux/scatterlist.h> | ||
17 | #include <linux/sfi.h> | 19 | #include <linux/sfi.h> |
18 | #include <linux/intel_pmic_gpio.h> | 20 | #include <linux/intel_pmic_gpio.h> |
19 | #include <linux/spi/spi.h> | 21 | #include <linux/spi/spi.h> |
@@ -392,6 +394,7 @@ static void __init *max3111_platform_data(void *info) | |||
392 | struct spi_board_info *spi_info = info; | 394 | struct spi_board_info *spi_info = info; |
393 | int intr = get_gpio_by_name("max3111_int"); | 395 | int intr = get_gpio_by_name("max3111_int"); |
394 | 396 | ||
397 | spi_info->mode = SPI_MODE_0; | ||
395 | if (intr == -1) | 398 | if (intr == -1) |
396 | return NULL; | 399 | return NULL; |
397 | spi_info->irq = intr + MRST_IRQ_OFFSET; | 400 | spi_info->irq = intr + MRST_IRQ_OFFSET; |