freemyipod r275 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r274‎ | r275 | r276 >
Date:23:37, 22 November 2010
Author:theseven
Status:new
Tags:
Comment:
emBIOS: Fix hwkeyaes on iPod Classic (wrong clock gate)
Modified paths:
  • /embios/trunk/target/ipodnano3g/hwkeyaes.c (modified) (history)

Diff [purge]

Index: embios/trunk/target/ipodnano3g/hwkeyaes.c
@@ -30,7 +30,7 @@
3131 void hwkeyaes(enum hwkeyaes_direction direction, uint32_t keyidx, void* data, uint32_t size)
3232 {
3333 int i;
34 - clockgate_enable(7, true);
 34+ clockgate_enable(10, true);
3535 for (i = 0; i < 4; i++) AESIV[i] = 0;
3636 AESUNKREG0 = 1;
3737 AESUNKREG0 = 0;
@@ -51,5 +51,5 @@
5252 AESGO = 1;
5353 invalidate_dcache();
5454 while (!(AESSTATUS & 0xf)) sleep(100);
55 - clockgate_enable(7, false);
 55+ clockgate_enable(10, false);
5656 }