[OpenBIOS] [commit] r1158 - in trunk/openbios-devel: arch/ppc/qemu include/arch/common

repository service svn at openbios.org
Sun Jun 23 00:32:08 CEST 2013


Author: agraf
Date: Sun Jun 23 00:32:07 2013
New Revision: 1158
URL: http://tracker.coreboot.org/trac/openbios/changeset/1158

Log:
fwcfg: Rename CPUFREQ to CLOCKFREQ

The CPUFREQ fwcfg variable was a misnomer that never got into QEMU
in that form. What we really implemented was a variable that exposes
the "clock-frequency" property, so name it accordingly.

Signed-off-by: Alexander Graf <agraf at suse.de>

Modified:
   trunk/openbios-devel/arch/ppc/qemu/init.c
   trunk/openbios-devel/include/arch/common/fw_cfg.h

Modified: trunk/openbios-devel/arch/ppc/qemu/init.c
==============================================================================
--- trunk/openbios-devel/arch/ppc/qemu/init.c	Sun Jun 23 00:30:31 2013	(r1157)
+++ trunk/openbios-devel/arch/ppc/qemu/init.c	Sun Jun 23 00:32:07 2013	(r1158)
@@ -263,7 +263,7 @@
     push_str("timebase-frequency");
     fword("property");
 
-    PUSH(fw_cfg_read_i32(FW_CFG_PPC_CPUFREQ));
+    PUSH(fw_cfg_read_i32(FW_CFG_PPC_CLOCKFREQ));
     fword("encode-int");
     push_str("clock-frequency");
     fword("property");

Modified: trunk/openbios-devel/include/arch/common/fw_cfg.h
==============================================================================
--- trunk/openbios-devel/include/arch/common/fw_cfg.h	Sun Jun 23 00:30:31 2013	(r1157)
+++ trunk/openbios-devel/include/arch/common/fw_cfg.h	Sun Jun 23 00:32:07 2013	(r1158)
@@ -40,7 +40,7 @@
 #define FW_CFG_PPC_HEIGHT       (FW_CFG_ARCH_LOCAL + 0x01)
 #define FW_CFG_PPC_DEPTH        (FW_CFG_ARCH_LOCAL + 0x02)
 #define FW_CFG_PPC_TBFREQ       (FW_CFG_ARCH_LOCAL + 0x03)
-#define FW_CFG_PPC_CPUFREQ      (FW_CFG_ARCH_LOCAL + 0x04)
+#define FW_CFG_PPC_CLOCKFREQ    (FW_CFG_ARCH_LOCAL + 0x04)
 #define FW_CFG_PPC_IS_KVM	(FW_CFG_ARCH_LOCAL + 0x05)
 #define FW_CFG_PPC_KVM_HC	(FW_CFG_ARCH_LOCAL + 0x06)
 #define FW_CFG_PPC_KVM_PID	(FW_CFG_ARCH_LOCAL + 0x07)



More information about the OpenBIOS mailing list