![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#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"
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 [] |
#define PWM_DESIGN_VOLTAGE_MAX_OUTDATED 15000 |
Definition at line 20 of file pwm_regulator.c.
#define PWM_DESIGN_VOLTAGE_MIN_OUTDATED 8000 |
Definition at line 19 of file pwm_regulator.c.
#define PWM_PERIOD 3337 |
Definition at line 18 of file pwm_regulator.c.
void pwm_regulator_configure | ( | enum pwm_regulator | pwm, |
int | millivolt | ||
) |
Definition at line 60 of file pwm_regulator.c.
References assert, board_id(), CONFIG, die(), GPIO, gpio_input(), rk3399_grf_regs::iomux_pwm_0, IOMUX_PWM_0, rk3399_grf_regs::iomux_pwm_1, IOMUX_PWM_1, rk3399_pmugrf_regs::iomux_pwm_2, IOMUX_PWM_2, IOMUX_PWM_3_A, rk3399_pmugrf_regs::iomux_pwm_3a, kevin6_pwm_design_voltage, pwm_design_voltage, PWM_DESIGN_VOLTAGE_MAX_OUTDATED, PWM_DESIGN_VOLTAGE_MIN_OUTDATED, pwm_enum_to_pwm_number, pwm_init(), PWM_PERIOD, rk3399_grf, rk3399_pmugrf, scarlet_pwm_design_voltage, voltage, and write32().
Referenced by init_dvs_outputs(), and speed_up_boot_cpu().
int kevin6_pwm_design_voltage[][2] |
Definition at line 23 of file pwm_regulator.c.
Referenced by pwm_regulator_configure().
int pwm_design_voltage[][2] |
Definition at line 31 of file pwm_regulator.c.
Referenced by pwm_regulator_configure().
int pwm_enum_to_pwm_number[] |
Definition at line 45 of file pwm_regulator.c.
Referenced by pwm_regulator_configure().
int scarlet_pwm_design_voltage[][2] |
Definition at line 39 of file pwm_regulator.c.
Referenced by pwm_regulator_configure().