aspeed/smc: Add AST1030 support
commit2850df6a81bcdc2e063dfdd56751ee2d11c58030
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)
treeb5e5da83aef32192ded5212b1e49903b4e6429e5
parent5c5e044583a5dcfc361ad94b6acf1942e54dcc6b
aspeed/smc: Add AST1030 support

AST1030 spi controller's address decoding unit is 1MB that is identical
to ast2600, but fmc address decoding unit is 512kb.
Introduce seg_to_reg and reg_to_seg handlers for ast1030 fmc controller.
In addition, add ast1030 fmc, spi1, and spi2 class init handler.

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-3-jamin_lin@aspeedtech.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ssi/aspeed_smc.c