test/qtest/ast2700-smc-test: Support to test AST2700
authorJamin Lin <jamin_lin@aspeedtech.com>
Wed, 27 Nov 2024 09:15:43 +0000 (17:15 +0800)
committerCédric Le Goater <clg@redhat.com>
Wed, 11 Dec 2024 06:25:53 +0000 (07:25 +0100)
commit124f4dc0d832c1bf3a4513c05a2b93bac0a5fac0
treed164f9f3f3e6599946e6485e017243368e9c5a8a
parent3e62a32ddb89831c4a01b9526ae656f7fb802998
test/qtest/ast2700-smc-test: Support to test AST2700

Add test_ast2700_evb function and reused testcases which are from
aspeed_smc-test.c for AST2700 testing. The base address, flash base address
and ce index of fmc_cs0 are 0x14000000, 0x100000000 and 0, respectively.
The default flash model of fmc_cs0 is "w25q01jvq" whose size is 128MB,
so set jedec_id 0xef4021.

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-11-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
tests/qtest/ast2700-smc-test.c [new file with mode: 0644]
tests/qtest/meson.build