From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sun, 8 Dec 2019 10:53:15 +0800 Subject: [PATCH v6 024/102] sandbox: Add PCI driver and test for p2sb In-Reply-To: <20191206213936.v6.24.I838b4b33c91a8000743aea498b139d915e95de4a@changeid> References: <20191207044315.51770-1-sjg@chromium.org> <20191206213936.v6.24.I838b4b33c91a8000743aea498b139d915e95de4a@changeid> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Dec 7, 2019 at 12:47 PM Simon Glass 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 > Reviewed-by: Bin Meng > --- > > 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!