mirror of
https://github.com/fail0verflow/mini.git
synced 2026-04-26 01:19:55 -05:00
fix GPIO fail *cough*
This commit is contained in:
parent
4d854edb54
commit
f41e7fdd7c
|
|
@ -35,6 +35,7 @@ Copyright (C) 2008, 2009 John Kelley <wiidev@kelley.ca>
|
||||||
#define HW_ARMIRQMASK (HW_REG_BASE + 0x03c)
|
#define HW_ARMIRQMASK (HW_REG_BASE + 0x03c)
|
||||||
|
|
||||||
#define HW_MEMMIRR (HW_REG_BASE + 0x060)
|
#define HW_MEMMIRR (HW_REG_BASE + 0x060)
|
||||||
|
#define HW_AHBPROT (HW_REG_BASE + 0x064)
|
||||||
|
|
||||||
// something to do with PPCBOOT
|
// something to do with PPCBOOT
|
||||||
// and legacy DI it seems ?!?
|
// and legacy DI it seems ?!?
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@ void powerpc_upload_stub(u32 entry)
|
||||||
write32(EXI_BOOT_BASE + 4 * i, 0);
|
write32(EXI_BOOT_BASE + 4 * i, 0);
|
||||||
|
|
||||||
set32(HW_DIFLAGS, DIFLAGS_BOOT_CODE);
|
set32(HW_DIFLAGS, DIFLAGS_BOOT_CODE);
|
||||||
|
set32(HW_AHBPROT, 0xFFFFFFFF);
|
||||||
|
|
||||||
gecko_printf("disabling EXI now...\n");
|
gecko_printf("disabling EXI now...\n");
|
||||||
clear32(HW_EXICTRL, EXICTRL_ENABLE_EXI);
|
clear32(HW_EXICTRL, EXICTRL_ENABLE_EXI);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user