]> git.baikalelectronics.ru Git - uboot.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)
commita497c6c1d140f1345a29f4fa52e4f9dd5271ba83
tree9354db4ddf38f1a73767d24d83cd8a7cacbf0bad
parent3dd6fda9dfc6cb82ba31e12eb3025a245db37d32
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