PebbleOS v4.47.0-160-g9e782207f
Loading...
Searching...
No Matches
SF32LB52 PMUC regulators

Regulator driver for the regulators of the SF32LB52 PMUC. More...

Data Structures

struct  pbl_sf32lb52_pmuc_regulator
 SF32LB52 PMUC regulator. More...
 

Macros

#define PBL_SF32LB52_PMUC_REGULATOR_DEFINE(sym, _name, _base, _id, _pull_down, _always_on)
 Define an SF32LB52 PMUC regulator.
 

Enumerations

enum  pbl_sf32lb52_pmuc_regulator_id { PBL_SF32LB52_PMUC_LDO18 }
 Regulators. More...
 

Detailed Description

Regulator driver for the regulators of the SF32LB52 PMUC.

LDO18 supplies the memory in the package through VDD_SIP, on boards that do not supply that pin themselves. Disabled, it can pull its output down: a board whose own supply drives the pin leaves that off.


Data Structure Documentation

◆ pbl_sf32lb52_pmuc_regulator

struct pbl_sf32lb52_pmuc_regulator

SF32LB52 PMUC regulator.

Data Fields
uintptr_t base PMUC base address.
enum pbl_sf32lb52_pmuc_regulator_id id Which one.
bool pull_down Pull the output down while disabled.
struct pbl_regulator reg Regulator.

Macro Definition Documentation

◆ PBL_SF32LB52_PMUC_REGULATOR_DEFINE

#define PBL_SF32LB52_PMUC_REGULATOR_DEFINE (   sym,
  _name,
  _base,
  _id,
  _pull_down,
  _always_on 
)
Value:
PBL_DEVICE_INSTANCE(sym, struct pbl_sf32lb52_pmuc_regulator, struct pbl_regulator, reg) { \
.reg = PBL_REGULATOR_INIT(sym, _name, nullptr, &pbl_sf32lb52_pmuc_regulator_ops, _always_on), \
.base = (_base), .id = (_id), .pull_down = (_pull_down), \
}
SF32LB52 PMUC regulator.
Definition sf32lb52_pmuc.h:29
A power rail.
Definition regulator.h:48
#define PBL_REGULATOR_INIT(sym, _name, _parent, _ops, _always_on)
Initializer for the struct pbl_regulator of regulator sym.
Definition regulator.h:79
#define PBL_REGULATOR_STATE_DEFINE(sym)
Define the class state of regulator sym, for the PBL_*_REGULATOR_DEFINE() macro of a driver.
Definition regulator.h:65

Define an SF32LB52 PMUC regulator.

Parameters
symSymbol of the regulator.
_nameName.
_basePMUC base address.
_idWhich one, a pbl_sf32lb52_pmuc_regulator_id.
_pull_downPull the output down while disabled.
_always_onSwitched on at init and never off.

Enumeration Type Documentation

◆ pbl_sf32lb52_pmuc_regulator_id

Regulators.

Enumerator
PBL_SF32LB52_PMUC_LDO18 

1.8 V LDO of the package memory.