]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: snapdragon: Fix typo in clk_bcr_update()
authorSheep Sun <sunxiaoyang2003@gmail.com>
Sun, 20 Jun 2021 02:34:35 +0000 (10:34 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 6 Jul 2021 18:12:15 +0000 (14:12 -0400)
Fix typo in clock-snapdragon.c

Signed-off-by: Sheep Sun <sunxiaoyang2003@gmail.com>
arch/arm/mach-snapdragon/clock-snapdragon.c

index fbe0b5212f98e3bdf4aa9e5a969ea6d413a84a8f..2b76371718c01877c45a1ec89ffaacff8fa98329 100644 (file)
@@ -56,15 +56,15 @@ void clk_enable_vote_clk(phys_addr_t base, const struct vote_clk *vclk)
        } while ((val != BRANCH_ON_VAL) && (val != BRANCH_NOC_FSM_ON_VAL));
 }
 
-#define APPS_CMD_RGCR_UPDATE BIT(0)
+#define APPS_CMD_RCGR_UPDATE BIT(0)
 
-/* Update clock command via CMD_RGCR */
-void clk_bcr_update(phys_addr_t apps_cmd_rgcr)
+/* Update clock command via CMD_RCGR */
+void clk_bcr_update(phys_addr_t apps_cmd_rcgr)
 {
-       setbits_le32(apps_cmd_rgcr, APPS_CMD_RGCR_UPDATE);
+       setbits_le32(apps_cmd_rcgr, APPS_CMD_RCGR_UPDATE);
 
        /* Wait for frequency to be updated. */
-       while (readl(apps_cmd_rgcr) & APPS_CMD_RGCR_UPDATE)
+       while (readl(apps_cmd_rcgr) & APPS_CMD_RCGR_UPDATE)
                ;
 }