coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pwm_regulator.c File Reference
#include <device/mmio.h>
#include <assert.h>
#include <boardid.h>
#include <console/console.h>
#include <gpio.h>
#include <soc/grf.h>
#include <soc/pwm.h>
#include "pwm_regulator.h"
Include dependency graph for pwm_regulator.c:

Go to the source code of this file.

Macros

#define PWM_PERIOD   3337
 
#define PWM_DESIGN_VOLTAGE_MIN_OUTDATED   8000
 
#define PWM_DESIGN_VOLTAGE_MAX_OUTDATED   15000
 

Functions

void pwm_regulator_configure (enum pwm_regulator pwm, int millivolt)
 

Variables

int kevin6_pwm_design_voltage [][2]
 
int pwm_design_voltage [][2]
 
int scarlet_pwm_design_voltage [][2]
 
int pwm_enum_to_pwm_number []
 

Macro Definition Documentation

◆ PWM_DESIGN_VOLTAGE_MAX_OUTDATED

#define PWM_DESIGN_VOLTAGE_MAX_OUTDATED   15000

Definition at line 20 of file pwm_regulator.c.

◆ PWM_DESIGN_VOLTAGE_MIN_OUTDATED

#define PWM_DESIGN_VOLTAGE_MIN_OUTDATED   8000

Definition at line 19 of file pwm_regulator.c.

◆ PWM_PERIOD

#define PWM_PERIOD   3337

Definition at line 18 of file pwm_regulator.c.

Function Documentation

◆ pwm_regulator_configure()

Variable Documentation

◆ kevin6_pwm_design_voltage

int kevin6_pwm_design_voltage[][2]
Initial value:
= {
[PWM_REGULATOR_GPU] = {7858, 12177},
[PWM_REGULATOR_BIG] = {7987, 13022},
[PWM_REGULATOR_LIT] = {7991, 13037},
[PWM_REGULATOR_CENTERLOG] = {8001, 10497}
}
@ PWM_REGULATOR_CENTERLOG
Definition: pwm_regulator.h:10
@ PWM_REGULATOR_LIT
Definition: pwm_regulator.h:9
@ PWM_REGULATOR_GPU
Definition: pwm_regulator.h:7
@ PWM_REGULATOR_BIG
Definition: pwm_regulator.h:8

Definition at line 23 of file pwm_regulator.c.

Referenced by pwm_regulator_configure().

◆ pwm_design_voltage

int pwm_design_voltage[][2]
Initial value:
= {
[PWM_REGULATOR_GPU] = {7864, 12177},
[PWM_REGULATOR_BIG] = {8001, 13022},
[PWM_REGULATOR_LIT] = {7977, 13078},
[PWM_REGULATOR_CENTERLOG] = {7994, 10499}
}

Definition at line 31 of file pwm_regulator.c.

Referenced by pwm_regulator_configure().

◆ pwm_enum_to_pwm_number

int pwm_enum_to_pwm_number[]
Initial value:

Definition at line 45 of file pwm_regulator.c.

Referenced by pwm_regulator_configure().

◆ scarlet_pwm_design_voltage

int scarlet_pwm_design_voltage[][2]
Initial value:
= {
[PWM_REGULATOR_GPU] = {7996, 10990},
[PWM_REGULATOR_BIG] = {8000, 12992},
[PWM_REGULATOR_LIT] = {8021, 11996},
}

Definition at line 39 of file pwm_regulator.c.

Referenced by pwm_regulator_configure().