update ring_osc_on and _off to the new bit structs

This commit is contained in:
Mariano Alvira 2010-11-06 22:12:46 -04:00
parent 181cc6f58d
commit 43d23d4764

View File

@ -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 */