-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alexander Shishkin
authored and
Russell King
committed
Dec 2, 2009
1 parent
00661d0
commit 10d99c3
Showing
5 changed files
with
82 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: c5d6c7708c3e58015b2e4e13e6cea02c8567a94e | ||
refs/heads/master: 183bd50f4fe6cd49c1790a90163e3d1ece80f344 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
* emu.c | ||
* | ||
* ETM and ETB CoreSight components' resources as found in OMAP3xxx. | ||
* | ||
* Copyright (C) 2009 Nokia Corporation. | ||
* Alexander Shishkin | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
#include <linux/init.h> | ||
#include <linux/types.h> | ||
#include <linux/module.h> | ||
#include <linux/device.h> | ||
#include <linux/amba/bus.h> | ||
#include <linux/io.h> | ||
#include <linux/clk.h> | ||
#include <linux/err.h> | ||
|
||
MODULE_LICENSE("GPL"); | ||
MODULE_AUTHOR("Alexander Shishkin"); | ||
|
||
/* Cortex CoreSight components within omap3xxx EMU */ | ||
#define ETM_BASE (L4_EMU_34XX_PHYS + 0x10000) | ||
#define DBG_BASE (L4_EMU_34XX_PHYS + 0x11000) | ||
#define ETB_BASE (L4_EMU_34XX_PHYS + 0x1b000) | ||
#define DAPCTL (L4_EMU_34XX_PHYS + 0x1d000) | ||
|
||
static struct amba_device omap3_etb_device = { | ||
.dev = { | ||
.init_name = "etb", | ||
}, | ||
.res = { | ||
.start = ETB_BASE, | ||
.end = ETB_BASE + SZ_4K - 1, | ||
.flags = IORESOURCE_MEM, | ||
}, | ||
.periphid = 0x000bb907, | ||
}; | ||
|
||
static struct amba_device omap3_etm_device = { | ||
.dev = { | ||
.init_name = "etm", | ||
}, | ||
.res = { | ||
.start = ETM_BASE, | ||
.end = ETM_BASE + SZ_4K - 1, | ||
.flags = IORESOURCE_MEM, | ||
}, | ||
.periphid = 0x102bb921, | ||
}; | ||
|
||
static int __init emu_init(void) | ||
{ | ||
amba_device_register(&omap3_etb_device, &iomem_resource); | ||
amba_device_register(&omap3_etm_device, &iomem_resource); | ||
|
||
return 0; | ||
} | ||
|
||
subsys_initcall(emu_init); | ||
|