test/qtest/aspeed_smc-test: Support to test AST2600
authorJamin Lin <jamin_lin@aspeedtech.com>
Wed, 27 Nov 2024 09:15:39 +0000 (17:15 +0800)
committerCédric Le Goater <clg@redhat.com>
Wed, 11 Dec 2024 06:25:53 +0000 (07:25 +0100)
commit84f7ea6db7709c8378362c4a1af30a3e3e3932b1
treed740813c14d8c8146ad1b1a6c165d08a596b8bed
parent658ebe13687a5069f907ec8ece040adeb56667cc
test/qtest/aspeed_smc-test: Support to test AST2600

Add test_ast2600_evb function and reused testcases for AST2600 testing.
The spi base address, flash base address and ce index of fmc_cs0 are
0x1E620000, 0x20000000 and 0, respectively.
The default flash model of fmc_cs0 is "mx66u51235f" whose size is 64MB,
so set jedec_id 0xc2253a.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/r/20241127091543.1243114-7-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
tests/qtest/aspeed_smc-test.c