From 43d23d4764bc7029a398c2bc7ba7ddf3a90e2f41 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Sat, 6 Nov 2010 22:12:46 -0400 Subject: [PATCH] update ring_osc_on and _off to the new bit structs --- lib/include/crm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/include/crm.h b/lib/include/crm.h index 09da00988..93c2b4b31 100644 --- a/lib/include/crm.h +++ b/lib/include/crm.h @@ -266,8 +266,8 @@ static const int ROSC_CTUNE = 9; /* 4 bits */ static const int ROSC_FTUNE = 4; /* 4 bits */ static const int ROSC_EN = 0; -#define ring_osc_on() (set_bit(*CRM_RINGOSC_CNTL,ROSC_EN)) -#define ring_osc_off() (clear_bit(*CRM_RINGOSC_CNTL,ROSC_EN)) +#define ring_osc_on() (CRM->RINGOSC_CNTLbits.ROSC_EN = 1) +#define ring_osc_off() (CRM->RINGOSC_CNTLbits.ROSC_EN = 0) #define REF_OSC 24000000UL /* reference osc. frequency */ #define NOMINAL_RING_OSC_SEC 2000 /* nominal ring osc. frequency */