aspeed/scu: Add AST1030 support
commitfa541a60dd4ed863ce500e00a43041528ae4f301
authorSteven Lee <steven_lee@aspeedtech.com>
Mon, 2 May 2022 15:03:03 +0000 (2 17:03 +0200)
committerCédric Le Goater <clg@kaod.org>
Mon, 2 May 2022 15:03:03 +0000 (2 17:03 +0200)
treef25b00f5a9dc2651211f6b1edbcfc9e6cb1f54e4
parentc5b89a4f476fb77e5a302c18b76098190a3d549d
aspeed/scu: Add AST1030 support

Per ast1030_v07.pdf, AST1030 SOC doesn't have SCU300, the pclk divider
selection is defined in SCU310[11:8].
Add a get_apb_freq function and a class init handler for ast1030.

Signed-off-by: Troy Lee <troy_lee@aspeedtech.com>
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20220401083850.15266-7-jamin_lin@aspeedtech.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/misc/aspeed_scu.c
include/hw/misc/aspeed_scu.h