aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorMathieu Poirier <mathieu.poirier@linaro.org>2014-11-03 13:07:46 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-07 18:19:33 -0500
commit184901a06a366d40386e07307bcadc9eeaabbd39 (patch)
tree458f50b26f26a13d4c57fd625ec9689537880170 /arch/arm/mach-omap2
parent4d5616ca59350c47e4b00d17c1480d8b44d3c535 (diff)
ARM: removing support for etb/etm in "arch/arm/kernel/"
Removing minimal support for etb/etm to favour an implementation that is more flexible, extensible and capable of handling more platforms. Also removing the only client of the old driver. That code can easily be replaced by entries for etb/etm in the device tree. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/Kconfig8
-rw-r--r--arch/arm/mach-omap2/Makefile1
-rw-r--r--arch/arm/mach-omap2/emu.c50
3 files changed, 0 insertions, 59 deletions
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index f4d06aea8460..06020fe77e57 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -292,14 +292,6 @@ config MACH_TI8148EVM
292 depends on SOC_TI81XX 292 depends on SOC_TI81XX
293 default y 293 default y
294 294
295config OMAP3_EMU
296 bool "OMAP3 debugging peripherals"
297 depends on ARCH_OMAP3
298 select ARM_AMBA
299 select OC_ETM
300 help
301 Say Y here to enable debugging hardware of omap3
302
303config OMAP3_SDRC_AC_TIMING 295config OMAP3_SDRC_AC_TIMING
304 bool "Enable SDRC AC timing register changes" 296 bool "Enable SDRC AC timing register changes"
305 depends on ARCH_OMAP3 297 depends on ARCH_OMAP3
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index d9e94122073e..87255a3d8849 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -228,7 +228,6 @@ obj-$(CONFIG_SOC_OMAP5) += omap_hwmod_54xx_data.o
228obj-$(CONFIG_SOC_DRA7XX) += omap_hwmod_7xx_data.o 228obj-$(CONFIG_SOC_DRA7XX) += omap_hwmod_7xx_data.o
229 229
230# EMU peripherals 230# EMU peripherals
231obj-$(CONFIG_OMAP3_EMU) += emu.o
232obj-$(CONFIG_HW_PERF_EVENTS) += pmu.o 231obj-$(CONFIG_HW_PERF_EVENTS) += pmu.o
233 232
234iommu-$(CONFIG_OMAP_IOMMU) := omap-iommu.o 233iommu-$(CONFIG_OMAP_IOMMU) := omap-iommu.o
diff --git a/arch/arm/mach-omap2/emu.c b/arch/arm/mach-omap2/emu.c
deleted file mode 100644
index cbeaca2d7695..000000000000
--- a/arch/arm/mach-omap2/emu.c
+++ /dev/null
@@ -1,50 +0,0 @@
1/*
2 * emu.c
3 *
4 * ETM and ETB CoreSight components' resources as found in OMAP3xxx.
5 *
6 * Copyright (C) 2009 Nokia Corporation.
7 * Alexander Shishkin
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12 */
13
14#include <linux/kernel.h>
15#include <linux/init.h>
16#include <linux/types.h>
17#include <linux/module.h>
18#include <linux/device.h>
19#include <linux/amba/bus.h>
20#include <linux/io.h>
21#include <linux/clk.h>
22#include <linux/err.h>
23
24#include "soc.h"
25#include "iomap.h"
26
27MODULE_LICENSE("GPL");
28MODULE_AUTHOR("Alexander Shishkin");
29
30/* Cortex CoreSight components within omap3xxx EMU */
31#define ETM_BASE (L4_EMU_34XX_PHYS + 0x10000)
32#define DBG_BASE (L4_EMU_34XX_PHYS + 0x11000)
33#define ETB_BASE (L4_EMU_34XX_PHYS + 0x1b000)
34#define DAPCTL (L4_EMU_34XX_PHYS + 0x1d000)
35
36static AMBA_APB_DEVICE(omap3_etb, "etb", 0x000bb907, ETB_BASE, { }, NULL);
37static AMBA_APB_DEVICE(omap3_etm, "etm", 0x102bb921, ETM_BASE, { }, NULL);
38
39static int __init emu_init(void)
40{
41 if (!cpu_is_omap34xx())
42 return -ENODEV;
43
44 amba_device_register(&omap3_etb_device, &iomem_resource);
45 amba_device_register(&omap3_etm_device, &iomem_resource);
46
47 return 0;
48}
49
50omap_subsys_initcall(emu_init);