[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 11/17] hw/misc: Rename npcm7xx_clk to npcm_clk
From: |
Hao Wu |
Subject: |
[PATCH v2 11/17] hw/misc: Rename npcm7xx_clk to npcm_clk |
Date: |
Thu, 26 Dec 2024 08:27:54 +0000 |
NPCM7XX and NPCM8XX have a different set of CLK registers. This
commit changes the name of the clk files to be used by both
NPCM7XX and NPCM8XX CLK modules.
Signed-off-by: Hao Wu <wuhaotsh@google.com>
---
hw/misc/meson.build | 2 +-
hw/misc/{npcm7xx_clk.c => npcm_clk.c} | 2 +-
include/hw/arm/npcm7xx.h | 2 +-
include/hw/misc/{npcm7xx_clk.h => npcm_clk.h} | 6 +++---
4 files changed, 6 insertions(+), 6 deletions(-)
rename hw/misc/{npcm7xx_clk.c => npcm_clk.c} (99%)
rename include/hw/misc/{npcm7xx_clk.h => npcm_clk.h} (98%)
diff --git a/hw/misc/meson.build b/hw/misc/meson.build
index 9bab048849..743066eb96 100644
--- a/hw/misc/meson.build
+++ b/hw/misc/meson.build
@@ -67,7 +67,7 @@ system_ss.add(when: 'CONFIG_IMX', if_true: files(
'imx_rngc.c',
))
system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files(
- 'npcm7xx_clk.c',
+ 'npcm_clk.c',
'npcm_gcr.c',
'npcm7xx_mft.c',
'npcm7xx_pwm.c',
diff --git a/hw/misc/npcm7xx_clk.c b/hw/misc/npcm_clk.c
similarity index 99%
rename from hw/misc/npcm7xx_clk.c
rename to hw/misc/npcm_clk.c
index 46f907b61c..2bcb731099 100644
--- a/hw/misc/npcm7xx_clk.c
+++ b/hw/misc/npcm_clk.c
@@ -16,7 +16,7 @@
#include "qemu/osdep.h"
-#include "hw/misc/npcm7xx_clk.h"
+#include "hw/misc/npcm_clk.h"
#include "hw/timer/npcm7xx_timer.h"
#include "hw/qdev-clock.h"
#include "migration/vmstate.h"
diff --git a/include/hw/arm/npcm7xx.h b/include/hw/arm/npcm7xx.h
index 2e708471ec..e80fd91f20 100644
--- a/include/hw/arm/npcm7xx.h
+++ b/include/hw/arm/npcm7xx.h
@@ -23,7 +23,7 @@
#include "hw/gpio/npcm7xx_gpio.h"
#include "hw/i2c/npcm7xx_smbus.h"
#include "hw/mem/npcm7xx_mc.h"
-#include "hw/misc/npcm7xx_clk.h"
+#include "hw/misc/npcm_clk.h"
#include "hw/misc/npcm_gcr.h"
#include "hw/misc/npcm7xx_mft.h"
#include "hw/misc/npcm7xx_pwm.h"
diff --git a/include/hw/misc/npcm7xx_clk.h b/include/hw/misc/npcm_clk.h
similarity index 98%
rename from include/hw/misc/npcm7xx_clk.h
rename to include/hw/misc/npcm_clk.h
index 5ed4a4672b..0aef81e10c 100644
--- a/include/hw/misc/npcm7xx_clk.h
+++ b/include/hw/misc/npcm_clk.h
@@ -13,8 +13,8 @@
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*/
-#ifndef NPCM7XX_CLK_H
-#define NPCM7XX_CLK_H
+#ifndef NPCM_CLK_H
+#define NPCM_CLK_H
#include "exec/memory.h"
#include "hw/clock.h"
@@ -177,4 +177,4 @@ struct NPCM7xxCLKState {
#define TYPE_NPCM7XX_CLK "npcm7xx-clk"
OBJECT_DECLARE_SIMPLE_TYPE(NPCM7xxCLKState, NPCM7XX_CLK)
-#endif /* NPCM7XX_CLK_H */
+#endif /* NPCM_CLK_H */
--
2.47.1.613.gc27f4b7a9f-goog
- [PATCH v2 01/17] docs/system/arm: Add Description for NPCM8XX SoC, (continued)
- [PATCH v2 01/17] docs/system/arm: Add Description for NPCM8XX SoC, Hao Wu, 2024/12/26
- [PATCH v2 03/17] pc-bios: Add NPCM8XX vBootrom, Hao Wu, 2024/12/26
- [PATCH v2 04/17] hw/ssi: Make flash size a property in NPCM7XX FIU, Hao Wu, 2024/12/26
- [PATCH v2 02/17] roms: Update vbootrom to 1287b6e, Hao Wu, 2024/12/26
- [PATCH v2 05/17] hw/misc: Rename npcm7xx_gcr to npcm_gcr, Hao Wu, 2024/12/26
- [PATCH v2 06/17] hw/misc: Move NPCM7XX GCR to NPCM GCR, Hao Wu, 2024/12/26
- [PATCH v2 07/17] hw/misc: Add nr_regs and cold_reset_values to NPCM GCR, Hao Wu, 2024/12/26
- [PATCH v2 08/17] hw/misc: Add support for NPCM8XX GCR, Hao Wu, 2024/12/26
- [PATCH v2 09/17] hw/misc: Store DRAM size in NPCM8XX GCR Module, Hao Wu, 2024/12/26
- [PATCH v2 10/17] hw/misc: Support 8-bytes memop in NPCM GCR module, Hao Wu, 2024/12/26
- [PATCH v2 11/17] hw/misc: Rename npcm7xx_clk to npcm_clk,
Hao Wu <=
- [PATCH v2 13/17] hw/misc: Add nr_regs and cold_reset_values to NPCM CLK, Hao Wu, 2024/12/26
- [PATCH v2 12/17] hw/misc: Move NPCM7XX CLK to NPCM CLK, Hao Wu, 2024/12/26
- [PATCH v2 14/17] hw/misc: Support NPCM8XX CLK Module Registers, Hao Wu, 2024/12/26
- [PATCH v2 16/17] hw/arm: Add NPCM8XX SoC, Hao Wu, 2024/12/26
- [PATCH v2 15/17] hw/net: Add NPCM8XX PCS Module, Hao Wu, 2024/12/26
- [PATCH v2 17/17] hw/arm: Add NPCM845 Evaluation board, Hao Wu, 2024/12/26