mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 04:55:16 +07:00
1802d0beec
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 655 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Richard Fontana <rfontana@redhat.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070034.575739538@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
52 lines
1.3 KiB
C
52 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Remote Processor - omap-specific bits
|
|
*
|
|
* Copyright (C) 2011 Texas Instruments, Inc.
|
|
* Copyright (C) 2011 Google, Inc.
|
|
*/
|
|
|
|
#ifndef _PLAT_REMOTEPROC_H
|
|
#define _PLAT_REMOTEPROC_H
|
|
|
|
struct rproc_ops;
|
|
struct platform_device;
|
|
|
|
/*
|
|
* struct omap_rproc_pdata - omap remoteproc's platform data
|
|
* @name: the remoteproc's name
|
|
* @oh_name: omap hwmod device
|
|
* @oh_name_opt: optional, secondary omap hwmod device
|
|
* @firmware: name of firmware file to load
|
|
* @mbox_name: name of omap mailbox device to use with this rproc
|
|
* @ops: start/stop rproc handlers
|
|
* @device_enable: omap-specific handler for enabling a device
|
|
* @device_shutdown: omap-specific handler for shutting down a device
|
|
* @set_bootaddr: omap-specific handler for setting the rproc boot address
|
|
*/
|
|
struct omap_rproc_pdata {
|
|
const char *name;
|
|
const char *oh_name;
|
|
const char *oh_name_opt;
|
|
const char *firmware;
|
|
const char *mbox_name;
|
|
const struct rproc_ops *ops;
|
|
int (*device_enable)(struct platform_device *pdev);
|
|
int (*device_shutdown)(struct platform_device *pdev);
|
|
void (*set_bootaddr)(u32);
|
|
};
|
|
|
|
#if defined(CONFIG_OMAP_REMOTEPROC) || defined(CONFIG_OMAP_REMOTEPROC_MODULE)
|
|
|
|
void __init omap_rproc_reserve_cma(void);
|
|
|
|
#else
|
|
|
|
static inline void __init omap_rproc_reserve_cma(void)
|
|
{
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* _PLAT_REMOTEPROC_H */
|