linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: lee.jones@linaro.org (Lee Jones)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/5] ARM: ux500: Allow the ccu8540 to register its serial devices without pdata
Date: Fri, 22 Mar 2013 15:27:42 +0000	[thread overview]
Message-ID: <1363966065-2478-2-git-send-email-lee.jones@linaro.org> (raw)
In-Reply-To: <1363966065-2478-1-git-send-email-lee.jones@linaro.org>

The u8540 doesn't have DMA support yet, so in order to enable
serial and receive post-bootconsole output, we cannot supply the same
platform data as we would for the u8500.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
 arch/arm/mach-ux500/board-mop500.c |   21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c
index 4fade16..c22550d 100644
--- a/arch/arm/mach-ux500/board-mop500.c
+++ b/arch/arm/mach-ux500/board-mop500.c
@@ -611,6 +611,13 @@ static void __init mop500_uart_init(struct device *parent)
 	db8500_add_uart2(parent, &uart2_plat);
 }
 
+static void __init ccu8540_uart_init(struct device *parent)
+{
+	db8500_add_uart0(parent, NULL);
+	db8500_add_uart1(parent, NULL);
+	db8500_add_uart2(parent, NULL);
+}
+
 static void __init u8500_cryp1_hash1_init(struct device *parent)
 {
 	db8500_add_cryp1(parent, &u8500_cryp1_platform_data);
@@ -662,6 +669,18 @@ static void __init mop500_init_machine(void)
 	regulator_has_full_constraints();
 }
 
+static void __init ccu8540_init_machine(void)
+{
+	struct device *parent = NULL;
+
+	parent = u8500_init_devices(&ab8500_platdata);
+
+	ccu8540_uart_init(parent);
+
+	/* This board has full regulator constraints */
+	regulator_has_full_constraints();
+}
+
 static void __init snowball_init_machine(void)
 {
 	struct device *parent = NULL;
@@ -745,7 +764,7 @@ MACHINE_START(U8540, "ST-Ericsson U8540 Platform ccu8540")
 	.map_io		= u8500_map_io,
 	.init_irq	= ux500_init_irq,
 	.init_time	= ux500_timer_init,
-	.init_machine	= mop500_init_machine,
+	.init_machine	= ccu8540_init_machine,
 	.init_late	= ux500_init_late,
 MACHINE_END
 
-- 
1.7.10.4

  reply	other threads:[~2013-03-22 15:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-22 15:27 [PATCH 1/5] ARM: ux500: Add machine support for ccu8540 Lee Jones
2013-03-22 15:27 ` Lee Jones [this message]
2013-03-22 15:27 ` [PATCH 3/5] ARM: ux500: Remove platform specific PRCMU and Clk initialisation Lee Jones
2013-03-27 13:18   ` Linus Walleij
2013-03-22 15:27 ` [PATCH 4/5] ARM: ux500: Supply a DTS file for the u8540 platform Lee Jones
2013-03-27 13:20   ` Linus Walleij
2013-03-22 15:27 ` [PATCH 5/5] ARM: ux500: Do not supply DMA platform data when booting " Lee Jones
2013-03-22 15:43   ` Arnd Bergmann
2013-03-22 17:14     ` Lee Jones
2013-03-22 15:45 ` [PATCH 1/5] ARM: ux500: Add machine support for ccu8540 Arnd Bergmann
2013-03-22 17:23 ` Russell King - ARM Linux
2013-03-22 17:29   ` Russell King - ARM Linux
2013-03-22 20:28     ` Arnd Bergmann
2013-03-22 17:37   ` Russell King - ARM Linux
2013-03-25  8:47     ` Lee Jones

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=1363966065-2478-2-git-send-email-lee.jones@linaro.org \
    --to=lee.jones@linaro.org \
    --cc=linux-arm-kernel@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;
as well as URLs for NNTP newsgroup(s).