@@ -671,6 +671,11 @@
reg = <0x81000000 0x2000>;
};
+ tpiu {
+ compatible = "stericsson,dbx500-tpiu";
+ reg = <0x80190000 0x1000>;
+ };
+
external-bus@50000000 {
compatible = "simple-bus";
reg = <0x50000000 0x4000000>;
@@ -661,6 +661,7 @@ static void __init init_pm_domains(void)
add_platform_device_to_genpd(&db8500_clk_device, &ape_domain);
add_platform_device_to_genpd(&dbx500_icn_device, &ape_domain);
+ add_platform_device_to_genpd(&dbx500_tpiu_device, &ape_domain);
}
static void __init mop500_init_machine(void)
@@ -144,6 +144,7 @@ static struct platform_device db8500_prcmu_device = {
static struct platform_device *platform_devs[] __initdata = {
&db8500_clk_device,
&dbx500_icn_device,
+ &dbx500_tpiu_device,
&u8500_dma40_device,
&db8500_pmu_device,
&db8500_prcmu_device,
@@ -34,6 +34,22 @@ struct platform_device dbx500_icn_device = {
.resource = icn_resources
};
+static struct resource tpiu_resources[] = {
+ [0] = {
+ .start = U8500_TPIU_BASE,
+ .end = U8500_TPIU_BASE + SZ_4K - 1,
+ .flags = IORESOURCE_MEM,
+ .name = "base",
+ },
+};
+
+struct platform_device dbx500_tpiu_device = {
+ .name = "dbx500-tpiu",
+ .id = -1,
+ .num_resources = ARRAY_SIZE(tpiu_resources),
+ .resource = tpiu_resources
+};
+
static struct platform_device *
dbx500_add_gpio(struct device *parent, int id, resource_size_t addr, int irq,
struct nmk_gpio_platform_data *pdata)
@@ -17,6 +17,7 @@
struct spi_master_cntlr;
extern struct platform_device dbx500_icn_device;
+extern struct platform_device dbx500_tpiu_device;
static inline struct amba_device *
dbx500_add_msp_spi(struct device *parent, const char *name,
Add platform device for the ux500 TPIU driver. TPIU is Trace Port Interface Unit. Also add the device to the generic power domain APE. Signed-off-by: Rickard Andersson <rickard.andersson@stericsson.com> --- arch/arm/boot/dts/dbx5x0.dtsi | 5 +++++ arch/arm/mach-ux500/board-mop500.c | 1 + arch/arm/mach-ux500/cpu-db8500.c | 1 + arch/arm/mach-ux500/devices-common.c | 16 ++++++++++++++++ arch/arm/mach-ux500/devices-common.h | 1 + 5 files changed, 24 insertions(+)