]> git.baikalelectronics.ru Git - uboot.git/commit
clk: sandbox: Adjust clk-mux.c to emulate reading divider value from HW
authorLukasz Majewski <lukma@denx.de>
Mon, 24 Jun 2019 13:50:49 +0000 (15:50 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 19 Jul 2019 12:50:30 +0000 (14:50 +0200)
commit43fd0123f60d4076b5531f5c4f6d1ae25b3a49d9
treeb2a2551ca820d693ff27f56ff0d24b33c0a4a676
parenta497c6c1d140f1345a29f4fa52e4f9dd5271ba83
clk: sandbox: Adjust clk-mux.c to emulate reading divider value from HW

The generic mux clock code for CCF requires reading the clock multiplexer
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 mux structure (accessible only when sandbox is run)
has been introduced for this purpose.

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