On Sat, Dec 7, 2019 at 12:47 PM Simon Glass <[email protected]> wrote: > > Add a sandbox driver and PCI-device emulator for p2sb. Also add a test > which uses a simple 'adder' driver to test the p2sb functionality. > > Signed-off-by: Simon Glass <[email protected]> > Reviewed-by: Bin Meng <[email protected]> > --- > > Changes in v6: > - Correct a few unrelated defconfig changes > - Drop unwanted debug printf() > > Changes in v5: None > Changes in v4: > - Drop change to message about a missing uclass > - Drop empty operations struct since p2sb does not need it > - Drop pmic_pm8916 driver name and use a sandbox name instead > - Split out mmio changes into a separate patch > > Changes in v3: > - Fix build errors in sandbox_spl, etc > > Changes in v2: None > > arch/sandbox/dts/test.dts | 13 ++ > arch/sandbox/include/asm/test.h | 1 + > configs/sandbox64_defconfig | 3 + > configs/sandbox_defconfig | 1 + > configs/sandbox_flattree_defconfig | 3 + > configs/sandbox_spl_defconfig | 3 + > configs/tools-only_defconfig | 2 + > drivers/misc/Makefile | 2 + > drivers/misc/p2sb_emul.c | 272 +++++++++++++++++++++++++++++ > drivers/misc/p2sb_sandbox.c | 39 +++++ > drivers/misc/sandbox_adder.c | 60 +++++++ > test/dm/Makefile | 1 + > test/dm/p2sb.c | 28 +++ > 13 files changed, 428 insertions(+) > create mode 100644 drivers/misc/p2sb_emul.c > create mode 100644 drivers/misc/p2sb_sandbox.c > create mode 100644 drivers/misc/sandbox_adder.c > create mode 100644 test/dm/p2sb.c >
applied to u-boot-x86/next, thanks!

