mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-02 15:49:48 -04:00
ams: update for 12.0.2
This commit is contained in:
parent
b846628362
commit
bb4c7a390b
12 changed files with 34 additions and 12 deletions
|
@ -38,6 +38,12 @@ namespace ams::boot {
|
|||
}
|
||||
|
||||
Result Initialize(bool set_input_current_limit) {
|
||||
/* Configure PINMUX_AUX_CAM_FLASH_EN as tristate + passthrough. */
|
||||
{
|
||||
const uintptr_t apb_regs = dd::QueryIoMapping(0x70000000ul, os::MemoryPageSize);
|
||||
reg::ClearBits(apb_regs + PINMUX_AUX_CAM_FLASH_EN, reg::EncodeMask(PINMUX_REG_BITS_MASK(AUX_TRISTATE)));
|
||||
}
|
||||
|
||||
/* Set input current limit to 500 ma. */
|
||||
if (set_input_current_limit) {
|
||||
R_TRY(powctl::SetChargerInputCurrentLimit(this->charger_session, 500));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue