mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 03:49:32 +02:00
linux-mx31: MX31 LiteKit support.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2838 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
42
meta/packages/linux/linux-mx31-2.6.19.2/mx31lite-spi.patch
vendored
Normal file
42
meta/packages/linux/linux-mx31-2.6.19.2/mx31lite-spi.patch
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
arch/arm/mach-mx3/mx31lite.c | 13 +++++++++++++
|
||||
1 file changed, 13 insertions(+)
|
||||
|
||||
Index: linux-2.6.19.2/arch/arm/mach-mx3/mx31lite.c
|
||||
===================================================================
|
||||
--- linux-2.6.19.2.orig/arch/arm/mach-mx3/mx31lite.c 2007-10-03 20:12:16.000000000 +0200
|
||||
+++ linux-2.6.19.2/arch/arm/mach-mx3/mx31lite.c 2007-10-03 20:14:14.000000000 +0200
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <linux/mtd/mtd.h>
|
||||
#include <linux/mtd/map.h>
|
||||
#include <linux/mtd/partitions.h>
|
||||
+#include <linux/spi/spi.h>
|
||||
|
||||
#include <asm/mach/flash.h>
|
||||
#endif
|
||||
@@ -304,6 +305,16 @@
|
||||
}
|
||||
#endif
|
||||
|
||||
+static struct spi_board_info mxc_spi_board_info[] __initdata = {
|
||||
+ {
|
||||
+ .modalias = "pmic_spi",
|
||||
+ .irq = IOMUX_TO_IRQ(MX31_PIN_GPIO1_3),
|
||||
+ .max_speed_hz = 4000000,
|
||||
+ .bus_num = 2,
|
||||
+ .chip_select = 0,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
|
||||
/*!
|
||||
* Board specific fixup function. It is called by \b setup_arch() in
|
||||
@@ -426,6 +437,8 @@
|
||||
mxc_init_nand_mtd();
|
||||
mxc_init_eth();
|
||||
mxc_init_fb();
|
||||
+ spi_register_board_info(mxc_spi_board_info,
|
||||
+ ARRAY_SIZE(mxc_spi_board_info));
|
||||
}
|
||||
|
||||
/*
|
||||
Reference in New Issue
Block a user