From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox <barebox@lists.infradead.org>
Subject: [PATCH 08/17] ARM pcm037: Use device functions
Date: Tue, 2 Nov 2010 18:17:21 +0100 [thread overview]
Message-ID: <1288718250-24919-9-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1288718250-24919-1-git-send-email-s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/boards/pcm037/pcm037.c | 20 +++-----------------
1 files changed, 3 insertions(+), 17 deletions(-)
diff --git a/arch/arm/boards/pcm037/pcm037.c b/arch/arm/boards/pcm037/pcm037.c
index 89e2481..ffecec2 100644
--- a/arch/arm/boards/pcm037/pcm037.c
+++ b/arch/arm/boards/pcm037/pcm037.c
@@ -37,7 +37,7 @@
#include <partition.h>
#include <generated/mach-types.h>
#include <mach/imx-nand.h>
-
+#include <mach/devices-imx31.h>
/*
* Up to 32MiB NOR type flash, connected to
@@ -126,13 +126,6 @@ struct imx_nand_platform_data nand_info = {
.flash_bbt = 1,
};
-static struct device_d nand_dev = {
- .id = -1,
- .name = "imx_nand",
- .map_base = 0xB8000000,
- .platform_data = &nand_info,
-};
-
#ifdef CONFIG_USB
static struct device_d usbotg_dev = {
.id = -1,
@@ -295,7 +288,7 @@ static int imx31_devices_init(void)
protect_file("/dev/env0", 1);
register_device(&sram_dev);
- register_device(&nand_dev);
+ imx31_add_nand(&nand_info);
register_device(&network_dev);
register_device(&sdram0_dev);
@@ -320,13 +313,6 @@ static int imx31_devices_init(void)
device_initcall(imx31_devices_init);
-static struct device_d imx31_serial_device = {
- .id = -1,
- .name = "imx_serial",
- .map_base = IMX_UART1_BASE,
- .size = 16 * 1024,
-};
-
static int imx31_console_init(void)
{
/* init gpios for serial port */
@@ -335,7 +321,7 @@ static int imx31_console_init(void)
imx_iomux_mode(MX31_PIN_CTS1__CTS1);
imx_iomux_mode(MX31_PIN_RTS1__RTS1);
- register_device(&imx31_serial_device);
+ imx31_add_uart0();
return 0;
}
--
1.7.2.3
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2010-11-02 17:17 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-02 17:17 device register functions for i.MX Sascha Hauer
2010-11-02 17:17 ` [PATCH 01/17] ARM i.MX51: Add SPBA0 base addresses Sascha Hauer
2010-11-02 17:17 ` [PATCH 02/17] ARM i.MX: Add device convenience functions Sascha Hauer
2010-11-02 17:17 ` [PATCH 03/17] ARM i.MX: Add header protection Sascha Hauer
2010-11-02 17:17 ` [PATCH 04/17] ARM i.MX35: Add IPU base address Sascha Hauer
2010-11-02 17:17 ` [PATCH 05/17] ARM pcm043: Use device functions Sascha Hauer
2010-11-02 17:17 ` [PATCH 06/17] ARM pca100: " Sascha Hauer
2010-11-02 17:17 ` [PATCH 07/17] ARM pcm038: " Sascha Hauer
2010-11-02 17:17 ` Sascha Hauer [this message]
2010-11-02 17:17 ` [PATCH 09/17] ARM imx27ads: " Sascha Hauer
2010-11-02 17:17 ` [PATCH 10/17] ARM imx21ads: " Sascha Hauer
2010-11-02 17:17 ` [PATCH 11/17] ARM mx51 babbage: " Sascha Hauer
2010-11-02 17:17 ` [PATCH 12/17] ARM neso: " Sascha Hauer
2010-11-02 17:17 ` [PATCH 13/17] ARM mx35 3ds: " Sascha Hauer
2010-11-02 17:17 ` [PATCH 14/17] ARM mx25 " Sascha Hauer
2010-11-02 17:17 ` [PATCH 15/17] ARM eukrea cpuimx35: " Sascha Hauer
2010-11-02 17:17 ` [PATCH 16/17] ARM eukrea cpuimx27: " Sascha Hauer
2010-11-02 17:17 ` [PATCH 17/17] ARM eukrea cpuimx25: " Sascha Hauer
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=1288718250-24919-9-git-send-email-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--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