tests: add XSCOM tests for the PowerNV machine
commitca8e4bf4096190245700c4cfd98fca5255935de3
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 14 Nov 2016 23:09:46 +0000 (15 10:09 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 15 Nov 2016 00:38:18 +0000 (15 11:38 +1100)
tree91484428e9559882be1e2bbcebee4d6f37c06582
parent27d9ffd4b3718707c302fc0aad4746b958443c3a
tests: add XSCOM tests for the PowerNV machine

Add a couple of tests on the XSCOM bus of the PowerNV machine for the
the POWER8 and POWER9 CPUs. The first tests reads the CFAM identifier
of the chip. The second test goes further in the XSCOM address space
and reaches the cores to read their DTS registers.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
[dwg: Fixed an incorrect indentation, and a Makefile problem]]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
tests/Makefile.include
tests/pnv-xscom-test.c [new file with mode: 0644]