mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
![Suman Anna](/assets/img/avatar_default.png)
Add two new platform data ops to allow the OMAP iommu driver to be able to invoke the omap_device_enable and omap_device_idle from within the driver. These are being added to streamline the sequence between managing the hard reset lines and the clocks during the suspend path, as the default device pm_domain callback sequences in omap_device layer are not conducive for the OMAP IOMMU driver. This could have been done by expanding the existing pdata ops for reset management (like in the OMAP remoteproc driver), but this was chosen to avoid adding additional code in the separate file in the mach-omap2 layer. Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
20 lines
618 B
C
20 lines
618 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* omap iommu: main structures
|
|
*
|
|
* Copyright (C) 2008-2009 Nokia Corporation
|
|
*
|
|
* Written by Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
|
|
*/
|
|
|
|
#include <linux/platform_device.h>
|
|
|
|
struct iommu_platform_data {
|
|
const char *reset_name;
|
|
int (*assert_reset)(struct platform_device *pdev, const char *name);
|
|
int (*deassert_reset)(struct platform_device *pdev, const char *name);
|
|
int (*device_enable)(struct platform_device *pdev);
|
|
int (*device_idle)(struct platform_device *pdev);
|
|
int (*set_pwrdm_constraint)(struct platform_device *pdev, bool request,
|
|
u8 *pwrst);
|
|
};
|