From bbb9a98619c4c699c96debf9533457e60f2b6e06 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Mon, 29 Oct 2012 01:27:24 +0100 Subject: [PATCH] --- yaml --- r: 344197 b: refs/heads/master c: ef21b491bfe0ddf2b61f1804271b0d2cc58e19f2 h: refs/heads/master i: 344195: 62d3c413b4c364e3d044171542fb69bdad4fd1d1 v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-socfpga/socfpga.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 76a7bc7f635d..aa64c4608cda 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ad208d03a5a32957a419eb1a473aa96ff4da45ca +refs/heads/master: ef21b491bfe0ddf2b61f1804271b0d2cc58e19f2 diff --git a/trunk/arch/arm/mach-socfpga/socfpga.c b/trunk/arch/arm/mach-socfpga/socfpga.c index ab81ea91a7c4..6732924a5fee 100644 --- a/trunk/arch/arm/mach-socfpga/socfpga.c +++ b/trunk/arch/arm/mach-socfpga/socfpga.c @@ -37,6 +37,13 @@ static struct map_desc scu_io_desc __initdata = { .type = MT_DEVICE, }; +static struct map_desc uart_io_desc __initdata = { + .virtual = 0xfec02000, + .pfn = __phys_to_pfn(0xffc02000), + .length = SZ_8K, + .type = MT_DEVICE, +}; + static void __init socfpga_scu_map_io(void) { unsigned long base; @@ -51,6 +58,8 @@ static void __init socfpga_scu_map_io(void) static void __init socfpga_map_io(void) { socfpga_scu_map_io(); + iotable_init(&uart_io_desc, 1); + early_printk("Early printk initialized\n"); } const static struct of_device_id irq_match[] = {