Skip to content
Snippets Groups Projects
Commit 3ef85e37 authored by Simon Glass's avatar Simon Glass
Browse files

dm: systemace: Add a legacy block interface


Add a legacy block interface for systemace.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 6eef6eac
No related branches found
No related tags found
No related merge requests found
...@@ -132,6 +132,13 @@ struct blk_desc *systemace_get_dev(int dev) ...@@ -132,6 +132,13 @@ struct blk_desc *systemace_get_dev(int dev)
} }
#endif #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 * This function is called (by dereferencing the block_read pointer in
* the dev_desc) to read blocks of data. The return value is the * 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, ...@@ -257,3 +264,10 @@ static unsigned long systemace_read(struct blk_desc *block_dev,
return blkcnt; return blkcnt;
} }
U_BOOT_LEGACY_BLK(systemace) = {
.if_typename = "ace",
.if_type = IF_TYPE_SYSTEMACE,
.max_devs = 1,
.get_dev = systemace_get_devp,
};
...@@ -30,6 +30,7 @@ enum if_type { ...@@ -30,6 +30,7 @@ enum if_type {
IF_TYPE_SD, IF_TYPE_SD,
IF_TYPE_SATA, IF_TYPE_SATA,
IF_TYPE_HOST, IF_TYPE_HOST,
IF_TYPE_SYSTEMACE,
IF_TYPE_COUNT, /* Number of interface types */ IF_TYPE_COUNT, /* Number of interface types */
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment