From: Baruch Siach <baruch@tkos.co.il>
To: barebox@lists.infradead.org
Subject: [PATCH v2 5/6] imx25: add iim platform code
Date: Mon, 16 Aug 2010 17:10:37 +0300 [thread overview]
Message-ID: <cc0071de23d39f9981c5008239038e6552a05568.1281966840.git.baruch@tkos.co.il> (raw)
In-Reply-To: <cover.1281966840.git.baruch@tkos.co.il>
---
arch/arm/mach-imx/imx25.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-imx/imx25.c b/arch/arm/mach-imx/imx25.c
index 70494aa..760f740 100644
--- a/arch/arm/mach-imx/imx25.c
+++ b/arch/arm/mach-imx/imx25.c
@@ -16,7 +16,9 @@
*/
#include <common.h>
+#include <init.h>
#include <mach/imx-regs.h>
+#include <mach/iim.h>
#include <asm/io.h>
#include "gpio.h"
@@ -46,3 +48,45 @@ u64 imx_uid(void)
return uid;
}
+
+static struct imx_iim_platform_data imx25_iim_pdata = {
+ .mac_addr_base = IMX_IIM_BASE + IIM_MAC_ADDR,
+};
+
+static struct device_d imx25_iim_dev = {
+ .name = "imx_iim",
+ .map_base = IMX_IIM_BASE,
+ .platform_data = &imx25_iim_pdata,
+};
+
+static struct device_d imx25_iim_bank0_dev = {
+ .name = "imx_iim_bank",
+ .id = 0,
+ .map_base = IIM_BANK0_BASE,
+ .size = IIM_BANK_SIZE,
+};
+
+static struct device_d imx25_iim_bank1_dev = {
+ .name = "imx_iim_bank",
+ .id = 1,
+ .map_base = IIM_BANK1_BASE,
+ .size = IIM_BANK_SIZE,
+};
+
+static struct device_d imx25_iim_bank2_dev = {
+ .name = "imx_iim_bank",
+ .id = 2,
+ .map_base = IIM_BANK2_BASE,
+ .size = IIM_BANK_SIZE,
+};
+
+static int imx25_iim_init(void)
+{
+ register_device(&imx25_iim_dev);
+ register_device(&imx25_iim_bank0_dev);
+ register_device(&imx25_iim_bank1_dev);
+ register_device(&imx25_iim_bank2_dev);
+
+ return 0;
+}
+coredevice_initcall(imx25_iim_init);
--
1.7.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2010-08-16 14:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-16 14:10 [PATCH v2 0/6] imx: support for the IIM fusebox Baruch Siach
2010-08-16 14:10 ` [PATCH v2 1/6] imx: move IIM registers to their own header Baruch Siach
2010-08-16 14:10 ` [PATCH v2 2/6] imx: driver for the IIM fusebox Baruch Siach
2010-08-16 14:10 ` [PATCH v2 3/6] imx iim: add mac address support Baruch Siach
2010-08-17 6:52 ` Sascha Hauer
2010-08-17 8:00 ` [PATCH v3] " Baruch Siach
2010-08-16 14:10 ` [PATCH v2 4/6] imx25: add chip specific IIM fusebox defines Baruch Siach
2011-03-03 15:13 ` Eric Benard
2011-03-03 15:31 ` Baruch Siach
2011-03-03 15:38 ` Eric Benard
2011-03-03 15:46 ` Sascha Hauer
2010-08-16 14:10 ` Baruch Siach [this message]
2010-08-16 14:10 ` [PATCH v2 6/6] fec_imx: add support for IIM stored mac address Baruch Siach
2010-08-17 8:01 ` [PATCH] iim/imx25: fix MAC and UID offsets Baruch Siach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cc0071de23d39f9981c5008239038e6552a05568.1281966840.git.baruch@tkos.co.il \
--to=baruch@tkos.co.il \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox