linux/include/linux/platform_data/remoteproc-omap.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0-only */
   2/*
   3 * Remote Processor - omap-specific bits
   4 *
   5 * Copyright (C) 2011 Texas Instruments, Inc.
   6 * Copyright (C) 2011 Google, Inc.
   7 */
   8
   9#ifndef _PLAT_REMOTEPROC_H
  10#define _PLAT_REMOTEPROC_H
  11
  12struct rproc_ops;
  13struct platform_device;
  14
  15/*
  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
  26 */
  27struct omap_rproc_pdata {
  28        const char *name;
  29        const char *oh_name;
  30        const char *oh_name_opt;
  31        const char *firmware;
  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);
  37};
  38
  39#if defined(CONFIG_OMAP_REMOTEPROC) || defined(CONFIG_OMAP_REMOTEPROC_MODULE)
  40
  41void __init omap_rproc_reserve_cma(void);
  42
  43#else
  44
  45static inline void __init omap_rproc_reserve_cma(void)
  46{
  47}
  48
  49#endif
  50
  51#endif /* _PLAT_REMOTEPROC_H */
  52