mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
56be7cb185
PD#SWPL-144572 Problem: dewarp/ge2d interrupt resource usage between RTOS and Linux Solution: To avoid interfering with RTOS clock/power/interrupt resources, turn on and keep power/clk first. Poll the status of rtos, then turn off power/clk and register interrupt. Verify: T7C Change-Id: Ie2a3ae61df97c594324ffb3dde68d41250c946e3 Signed-off-by: Jian Cao <jian.cao@amlogic.com>
24 lines
577 B
C
24 lines
577 B
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2021 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _FREERTOS_H_
|
|
#define _FREERTOS_H_
|
|
#include <linux/amlogic/rtosinfo.h>
|
|
|
|
unsigned long freertos_is_run(void);
|
|
int freertos_finish(void);
|
|
int freertos_is_finished(void);
|
|
int freertos_is_irq_rsved(unsigned int irq);
|
|
u32 freertos_get_irqregval(u32 val, u32 oldval,
|
|
unsigned int irqbase,
|
|
unsigned int n);
|
|
struct xrtosinfo_t *freertos_get_info(void);
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_FREERTOS_IPI_SEND)
|
|
void arch_send_ipi_rtos(int cpu);
|
|
#endif
|
|
|
|
#endif
|