Lines Matching +full:coresight +full:- +full:static +full:- +full:replicator
1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/clk-provider.h>
22 static const struct acpi_device_id amba_id_list[] = {
24 {"ARMH0330", 0}, /* ARM DMA Controller DMA-330 */
25 {"ARMHC500", 0}, /* ARM CoreSight ETM4x */
26 {"ARMHC501", 0}, /* ARM CoreSight ETR */
27 {"ARMHC502", 0}, /* ARM CoreSight STM */
28 {"ARMHC503", 0}, /* ARM CoreSight Debug */
29 {"ARMHC979", 0}, /* ARM CoreSight TPIU */
30 {"ARMHC97C", 0}, /* ARM CoreSight SoC-400 TMC, SoC-600 ETF/ETB */
31 {"ARMHC98D", 0}, /* ARM CoreSight Dynamic Replicator */
32 {"ARMHC9CA", 0}, /* ARM CoreSight CATU */
33 {"ARMHC9FF", 0}, /* ARM CoreSight Dynamic Funnel */
37 static void amba_register_dummy_clk(void) in amba_register_dummy_clk()
39 static struct clk *amba_dummy_clk; in amba_register_dummy_clk()
49 static int amba_handler_attach(struct acpi_device *adev, in amba_handler_attach()
61 if (adev->physical_node_count) in amba_handler_attach()
64 dev = amba_device_alloc(dev_name(&adev->dev), 0, 0); in amba_handler_attach()
66 dev_err(&adev->dev, "%s(): amba_device_alloc() failed\n", in amba_handler_attach()
68 return -ENOMEM; in amba_handler_attach()
77 switch (resource_type(rentry->res)) { in amba_handler_attach()
80 dev->res = *rentry->res; in amba_handler_attach()
81 dev->res.name = dev_name(&dev->dev); in amba_handler_attach()
87 dev->irq[irq_no++] = rentry->res->start; in amba_handler_attach()
90 dev_warn(&adev->dev, "Invalid resource\n"); in amba_handler_attach()
103 dev->dev.parent = acpi_get_first_physical_node(parent); in amba_handler_attach()
105 ACPI_COMPANION_SET(&dev->dev, adev); in amba_handler_attach()
109 dev_err(&adev->dev, "%s(): amba_device_add() failed (%d)\n", in amba_handler_attach()
121 static struct acpi_scan_handler amba_handler = {