mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-28 14:14:18 +01:00
less magic numbers
This commit is contained in:
parent
aebf594314
commit
a922a7c0f2
@ -67,7 +67,8 @@ void powerpc_hang()
|
|||||||
|
|
||||||
void powerpc_reset()
|
void powerpc_reset()
|
||||||
{
|
{
|
||||||
write32(0xD800034, 0x40000000);
|
// enable the broadway IPC interrupt
|
||||||
|
write32(HW_PPCIRQMASK, (1<<30));
|
||||||
clear32(HW_RESETS, 0x30);
|
clear32(HW_RESETS, 0x30);
|
||||||
udelay(100);
|
udelay(100);
|
||||||
set32(HW_RESETS, 0x20);
|
set32(HW_RESETS, 0x20);
|
||||||
|
Loading…
Reference in New Issue
Block a user