Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/drivers/clk/spacemit/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 889 B image not shown  

Quelle  ccu_common.h   Sprache: C

 
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2024 SpacemiT Technology Co. Ltd
 * Copyright (c) 2024-2025 Haylen Chu <heylenay@4d2.org>
 */


#ifndef _CCU_COMMON_H_
#define _CCU_COMMON_H_

#include <linux/regmap.h>

struct ccu_common {
 struct regmap *regmap;
 struct regmap *lock_regmap;

 union {
  /* For DDN and MIX */
  struct {
   u32 reg_ctrl;
   u32 reg_fc;
   u32 mask_fc;
  };

  /* For PLL */
  struct {
   u32 reg_swcr1;
   u32 reg_swcr3;
  };
 };

 struct clk_hw hw;
};

static inline struct ccu_common *hw_to_ccu_common(struct clk_hw *hw)
{
 return container_of(hw, struct ccu_common, hw);
}

#define ccu_read(c, reg)      \
 ({        \
  u32 tmp;      \
  regmap_read((c)->regmap, (c)->reg_##reg, &tmp);  \
  tmp;       \
  })
#define ccu_update(c, reg, mask, val) \
 regmap_update_bits((c)->regmap, (c)->reg_##reg, mask, val)

#endif /* _CCU_COMMON_H_ */

Messung V0.5
C=92 H=95 G=93

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet)  ¤

*© 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.