Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/drivers/soc/rockchip/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 1 kB image not shown  

Quelle  dtpm.c   Sprache: C

 
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright 2021 Linaro Limited
 *
 * Author: Daniel Lezcano <daniel.lezcano@linaro.org>
 *
 * DTPM hierarchy description
 */

#include <linux/dtpm.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>

static struct dtpm_node __initdata rk3399_hierarchy[] = {
 [0] = { .name = "rk3399",
  .type = DTPM_NODE_VIRTUAL },
 [1] = { .name = "package",
  .type = DTPM_NODE_VIRTUAL,
  .parent = &rk3399_hierarchy[0] },
 [2] = { .name = "/cpus/cpu@0",
  .type = DTPM_NODE_DT,
  .parent = &rk3399_hierarchy[1] },
 [3] = { .name = "/cpus/cpu@1",
  .type = DTPM_NODE_DT,
  .parent = &rk3399_hierarchy[1] },
 [4] = { .name = "/cpus/cpu@2",
  .type = DTPM_NODE_DT,
  .parent = &rk3399_hierarchy[1] },
 [5] = { .name = "/cpus/cpu@3",
  .type = DTPM_NODE_DT,
  .parent = &rk3399_hierarchy[1] },
 [6] = { .name = "/cpus/cpu@100",
  .type = DTPM_NODE_DT,
  .parent = &rk3399_hierarchy[1] },
 [7] = { .name = "/cpus/cpu@101",
  .type = DTPM_NODE_DT,
  .parent = &rk3399_hierarchy[1] },
 [8] = { .name = "/gpu@ff9a0000",
  .type = DTPM_NODE_DT,
  .parent = &rk3399_hierarchy[1] },
 [9] = { /* sentinel */ }
};

static struct of_device_id __initdata rockchip_dtpm_match_table[] = {
        { .compatible = "rockchip,rk3399", .data = rk3399_hierarchy },
        {},
};

static int __init rockchip_dtpm_init(void)
{
 return dtpm_create_hierarchy(rockchip_dtpm_match_table);
}
module_init(rockchip_dtpm_init);

static void __exit rockchip_dtpm_exit(void)
{
 return dtpm_destroy_hierarchy();
}
module_exit(rockchip_dtpm_exit);

MODULE_SOFTDEP("pre: panfrost cpufreq-dt");
MODULE_DESCRIPTION("Rockchip DTPM driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:dtpm");
MODULE_AUTHOR("Daniel Lezcano );

Messung V0.5
C=96 H=98 G=96

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.