hw/misc/bcm2835_cprman: implement clock mux behaviour
authorLuc Michel <luc@lmichel.fr>
Sat, 10 Oct 2020 13:57:55 +0000 (15:57 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Oct 2020 11:10:44 +0000 (11:10 +0000)
commitfc9840850ba0eb3e61c81894bff3df12b0534497
treec99833e85d35a494d30d5dab41513bb4ce515cc4
parent7281362484ac1c1bc854ca17291c4078e870eec2
hw/misc/bcm2835_cprman: implement clock mux behaviour

A clock mux can be configured to select one of its 10 sources through
the CM_CTL register. It also embeds yet another clock divider, composed
of an integer part and a fractional part. The number of bits of each
part is mux dependent.

Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Luc Michel <luc@lmichel.fr>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/misc/bcm2835_cprman.c