summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-11-24 09:26:40 -0700
committerSimon Glass <sjg@chromium.org>2021-12-05 09:23:15 -0700
commit32c8566f138d4685c60c83fa89cf4bb0b7b00e79 (patch)
tree656b3ce23f7595748d3f96ecd297cee91351f569 /include
parent89050244c40e79fc24b24ee84e4e668a6dfc336d (diff)
sandbox: Drop CONFIG_HOST_MAX_DEVICES
This can go in the related header file. Drop the CONFIG option. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include')
-rw-r--r--include/configs/sandbox.h2
-rw-r--r--include/sandboxblockdev.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index cc3a7ff05e4..b1689d39f11 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -14,8 +14,6 @@
#define CONFIG_SYS_TIMER_RATE 1000000
#endif
-#define CONFIG_HOST_MAX_DEVICES 4
-
#define CONFIG_MALLOC_F_ADDR 0x0010000
#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
diff --git a/include/sandboxblockdev.h b/include/sandboxblockdev.h
index 4006e942a02..4ca9554e38a 100644
--- a/include/sandboxblockdev.h
+++ b/include/sandboxblockdev.h
@@ -6,6 +6,9 @@
#ifndef __SANDBOX_BLOCK_DEV__
#define __SANDBOX_BLOCK_DEV__
+/* Maximum number of host devices - see drivers/block/sandbox.c */
+#define SANDBOX_HOST_MAX_DEVICES 4
+
struct host_block_dev {
#ifndef CONFIG_BLK
struct blk_desc blk_dev;