mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add pwm mode setting to loader start
This commit is contained in:
parent
06d8760209
commit
845e40884b
1 changed files with 3 additions and 0 deletions
|
|
@ -329,6 +329,9 @@ pub fn early_init() -> u32 {
|
|||
};
|
||||
}
|
||||
if let Some(mut pmic) = pmic {
|
||||
// disable CCM, force PWM on for DCDC2 - required for rail stability
|
||||
pmic.set_pwm_mode(&mut i2c, cramium_hal::axp2101::WhichDcDc::Dcdc2, true).unwrap();
|
||||
|
||||
pmic.set_ldo(&mut i2c, Some(2.5), cramium_hal::axp2101::WhichLdo::Aldo2).unwrap();
|
||||
pmic.set_dcdc(&mut i2c, Some((1.2, false)), cramium_hal::axp2101::WhichDcDc::Dcdc4).unwrap();
|
||||
crate::println!("AXP2101 configure: {:?}", pmic);
|
||||
|
|
|
|||
Loading…
Reference in a new issue