|
|
Subscribe / Log in / New account

Add an interface to get current DDR data rate

From:  Crystal Guo <crystal.guo-AT-mediatek.com>
To:  Krzysztof Kozlowski <krzk-AT-kernel.org>, Rob Herring <robh-AT-kernel.org>, Conor Dooley <conor+dt-AT-kernel.org>, Matthias Brugger <matthias.bgg-AT-gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno-AT-collabora.com>, Crystal Guo <crystal.guo-AT-mediatek.com>
Subject:  [v2,0/2] Add an interface to get current DDR data rate
Date:  Thu, 06 Feb 2025 20:16:07 +0800
Message-ID:  <20250206121629.12186-1-crystal.guo@mediatek.com>
Cc:  <linux-kernel-AT-vger.kernel.org>, <devicetree-AT-vger.kernel.org>, <linux-arm-kernel-AT-lists.infradead.org>, <linux-mediatek-AT-lists.infradead.org>, <Project_Global_Chrome_Upstream_Group-AT-mediatek.com>
Archive-link:  Article

*** BLURB HERE ***
This series is based on linux-next, tag: next-20250206.

Vcore DVFS feature need know the current DDR data rate.
Add MediaTek DRAMC driver to provide an interface that can
obtain current DDR data rate.

---
Changes in v2:
- Remove pr_info and pr_err, use dev_err or dev_err_probe to print
  error message;
- Replace module_init by module_platform_driver;
- Remove unnecessary global variables;
- Change fmeter-verison to platform data;
- Remove mtk-dramc.h;
- Refine compatible to "mediatek,mt8196-dramc";
- Refine CONFIG name to MEDIATEK_MC;
- Fix yaml build errors, remove unnecessary properties on yaml file.

Link to v1:
https://patchwork.kernel.org/patch/13904862

Crystal Guo (2):
  memory/mediatek: Add an interface to get current DDR data rate
  dt-bindings: memory-controllers: Add MediaTek DRAM controller
    interface

 .../mediatek,common-dramc.yaml                | 129 ------
 .../memory-controllers/mediatek,dramc.yaml    |  44 ++
 drivers/memory/Makefile                       |   2 +-
 drivers/memory/mediatek/Kconfig               |   6 +-
 drivers/memory/mediatek/mtk-dramc.c           | 415 ++++++------------
 include/linux/soc/mediatek/mtk-dramc.h        |  41 --
 6 files changed, 191 insertions(+), 446 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/memory-controllers/mediatek,common-dramc.yaml
 create mode 100644 Documentation/devicetree/bindings/memory-controllers/mediatek,dramc.yaml
 delete mode 100644 include/linux/soc/mediatek/mtk-dramc.h

-- 
2.18.0




Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds