plat/meson/gxl/gxl_common.c
/*******************************************************************************
 * Function that returns the system counter frequency
 ******************************************************************************/
Function that returns the system counter frequency
Function that returns the system counter frequency
unsigned int plat_get_syscnt_freq2(void)
{
	uint32_t val;
	val = mmio_read_32(GXBB_SYS_CPU_CFG7);
	val &= 0xFDFFFFFF;
	mmio_write_32(GXBB_SYS_CPU_CFG7, val);
	val = mmio_read_32(GXBB_AO_TIMESTAMP_CNTL);
	val &= 0xFFFFFE00;
	mmio_write_32(GXBB_AO_TIMESTAMP_CNTL, val);
	return GXBB_OSC24M_CLK_IN_HZ;
}
unsigned int plat_get_syscnt_freq2 ( void ) { uint32_t val ; val = mmio_read_32 ( GXBB_SYS_CPU_CFG7 ) ; val &= 0xFDFFFFFF ; mmio_write_32 ( GXBB_SYS_CPU_CFG7 , val ) ; val = mmio_read_32 ( GXBB_AO_TIMESTAMP_CNTL ) ; val &= 0xFFFFFE00 ; mmio_write_32 ( GXBB_AO_TIMESTAMP_CNTL , val ) ; return GXBB_OSC24M_CLK_IN_HZ ; }
Function that returns the system counter frequency
Function that returns the system counter frequency