X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fremoteproc.h;h=a59dba84810fba8b7919a6692f3340fc3d803179;hb=f643fb9f4c8fc5c5dceb8c2c2893447d18413d77;hp=c6e044d3b8e5bf72d843a3ad0e07275b13903d58;hpb=a69fdc7787bfa2f27eed74c2ee58c28ce932d502;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/remoteproc.h b/include/remoteproc.h index c6e044d..a59dba8 100644 --- a/include/remoteproc.h +++ b/include/remoteproc.h @@ -1,7 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2015 * Texas Instruments Incorporated - http://www.ti.com/ - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _RPROC_H_ @@ -86,6 +86,14 @@ struct dm_rproc_ops { int rproc_init(void); /** + * rproc_dev_init() - Initialize a remote proc device based on id + * @id: id of the remote processor + * + * Return: 0 if all ok, else appropriate error value. + */ +int rproc_dev_init(int id); + +/** * rproc_is_initialized() - check to see if remoteproc devices are initialized * * Return: 0 if all devices are initialized, else appropriate error value. @@ -150,6 +158,7 @@ int rproc_ping(int id); int rproc_is_running(int id); #else static inline int rproc_init(void) { return -ENOSYS; } +static inline int rproc_dev_init(int id) { return -ENOSYS; } static inline bool rproc_is_initialized(void) { return false; } static inline int rproc_load(int id, ulong addr, ulong size) { return -ENOSYS; } static inline int rproc_start(int id) { return -ENOSYS; }