37#define CLOCK_TASK_HFCLKSTART MMIO32(CLOCK_BASE + 0x000)
38#define CLOCK_TASK_HFCLKSTOP MMIO32(CLOCK_BASE + 0x004)
39#define CLOCK_TASK_LFCLKSTART MMIO32(CLOCK_BASE + 0x008)
40#define CLOCK_TASK_LFCLKSTOP MMIO32(CLOCK_BASE + 0x00C)
41#define CLOCK_TASK_CAL MMIO32(CLOCK_BASE + 0x010)
42#define CLOCK_TASK_CTSTART MMIO32(CLOCK_BASE + 0x014)
43#define CLOCK_TASK_CTSTOP MMIO32(CLOCK_BASE + 0x018)
46#define CLOCK_EVENT_HFCLKSTARTED MMIO32(CLOCK_BASE + 0x100)
47#define CLOCK_EVENT_LFCLKSTARTED MMIO32(CLOCK_BASE + 0x104)
48#define CLOCK_EVENT_DONE MMIO32(CLOCK_BASE + 0x10C)
49#define CLOCK_EVENT_CTTO MMIO32(CLOCK_BASE + 0x110)
52#define CLOCK_INTENSET MMIO32(CLOCK_BASE + 0x304)
53#define CLOCK_INTENCLR MMIO32(CLOCK_BASE + 0x308)
54#define CLOCK_HFCLKRUN MMIO32(CLOCK_BASE + 0x408)
55#define CLOCK_HFCLKSTAT MMIO32(CLOCK_BASE + 0x40C)
56#define CLOCK_LFCLKRUN MMIO32(CLOCK_BASE + 0x414)
57#define CLOCK_LFCLKSTAT MMIO32(CLOCK_BASE + 0x418)
58#define CLOCK_LFCLKSRCCOPY MMIO32(CLOCK_BASE + 0x41C)
59#define CLOCK_LFCLKSRC MMIO32(CLOCK_BASE + 0x518)
60#define CLOCK_CTIV MMIO32(CLOCK_BASE + 0x538)
63#define CLOCK_INTEN_HFCLKSTARTED (1 << 0)
64#define CLOCK_INTEN_LFCLKSTARTED (1 << 1)
65#define CLOCK_INTEN_DONE (1 << 3)
66#define CLOCK_INTEN_CTTO (1 << 4)
68#define CLOCK_HFCLKRUN_STATUS (1 << 0)
70#define CLOCK_HFCLKSTAT_SRC (1 << 0)
71#define CLOCK_HFCLKSTAT_STATE (1 << 16)
73#define CLOCK_LFCLKRUN_STATUS (1 << 0)
75#define CLOCK_LFCLK_SRC_SHIFT (0)
76#define CLOCK_LFCLK_SRC_MASK (3 << CLOCK_LFCLKSTAT_SRC_SHIFT)
77#define CLOCK_LFCLK_SRC_MASKED(V) (((V) << CLOCK_LFCLKSTAT_SRC_SHIFT) & CLOCK_LFCLKSTAT_SRC_MASK)
79#define CLOCK_LFCLKSTAT_STATE (1 << 16)
void clock_start_lfclk(bool wait)
Start Low Frequency Clock.
void clock_set_lfclk_src(enum clock_lfclk_src lfclk_src)
Low Frequency Clock Source.
void clock_start_hfclk(bool wait)
Start High Frequency Crystal Oscillator.
void clock_stop_lfclk(void)
Stop Low Frequency Clock.
void clock_stop_hfclk(void)
Stop High Frequency Crystal Oscillator.