mirror of
https://github.com/torvalds/linux.git
synced 2026-04-19 23:34:00 -04:00
Add helpers to issue reset commands through the PWR_CONTROL interface and wait for reset completion using IRQ signaling. This enables support for RESET_SOFT operations with timeout handling and status verification. Reviewed-by: Steven Price <steven.price@arm.com> Signed-off-by: Karunika Choo <karunika.choo@arm.com> Link: https://patch.msgid.link/20251125125548.3282320-6-karunika.choo@arm.com Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
24 lines
613 B
C
24 lines
613 B
C
/* SPDX-License-Identifier: GPL-2.0 or MIT */
|
|
/* Copyright 2025 ARM Limited. All rights reserved. */
|
|
|
|
#ifndef __PANTHOR_PWR_H__
|
|
#define __PANTHOR_PWR_H__
|
|
|
|
struct panthor_device;
|
|
|
|
void panthor_pwr_unplug(struct panthor_device *ptdev);
|
|
|
|
int panthor_pwr_init(struct panthor_device *ptdev);
|
|
|
|
int panthor_pwr_reset_soft(struct panthor_device *ptdev);
|
|
|
|
void panthor_pwr_l2_power_off(struct panthor_device *ptdev);
|
|
|
|
int panthor_pwr_l2_power_on(struct panthor_device *ptdev);
|
|
|
|
void panthor_pwr_suspend(struct panthor_device *ptdev);
|
|
|
|
void panthor_pwr_resume(struct panthor_device *ptdev);
|
|
|
|
#endif /* __PANTHOR_PWR_H__ */
|