]> git.ipfire.org Git - thirdparty/u-boot.git/commit
rockchip: rk3399: fix TIMER_FMODE constant
authorQuentin Schulz <quentin.schulz@cherry.de>
Tue, 28 Oct 2025 16:57:36 +0000 (17:57 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 2 Nov 2025 18:15:23 +0000 (12:15 -0600)
commit165e4634c31cecdf4888de115a05e4ad04bc7961
treeab5a8146a38f1fc6ecd2e7ce12b508905fb2dd17
parent0d457380a02422e07833c3a0520516c358eeb9fa
rockchip: rk3399: fix TIMER_FMODE constant

The free running mode is 0 at bit offset 1. User mode is 1 at bit offset
1. Currently, free running mode is 1 at offset 0, which is already the
case thanks to TIME_EN.

So, this essentially does not change the actual value written to the
register as it is TIME_EN | TIMER_FMODE which currently is 0x1 | BIT(0)
= 0b1, and will become 0x1 | (0 << 1) = 0b1.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/rk3399/rk3399.c