[PATCH 5/5] UBUNTU: SAUCE: Enable earlyprintk via the PL011.

Paolo Pisati paolo.pisati at canonical.com
Wed Nov 6 14:34:47 UTC 2013


From: Manoj Iyer <manoj.iyer at canonical.com>

BugLink: http://bugs.launchpad.net/bugs/1248233

Because there's no defined device tree binding for earlyprintk UART, tweak
the kernel a bit, the kernel doesn't ever add the clock to its list, and
then it refuses to probe for the PL011.

Author: Peter Maydell <peter.maydell at linaro.org>
Reviewed-by: Chritoffer Dall <christoffer.dall at linaro.org>
Signed-off-by: Manoj Iyer <manoj.iyer at canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati at canonical.com>
---
 arch/arm/mach-virt/virt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-virt/virt.c b/arch/arm/mach-virt/virt.c
index b184e57..2b6aceb 100644
--- a/arch/arm/mach-virt/virt.c
+++ b/arch/arm/mach-virt/virt.c
@@ -21,11 +21,13 @@
 #include <linux/of_irq.h>
 #include <linux/of_platform.h>
 #include <linux/smp.h>
+#include <linux/clk-provider.h>
 
 #include <asm/mach/arch.h>
 
 static void __init virt_init(void)
 {
+	of_clk_init(NULL);
 	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
 
-- 
1.8.3.2





More information about the kernel-team mailing list