test: dm: Add a test for PCI Enhanced Allocation
authorAlex Marginean <alexm.osslist@gmail.com>
Fri, 7 Jun 2019 08:24:24 +0000 (11:24 +0300)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Jul 2019 22:52:58 +0000 (16:52 -0600)
commit21ebbafde8dbbc5903a302ba0c126ff2ac1423c8
tree7619308eb2da99597e30de33845f4df4288c5d54
parent0b143d8ab2b84219552d652e46619360a38888d1
test: dm: Add a test for PCI Enhanced Allocation

This test is built on top of the existing swap_case driver.  It adds EA
capability structure support to swap_case and uses that to map BARs.
BAR1 works as it used to, swapping upper/lower case.  BARs 2,4 map to a
couple of magic values.

Signed-off-by: Alex Marginean <alexm.osslist@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
arch/sandbox/dts/test.dts
arch/sandbox/include/asm/test.h
drivers/misc/swap_case.c
test/dm/pci.c