]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: sandbox: Adjust clk-divider to emulate reading its value from HW
authorLukasz Majewski <lukma@denx.de>
Mon, 24 Jun 2019 13:50:48 +0000 (15:50 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 19 Jul 2019 12:50:30 +0000 (14:50 +0200)
commit6bb15d6f07a8348cca07f2f245f3025cb79e7680
tree9354db4ddf38f1a73767d24d83cd8a7cacbf0bad
parent4ab8e783f33d80a3875e990f3069f21018379b36
clk: sandbox: Adjust clk-divider to emulate reading its value from HW

The generic divider clock code for CCF requires reading the divider value
from HW registers. As sandbox by design has readl() as no-op it was
necessary to provide this value in the other way.

The new field in the divider structure (accessible only when sandbox is
run) has been introduced for this purpose.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
drivers/clk/clk-divider.c
include/linux/clk-provider.h