diff options
author | Simon Glass <sjg@chromium.org> | 2016-05-01 11:36:05 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-05-17 09:54:43 -0600 |
commit | 0cc65a7cc23bfbaab709d8934a6b8c73084852ea (patch) | |
tree | 110f6cbf4f9b6b1beb63005a4e791ffb9e193823 /drivers/block/sandbox.c | |
parent | 3ef85e377201c1ebe84e74bfb785c95ccbc37b13 (diff) | |
download | u-boot-0cc65a7cc23bfbaab709d8934a6b8c73084852ea.zip u-boot-0cc65a7cc23bfbaab709d8934a6b8c73084852ea.tar.gz u-boot-0cc65a7cc23bfbaab709d8934a6b8c73084852ea.tar.bz2 |
dm: sandbox: Add a legacy host block interface
Add a legacy block interface for sandbox host.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/block/sandbox.c')
-rw-r--r-- | drivers/block/sandbox.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/block/sandbox.c b/drivers/block/sandbox.c index 6d41508..2b6a893 100644 --- a/drivers/block/sandbox.c +++ b/drivers/block/sandbox.c @@ -239,4 +239,11 @@ U_BOOT_DRIVER(sandbox_host_blk) = { .ops = &sandbox_host_blk_ops, .priv_auto_alloc_size = sizeof(struct host_block_dev), }; +#else +U_BOOT_LEGACY_BLK(sandbox_host) = { + .if_typename = "host", + .if_type = IF_TYPE_HOST, + .max_devs = CONFIG_HOST_MAX_DEVICES, + .get_dev = host_get_dev_err, +}; #endif |