Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  board-artpec6.c

  Sprache: C
 

// SPDX-License-Identifier: GPL-2.0-only
/*
 * ARTPEC-6 device support.
 */


#include <linux/amba/bus.h>
#include <linux/clocksource.h>
#include <linux/dma-mapping.h>
#include <linux/io.h>
#include <linux/irqchip.h>
#include <linux/irqchip/arm-gic.h>
#include <linux/mfd/syscon.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/clk-provider.h>
#include <linux/regmap.h>
#include <linux/smp.h>
#include <asm/smp_scu.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <asm/psci.h>
#include <linux/arm-smccc.h>


#define ARTPEC6_DMACFG_REGNUM 0x10
#define ARTPEC6_DMACFG_UARTS_BURST 0xff

#define SECURE_OP_L2C_WRITEREG 0xb4000001

static void __init artpec6_init_machine(void)
{
 struct regmap *regmap;

 regmap = syscon_regmap_lookup_by_compatible("axis,artpec6-syscon");

 if (!IS_ERR(regmap)) {
  /* Use PL011 DMA Burst Request signal instead of DMA
 *  Single Request
 */

  regmap_write(regmap, ARTPEC6_DMACFG_REGNUM,
        ARTPEC6_DMACFG_UARTS_BURST);
 };
}

static void artpec6_l2c310_write_sec(unsigned long val, unsigned reg)
{
 struct arm_smccc_res res;

 arm_smccc_smc(SECURE_OP_L2C_WRITEREG, reg, val, 0,
        0000, &res);

 WARN_ON(res.a0);
}

static const char * const artpec6_dt_match[] = {
 "axis,artpec6",
 NULL
};

DT_MACHINE_START(ARTPEC6, "Axis ARTPEC-6 Platform")
 .l2c_aux_val = 0x0C000000,
 .l2c_aux_mask = 0xF3FFFFFF,
 .l2c_write_sec  = artpec6_l2c310_write_sec,
 .init_machine = artpec6_init_machine,
 .dt_compat = artpec6_dt_match,
MACHINE_END

Messung V0.5 in Prozent
C=96 H=92 G=93

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-06-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik