From 18e2a79f8a5eaa72a2a7e641c2481beb9f827dce Mon Sep 17 00:00:00 2001 From: Venkatesh Yadav Abbarapu Date: Sat, 29 Jan 2022 23:17:25 -0700 Subject: [PATCH] feat(versal): remove the time stamp configuration Remove the time stamp and system counter configuration, as this configuration is already done by the first stage bootloader. Signed-off-by: Venkatesh Yadav Abbarapu Change-Id: I41554dc2e14d97954bff299df9740a5efa30fad9 --- plat/xilinx/versal/aarch64/versal_common.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/plat/xilinx/versal/aarch64/versal_common.c b/plat/xilinx/versal/aarch64/versal_common.c index 2fa847658..897ed59ec 100644 --- a/plat/xilinx/versal/aarch64/versal_common.c +++ b/plat/xilinx/versal/aarch64/versal_common.c @@ -39,26 +39,11 @@ static void versal_print_platform_name(void) void versal_config_setup(void) { - uint32_t val; - /* Configure IPI data for versal */ versal_ipi_config_table_init(); versal_print_platform_name(); - /* Global timer init - Program time stamp reference clk */ - val = mmio_read_32(VERSAL_CRL_TIMESTAMP_REF_CTRL); - val |= VERSAL_CRL_APB_TIMESTAMP_REF_CTRL_CLKACT_BIT; - mmio_write_32(VERSAL_CRL_TIMESTAMP_REF_CTRL, val); - - /* Clear reset of timestamp reg */ - mmio_write_32(VERSAL_CRL_RST_TIMESTAMP_OFFSET, 0x0); - - /* Program freq register in System counter and enable system counter. */ - mmio_write_32(VERSAL_IOU_SCNTRS_BASE_FREQ, VERSAL_CPU_CLOCK); - mmio_write_32(VERSAL_IOU_SCNTRS_COUNTER_CONTROL_REG, - VERSAL_IOU_SCNTRS_CONTROL_EN); - generic_delay_timer_init(); }