diff options
author | Simon Glass <sjg@chromium.org> | 2016-05-01 20:36:04 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-05-17 18:54:43 +0300 |
commit | 3ef85e377201c1ebe84e74bfb785c95ccbc37b13 (patch) | |
tree | 18392b9ff4eb23d9118c9c2bb9c6b70831b24add /drivers/block/systemace.c | |
parent | 6eef6eac1fc137c97bf1993304ed83b8e483c80a (diff) | |
download | u-boot-3ef85e377201c1ebe84e74bfb785c95ccbc37b13.tar.xz |
dm: systemace: Add a legacy block interface
Add a legacy block interface for systemace.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/block/systemace.c')
-rw-r--r-- | drivers/block/systemace.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/block/systemace.c b/drivers/block/systemace.c index 09fe834e22..0d8e26f8aa 100644 --- a/drivers/block/systemace.c +++ b/drivers/block/systemace.c @@ -132,6 +132,13 @@ struct blk_desc *systemace_get_dev(int dev) } #endif +static int systemace_get_devp(int dev, struct blk_desc **descp) +{ + *descp = systemace_get_dev(dev); + + return 0; +} + /* * This function is called (by dereferencing the block_read pointer in * the dev_desc) to read blocks of data. The return value is the @@ -257,3 +264,10 @@ static unsigned long systemace_read(struct blk_desc *block_dev, return blkcnt; } + +U_BOOT_LEGACY_BLK(systemace) = { + .if_typename = "ace", + .if_type = IF_TYPE_SYSTEMACE, + .max_devs = 1, + .get_dev = systemace_get_devp, +}; |