mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-14 15:14:23 -04:00
fusee_cpp: fix mariko mtc (mariko now gets as far as erista)
This commit is contained in:
parent
5950ff5b5e
commit
968ced677e
5 changed files with 595 additions and 895 deletions
|
@ -208,8 +208,7 @@ namespace ams::nxboot {
|
|||
if (soc_type == fuse::SocType_Mariko) {
|
||||
package1 += 0x170;
|
||||
|
||||
const u8 iv[0x10] = {};
|
||||
se::DecryptAes128Cbc(package1 + 0x20, 0x40000 - (0x20 + 0x170), pkg1::AesKeySlot_MarikoBek, package1 + 0x20, 0x40000 - (0x20 + 0x170), iv, sizeof(iv));
|
||||
se::DecryptAes128Cbc(package1 + 0x20, 0x40000 - (0x20 + 0x170), pkg1::AesKeySlot_MarikoBek, package1 + 0x20, 0x40000 - (0x20 + 0x170), package1 + 0x10, se::AesBlockSize);
|
||||
|
||||
hw::InvalidateDataCache(package1 + 0x20, 0x40000 - (0x20 + 0x170));
|
||||
|
||||
|
|
|
@ -956,7 +956,7 @@ namespace ams::nxboot {
|
|||
}
|
||||
|
||||
void PllDisable(u32 dst_clk_src) {
|
||||
switch (dst_clk_src) {
|
||||
switch (reg::GetField(dst_clk_src, CLK_RST_REG_BITS_MASK(CLK_SOURCE_EMC_EMC_2X_CLK_SRC))) {
|
||||
case PLLM_OUT0:
|
||||
case PLLM_UD:
|
||||
reg::ClearBits(CLKRST + CLK_RST_CONTROLLER_PLLMB_BASE, 0x40000000);
|
||||
|
@ -2707,6 +2707,8 @@ namespace ams::nxboot {
|
|||
g_did_first_training = true;
|
||||
}
|
||||
|
||||
reg::Write(EMC + EMC_TRAINING_QUSE_CTRL_MISC, (dst_timing->burst_regs.emc_training_read_ctrl_misc & 0xFFFF0000) | 0x00001000);
|
||||
|
||||
/* Do training, if we need to. */
|
||||
const u32 needed_training = dst_timing->needs_training;
|
||||
if (needed_training && !dst_timing->trained) {
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue