From 2306e8cb6ec329181d395a00835a045ea42f1539 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Mon, 13 Apr 2009 08:16:31 -0400 Subject: [PATCH] 9a000 is the RF_BASE, evidently. --- src/maca.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/maca.c b/src/maca.c index 6973113a1..a024f8542 100644 --- a/src/maca.c +++ b/src/maca.c @@ -62,16 +62,16 @@ void reset_maca(void) */ /* tested and is good */ -#define FLYBACK_BASE 0x80009a000 +#define RF_BASE 0x80009a000 void flyback_init(void) { uint32_t val8, or; - val8 = *(volatile uint32_t *)(FLYBACK_BASE+8); + val8 = *(volatile uint32_t *)(RF_BASE+8); or = val8 | 0x0000f7df; - *(volatile uint32_t *)(FLYBACK_BASE+8) = or; - *(volatile uint32_t *)(FLYBACK_BASE+12) = 0x00ffffff; - *(volatile uint32_t *)(FLYBACK_BASE+16) = (((uint32_t)0x00ffffff)>>12); - *(volatile uint32_t *)(FLYBACK_BASE) = 16; + *(volatile uint32_t *)(RF_BASE+8) = or; + *(volatile uint32_t *)(RF_BASE+12) = 0x00ffffff; + *(volatile uint32_t *)(RF_BASE+16) = (((uint32_t)0x00ffffff)>>12); + *(volatile uint32_t *)(RF_BASE) = 16; /* good luck and godspeed */ }