/* Enable clock of given device. 
This enables (gates) the clock for the given device.  */
void ccm_clock_gate_enable(enum ccm_clock_gate gr)
/* Enable clock of given device. 
This enables (gates) the clock for the given device.  */
void ccm_clock_gate_enable(enum ccm_clock_gate gr)
{
	uint32_t offset = (uint32_t)gr / 16;
	uint32_t gr_mask = 0x3 << ((gr % 16) * 2);
	CCM_CCGR(offset * 4) |= gr_mask;
}