]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: zynq: remove TTC early mapping
authorJosh Cartwright <josh.cartwright@ni.com>
Mon, 19 Nov 2012 16:01:03 +0000 (10:01 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 21 Nov 2012 09:51:57 +0000 (10:51 +0100)
Now that the TTC driver has proper support for DT bindings, it is not
necessary for the registers to be mapped early.  They will be mapped
during clock initialization using of_iomap().  Remove the early mapping.

In addition, remove the extraneous zynq_soc.h include from the timer
driver.

Signed-off-by: Josh Cartwright <josh.cartwright@ni.com>
Tested-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/mach-zynq/common.c
arch/arm/mach-zynq/include/mach/zynq_soc.h
arch/arm/mach-zynq/timer.c

index 79bf5fb4dad3526a9fd8b63de1c21d5c6536e8c2..2202f67c8a09aa56e08834c7f9f511c0f7f97036 100644 (file)
@@ -74,11 +74,6 @@ static void __init xilinx_irq_init(void)
 
 static struct map_desc io_desc[] __initdata = {
        {
-               .virtual        = TTC0_VIRT,
-               .pfn            = __phys_to_pfn(TTC0_PHYS),
-               .length         = TTC0_SIZE,
-               .type           = MT_DEVICE,
-       }, {
                .virtual        = SCU_PERIPH_VIRT,
                .pfn            = __phys_to_pfn(SCU_PERIPH_PHYS),
                .length         = SCU_PERIPH_SIZE,
index 5ebbd8e6eeee6771b5bff400cc1a1b696c9561a9..2995044682dc99c0db40a6c4e52743d8256ed0d7 100644 (file)
 #define UART_SIZE              SZ_4K
 #define UART_VIRT              0xF0001000
 
-#define TTC0_PHYS              0xF8001000
-#define TTC0_SIZE              SZ_4K
-#define TTC0_VIRT              (VMALLOC_END - TTC0_SIZE)
-
 #define SCU_PERIPH_PHYS                0xF8F00000
 #define SCU_PERIPH_SIZE                SZ_8K
-#define SCU_PERIPH_VIRT                (TTC0_VIRT - SCU_PERIPH_SIZE)
+#define SCU_PERIPH_VIRT                (VMALLOC_END - SCU_PERIPH_SIZE)
 
 #if IS_ENABLED(CONFIG_DEBUG_ZYNQ_UART1)
 # define LL_UART_PADDR         UART1_PHYS
index 9662306aa12fd0c41c91b9973609c36c42169952..de3df283da748fcf8acd47f53a26d096caf66995 100644 (file)
@@ -29,7 +29,6 @@
 #include <linux/slab.h>
 #include <linux/clk-provider.h>
 
-#include <mach/zynq_soc.h>
 #include "common.h"
 
 /*