[PATCH 4/5] imx25 3ds: add support for the iim fusebox driver
Baruch Siach
baruch at tkos.co.il
Sun Aug 15 09:39:27 EDT 2010
Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
arch/arm/boards/freescale-mx25-3-stack/3stack.c | 31 +++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boards/freescale-mx25-3-stack/3stack.c b/arch/arm/boards/freescale-mx25-3-stack/3stack.c
index cd228cc..7b96dc8 100644
--- a/arch/arm/boards/freescale-mx25-3-stack/3stack.c
+++ b/arch/arm/boards/freescale-mx25-3-stack/3stack.c
@@ -37,6 +37,7 @@
#include <mach/imx-flash-header.h>
#include <mach/iomux-mx25.h>
#include <mach/generic.h>
+#include <mach/iim.h>
#include <linux/err.h>
#include <i2c/i2c.h>
#include <i2c/mc34704.h>
@@ -244,6 +245,32 @@ static int imx25_3ds_fec_init(void)
}
late_initcall(imx25_3ds_fec_init);
+static struct device_d imx_iim_dev = {
+ .name = "imx_iim",
+ .map_base = IMX_IIM_BASE,
+};
+
+static struct device_d imx_iim_bank0_dev = {
+ .name = "imx_iim_bank",
+ .id = 0,
+ .map_base = IIM_BANK0_BASE,
+ .size = IIM_BANK_SIZE,
+};
+
+static struct device_d imx_iim_bank1_dev = {
+ .name = "imx_iim_bank",
+ .id = 1,
+ .map_base = IIM_BANK1_BASE,
+ .size = IIM_BANK_SIZE,
+};
+
+static struct device_d imx_iim_bank2_dev = {
+ .name = "imx_iim_bank",
+ .id = 2,
+ .map_base = IIM_BANK2_BASE,
+ .size = IIM_BANK_SIZE,
+};
+
static int imx25_devices_init(void)
{
#ifdef CONFIG_USB
@@ -259,6 +286,10 @@ static int imx25_devices_init(void)
if (readl(IMX_CCM_BASE + CCM_RCSR) & (1 << 14))
nand_info.width = 2;
+ register_device(&imx_iim_dev);
+ register_device(&imx_iim_bank0_dev);
+ register_device(&imx_iim_bank1_dev);
+ register_device(&imx_iim_bank2_dev);
register_device(&nand_dev);
devfs_add_partition("nand0", 0x00000, 0x40000, PARTITION_FIXED, "self_raw");
--
1.7.1
More information about the barebox
mailing list