hw: aspeed_scu: Add AST2600 apb_freq and hpll calculation function
commitdd7f19a963ca4e1bbfb65b72d555efcc507a2d78
authorSteven Lee <steven_lee@aspeedtech.com>
Mon, 2 May 2022 15:03:02 +0000 (2 17:03 +0200)
committerCédric Le Goater <clg@kaod.org>
Mon, 2 May 2022 15:03:02 +0000 (2 17:03 +0200)
treee6cefb9f1442711cf5ccaf6af08cd4f9bae8cd8a
parentf5643914a9e8f79c606a76e6a9d7ea82a3fc3e65
hw: aspeed_scu: Add AST2600 apb_freq and hpll calculation function

AST2600's HPLL register offset and bit definition are different from
AST2500. Add a hpll calculation function and an apb frequency calculation
function based on SCU200 register description in ast2600v11.pdf.

Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
[ clg: checkpatch fixes ]
Message-Id: <20220315075753.8591-2-steven_lee@aspeedtech.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/misc/aspeed_scu.c
include/hw/misc/aspeed_scu.h