1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Remote Processor - omap-specific bits
5 * Copyright (C) 2011 Texas Instruments, Inc.
6 * Copyright (C) 2011 Google, Inc.
9 #ifndef _PLAT_REMOTEPROC_H
10 #define _PLAT_REMOTEPROC_H
13 struct platform_device;
16 * struct omap_rproc_pdata - omap remoteproc's platform data
17 * @name: the remoteproc's name
18 * @oh_name: omap hwmod device
19 * @oh_name_opt: optional, secondary omap hwmod device
20 * @firmware: name of firmware file to load
21 * @mbox_name: name of omap mailbox device to use with this rproc
22 * @ops: start/stop rproc handlers
23 * @device_enable: omap-specific handler for enabling a device
24 * @device_shutdown: omap-specific handler for shutting down a device
25 * @set_bootaddr: omap-specific handler for setting the rproc boot address
27 struct omap_rproc_pdata {
30 const char *oh_name_opt;
32 const char *mbox_name;
33 const struct rproc_ops *ops;
34 int (*device_enable)(struct platform_device *pdev);
35 int (*device_shutdown)(struct platform_device *pdev);
36 void (*set_bootaddr)(u32);
39 #if defined(CONFIG_OMAP_REMOTEPROC) || defined(CONFIG_OMAP_REMOTEPROC_MODULE)
41 void __init omap_rproc_reserve_cma(void);
45 static inline void __init omap_rproc_reserve_cma(void)
51 #endif /* _PLAT_REMOTEPROC_H */