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)
commit5da0095e3a670fe61a3421a2a826514a61a687e0
treeb2a2551ca820d693ff27f56ff0d24b33c0a4a676
parent6bb15d6f07a8348cca07f2f245f3025cb79e7680
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