summaryrefslogtreecommitdiff
path: root/arch/sandbox/include/asm/test.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-05 12:25:26 -0700
committerSimon Glass <sjg@chromium.org>2015-04-16 19:27:43 -0600
commit9569c40668290408eac447f9be99dab603c8e34c (patch)
treef476d89aaed8887ebca97da08da07abc2c455fe3 /arch/sandbox/include/asm/test.h
parentff3e077bd23c37c83d01aad105e528194e33d75e (diff)
downloadu-boot-imx-9569c40668290408eac447f9be99dab603c8e34c.zip
u-boot-imx-9569c40668290408eac447f9be99dab603c8e34c.tar.gz
u-boot-imx-9569c40668290408eac447f9be99dab603c8e34c.tar.bz2
dm: sandbox: pci: Add PCI support for sandbox
Add the required header information, device tree nodes and I/O accessor functions to support PCI on sandbox. All devices are emulated by drivers which can be added as required for testing or development. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/include/asm/test.h')
-rw-r--r--arch/sandbox/include/asm/test.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/sandbox/include/asm/test.h b/arch/sandbox/include/asm/test.h
index 25a0c85..8e490e9 100644
--- a/arch/sandbox/include/asm/test.h
+++ b/arch/sandbox/include/asm/test.h
@@ -10,7 +10,12 @@
#define __ASM_TEST_H
/* The sandbox driver always permits an I2C device with this address */
-#define SANDBOX_I2C_TEST_ADDR 0x59
+#define SANDBOX_I2C_TEST_ADDR 0x59
+
+#define SANDBOX_PCI_VENDOR_ID 0x1234
+#define SANDBOX_PCI_DEVICE_ID 0x5678
+#define SANDBOX_PCI_CLASS_CODE PCI_CLASS_CODE_COMM
+#define SANDBOX_PCI_CLASS_SUB_CODE PCI_CLASS_SUB_CODE_COMM_SERIAL
enum sandbox_i2c_eeprom_test_mode {
SIE_TEST_MODE_NONE,