9a000 is the RF_BASE, evidently.

This commit is contained in:
Mariano Alvira 2009-04-13 08:16:31 -04:00
parent 40207dc533
commit 2306e8cb6e

View file

@ -62,16 +62,16 @@ void reset_maca(void)
*/ */
/* tested and is good */ /* tested and is good */
#define FLYBACK_BASE 0x80009a000 #define RF_BASE 0x80009a000
void flyback_init(void) { void flyback_init(void) {
uint32_t val8, or; uint32_t val8, or;
val8 = *(volatile uint32_t *)(FLYBACK_BASE+8); val8 = *(volatile uint32_t *)(RF_BASE+8);
or = val8 | 0x0000f7df; or = val8 | 0x0000f7df;
*(volatile uint32_t *)(FLYBACK_BASE+8) = or; *(volatile uint32_t *)(RF_BASE+8) = or;
*(volatile uint32_t *)(FLYBACK_BASE+12) = 0x00ffffff; *(volatile uint32_t *)(RF_BASE+12) = 0x00ffffff;
*(volatile uint32_t *)(FLYBACK_BASE+16) = (((uint32_t)0x00ffffff)>>12); *(volatile uint32_t *)(RF_BASE+16) = (((uint32_t)0x00ffffff)>>12);
*(volatile uint32_t *)(FLYBACK_BASE) = 16; *(volatile uint32_t *)(RF_BASE) = 16;
/* good luck and godspeed */ /* good luck and godspeed */
} }