]> git.baikalelectronics.ru Git - uboot.git/commitdiff
xilinx: versal: board: use CONFIG_COUNTER_FREQUENCY
authorPeng Fan <peng.fan@nxp.com>
Wed, 13 Apr 2022 09:47:17 +0000 (17:47 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 21 Apr 2022 18:32:40 +0000 (14:32 -0400)
Since versal has CONFIG_COUNTER_FREQUENCY, so use it. And
COUNTER_FREQUENCY will be dropped.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/versal/board.c

index 9940f2aeb33760151ffa11f3b9a71bc7c9d1cec3..2e2807eee463b572a45be27ab0ae44d922a4796f 100644 (file)
@@ -74,7 +74,7 @@ int board_early_init_r(void)
         * Program freq register in System counter and
         * enable system counter.
         */
-       writel(COUNTER_FREQUENCY,
+       writel(CONFIG_COUNTER_FREQUENCY,
               &iou_scntr_secure->base_frequency_id_register);
 
        debug("counter val 0x%x\n",