1 // SPDX-License-Identifier: GPL-2.0
3 * Sandbox P2SB for testing
5 * Copyright 2019 Google LLC
8 #define LOG_CATEGORY UCLASS_P2SB
15 struct sandbox_p2sb_priv {
19 static int sandbox_p2sb_probe(struct udevice *dev)
21 struct p2sb_uc_priv *upriv = dev_get_uclass_priv(dev);
23 upriv->mmio_base = dm_pci_read_bar32(dev, 0);
28 static const struct udevice_id sandbox_p2sb_ids[] = {
29 { .compatible = "sandbox,p2sb" },
33 U_BOOT_DRIVER(p2sb_sandbox) = {
34 .name = "p2sb_sandbox",
36 .of_match = sandbox_p2sb_ids,
37 .probe = sandbox_p2sb_probe,
38 .priv_auto = sizeof(struct sandbox_p2sb_priv),