Linux Audio

Check our new training course

Loading...
v3.5.6
 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 <mach/hardware.h>
25
26#include "iomap.h"
27
28MODULE_LICENSE("GPL");
29MODULE_AUTHOR("Alexander Shishkin");
30
31/* Cortex CoreSight components within omap3xxx EMU */
32#define ETM_BASE	(L4_EMU_34XX_PHYS + 0x10000)
33#define DBG_BASE	(L4_EMU_34XX_PHYS + 0x11000)
34#define ETB_BASE	(L4_EMU_34XX_PHYS + 0x1b000)
35#define DAPCTL		(L4_EMU_34XX_PHYS + 0x1d000)
36
37static AMBA_APB_DEVICE(omap3_etb, "etb", 0x000bb907, ETB_BASE, { }, NULL);
38static AMBA_APB_DEVICE(omap3_etm, "etm", 0x102bb921, ETM_BASE, { }, NULL);
39
40static int __init emu_init(void)
41{
42	if (!cpu_is_omap34xx())
43		return -ENODEV;
44
45	amba_device_register(&omap3_etb_device, &iomem_resource);
46	amba_device_register(&omap3_etm_device, &iomem_resource);
47
48	return 0;
49}
50
51subsys_initcall(emu_init);
v3.15
 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);