From d42730e8c67a0955c2f8236157b4723c585b9d24 Mon Sep 17 00:00:00 2001 From: Jean-Jacques Hiblot Date: Tue, 22 Oct 2019 16:39:19 +0200 Subject: drivers: board: Add get_fit_loadable() This function will be used by the SPL to get the names of images to load from the FIT. This allows to load different images based on runtime HW detection. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- drivers/board/board-uclass.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'drivers/board') diff --git a/drivers/board/board-uclass.c b/drivers/board/board-uclass.c index a516ba4..b5485e9 100644 --- a/drivers/board/board-uclass.c +++ b/drivers/board/board-uclass.c @@ -23,6 +23,17 @@ int board_detect(struct udevice *dev) return ops->detect(dev); } +int board_get_fit_loadable(struct udevice *dev, int index, + const char *type, const char **strp) +{ + struct board_ops *ops = board_get_ops(dev); + + if (!ops->get_fit_loadable) + return -ENOSYS; + + return ops->get_fit_loadable(dev, index, type, strp); +} + int board_get_bool(struct udevice *dev, int id, bool *val) { struct board_ops *ops = board_get_ops(dev); -- cgit v1.1