amd: rename model_fxx_powernow to powernow.
Change-Id: Iee581183f9cd9f5fecd5604536b735f6a04a0f93 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/7019 Tested-by: build bot (Jenkins) Reviewed-by: Rudolf Marek <r.marek@assembler.cz>
This commit is contained in:
parent
a3bdbcc11e
commit
4743254424
|
@ -22,7 +22,7 @@
|
|||
#include <stdint.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <arch/acpigen.h>
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include <device/pci.h>
|
||||
#include <device/pci_ids.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
|
@ -878,7 +878,7 @@ static int pstates_algorithm(u32 pcontrol_blk, u8 plen, u8 onlyBSP)
|
|||
#endif
|
||||
|
||||
|
||||
int amd_model_fxx_generate_powernow(u32 pcontrol_blk, u8 plen, u8 onlyBSP)
|
||||
int amd_generate_powernow(u32 pcontrol_blk, u8 plen, u8 onlyBSP)
|
||||
{
|
||||
int lens;
|
||||
char pscope[] = "\\_PR";
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef MODEL_FXX_POWERNOW_H
|
||||
#define MODEL_FXX_POWERNOW_H
|
||||
#ifndef POWERNOW_H
|
||||
#define POWERNOW_H
|
||||
|
||||
int amd_model_fxx_generate_powernow(u32 pcontrol_blk, u8 plen, u8 onlyBSP);
|
||||
int amd_generate_powernow(u32 pcontrol_blk, u8 plen, u8 onlyBSP);
|
||||
|
||||
#endif
|
|
@ -28,7 +28,7 @@
|
|||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
#include "northbridge/amd/amdk8/acpi.h"
|
||||
#include <arch/cpu.h>
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
|
||||
unsigned long acpi_fill_madt(unsigned long current)
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
#include "northbridge/amd/amdk8/acpi.h"
|
||||
#include <arch/cpu.h>
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include <southbridge/amd/sb700/sb700.h>
|
||||
|
||||
unsigned long acpi_fill_madt(unsigned long current)
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <cpu/amd/mtrr.h>
|
||||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
#include "../../../northbridge/amd/amdk8/acpi.h"
|
||||
//#include <cpu/amd/model_fxx_powernow.h>
|
||||
//#include <cpu/amd/powernow.h>
|
||||
|
||||
/* APIC */
|
||||
unsigned long acpi_fill_madt(unsigned long current)
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include "southbridge/via/vt8237r/vt8237r.h"
|
||||
#include "southbridge/via/k8t890/k8t890.h"
|
||||
#include "northbridge/amd/amdk8/acpi.h"
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
|
||||
void get_bus_conf(void)
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include "southbridge/via/vt8237r/vt8237r.h"
|
||||
#include "southbridge/via/k8t890/k8x8xx.h"
|
||||
#include "northbridge/amd/amdk8/acpi.h"
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
|
||||
void get_bus_conf(void)
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include "southbridge/via/vt8237r/vt8237r.h"
|
||||
#include "southbridge/via/k8t890/k8t890.h"
|
||||
#include "northbridge/amd/amdk8/acpi.h"
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
|
||||
void get_bus_conf(void)
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include "southbridge/via/vt8237r/vt8237r.h"
|
||||
#include "southbridge/via/k8t890/k8t890.h"
|
||||
#include "northbridge/amd/amdk8/acpi.h"
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
|
||||
void get_bus_conf(void)
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include <device/device.h>
|
||||
#include <device/pci_ids.h>
|
||||
#include "northbridge/amd/amdk8/acpi.h"
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include <device/pci.h>
|
||||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
#include "northbridge/amd/amdk8/acpi.h"
|
||||
#include "mb_sysconf.h"
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
|
||||
unsigned long acpi_fill_madt(unsigned long current)
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <arch/acpigen.h>
|
||||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
#include "northbridge/amd/amdk8/acpi.h"
|
||||
#include <arch/cpu.h>
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
|
||||
unsigned long acpi_fill_madt(unsigned long current)
|
||||
{
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include <device/device.h>
|
||||
#include <device/pci_ids.h>
|
||||
//#include "northbridge/amd/amdfam10/amdfam10_acpi.h"
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include <device/pci.h>
|
||||
#include <cpu/amd/amdfam10_sysconf.h>
|
||||
#include "mb_sysconf.h"
|
||||
|
@ -93,7 +93,7 @@ unsigned long acpi_fill_madt(unsigned long current)
|
|||
unsigned long acpi_fill_ssdt_generator(unsigned long current, const char *oem_table_id)
|
||||
{
|
||||
//k8acpi_write_vars();
|
||||
//amd_model_fxx_generate_powernow(0, 0, 0);
|
||||
//amd_generate_powernow(0, 0, 0);
|
||||
//return (unsigned long) (acpigen_get_current());
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
#include <../../../northbridge/amd/amdk8/acpi.h>
|
||||
#include <arch/cpu.h>
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include <southbridge/amd/rs690/rs690.h>
|
||||
#include "mainboard.h"
|
||||
#include <cbmem.h>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
#include "northbridge/amd/amdk8/acpi.h"
|
||||
#include <arch/cpu.h>
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
|
||||
unsigned long acpi_fill_madt(unsigned long current)
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
#include "northbridge/amd/amdk8/acpi.h"
|
||||
#include <arch/cpu.h>
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
|
||||
unsigned long acpi_fill_madt(unsigned long current)
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <cpu/amd/mtrr.h>
|
||||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
#include "northbridge/amd/amdk8/acpi.h"
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
|
||||
/* APIC */
|
||||
unsigned long acpi_fill_madt(unsigned long current)
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <arch/acpigen.h>
|
||||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
|
||||
extern u16 pm_base;
|
||||
|
||||
static void mainboard_acpi_fill_ssdt_generator(void) {
|
||||
amd_model_fxx_generate_powernow(0, 0, 0);
|
||||
amd_generate_powernow(0, 0, 0);
|
||||
}
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <cpu/amd/mtrr.h>
|
||||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
#include "northbridge/amd/amdk8/acpi.h"
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
|
||||
/* APIC */
|
||||
unsigned long acpi_fill_madt(unsigned long current)
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <arch/acpigen.h>
|
||||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
|
||||
extern u16 pm_base;
|
||||
|
||||
static void mainboard_acpi_fill_ssdt_generator(void) {
|
||||
amd_model_fxx_generate_powernow(0, 0, 0);
|
||||
amd_generate_powernow(0, 0, 0);
|
||||
}
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <cpu/amd/mtrr.h>
|
||||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
#include "northbridge/amd/amdk8/acpi.h"
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
|
||||
/* APIC */
|
||||
unsigned long acpi_fill_madt(unsigned long current)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <arch/acpigen.h>
|
||||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
|
@ -9,7 +9,7 @@
|
|||
extern u16 pm_base;
|
||||
|
||||
static void mainboard_acpi_fill_ssdt_generator(void) {
|
||||
amd_model_fxx_generate_powernow(0, 0, 0);
|
||||
amd_generate_powernow(0, 0, 0);
|
||||
}
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <cpu/amd/mtrr.h>
|
||||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
#include "northbridge/amd/amdk8/acpi.h"
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
|
||||
/* APIC */
|
||||
unsigned long acpi_fill_madt(unsigned long current)
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <arch/acpigen.h>
|
||||
#include <cpu/amd/amdk8_sysconf.h>
|
||||
|
||||
extern u16 pm_base;
|
||||
|
||||
static void mainboard_acpi_fill_ssdt_generator(void) {
|
||||
amd_model_fxx_generate_powernow(0, 0, 0);
|
||||
amd_generate_powernow(0, 0, 0);
|
||||
}
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES) && IS_ENABLED(CONFIG_PER_DEVICE_ACPI_TABLES)
|
||||
#include <arch/acpi.h>
|
||||
#include <arch/acpigen.h>
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -130,7 +130,7 @@ unsigned long acpi_fill_mcfg(unsigned long current)
|
|||
|
||||
static void southbridge_acpi_fill_ssdt_generator(void) {
|
||||
#if CONFIG_SET_FIDVID
|
||||
amd_model_fxx_generate_powernow(pm_base + 0x10, 6, 1);
|
||||
amd_generate_powernow(pm_base + 0x10, 6, 1);
|
||||
acpigen_write_mainboard_resources("\\_SB.PCI0.MBRS", "_CRS");
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include <arch/io.h>
|
||||
#include <arch/ioapic.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include "sb600.h"
|
||||
|
||||
static void lpc_init(device_t dev)
|
||||
|
@ -224,7 +224,7 @@ static void sb600_lpc_enable_resources(device_t dev)
|
|||
extern u16 pm_base;
|
||||
|
||||
static void southbridge_acpi_fill_ssdt_generator(void) {
|
||||
amd_model_fxx_generate_powernow(pm_base + 8, 6, 1);
|
||||
amd_generate_powernow(pm_base + 8, 6, 1);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include <arch/ioapic.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <cbmem.h>
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include "sb700.h"
|
||||
|
||||
unsigned long acpi_fill_mcfg(unsigned long current)
|
||||
|
@ -271,7 +271,7 @@ static void sb700_lpc_enable_resources(device_t dev)
|
|||
#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES) && IS_ENABLED(CONFIG_PER_DEVICE_ACPI_TABLES)
|
||||
|
||||
static void southbridge_acpi_fill_ssdt_generator(void) {
|
||||
amd_model_fxx_generate_powernow(ACPI_CPU_CONTROL, 6, 1);
|
||||
amd_generate_powernow(ACPI_CPU_CONTROL, 6, 1);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#include <arch/acpi.h>
|
||||
#include <arch/acpigen.h>
|
||||
#endif
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include "mcp55.h"
|
||||
|
||||
#define NMI_OFF 0
|
||||
|
@ -285,7 +285,7 @@ static const struct pci_driver lpc_driver __pci_driver = {
|
|||
|
||||
static void southbridge_acpi_fill_ssdt_generator(void)
|
||||
{
|
||||
amd_model_fxx_generate_powernow(0, 0, 0);
|
||||
amd_generate_powernow(0, 0, 0);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include <console/console.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <arch/acpigen.h>
|
||||
#include <cpu/amd/model_fxx_powernow.h>
|
||||
#include <cpu/amd/powernow.h>
|
||||
#include "k8t890.h"
|
||||
|
||||
extern unsigned long log2(unsigned long x);
|
||||
|
@ -128,7 +128,7 @@ static void traf_ctrl_enable_k8t890(struct device *dev)
|
|||
#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES)
|
||||
|
||||
static void southbridge_acpi_fill_ssdt_generator(void) {
|
||||
amd_model_fxx_generate_powernow(0, 0, 0);
|
||||
amd_generate_powernow(0, 0, 0);
|
||||
acpigen_write_mainboard_resources("\\_SB.PCI0.MBRS", "_CRS");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue