mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-02 16:44:59 +00:00

The Samsung Exynos mailbox controller, used on Google GS101 SoC, has 16 flag bits for hardware interrupt generation and a shared register for passing mailbox messages. When the controller is used by the ACPM interface the shared register is ignored and the mailbox controller acts as a doorbell. The controller just raises the interrupt to APM after the ACPM interface has written the message to SRAM. Add support for the Samsung Exynos mailbox controller. Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
20 lines
375 B
C
20 lines
375 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Exynos mailbox message.
|
|
*
|
|
* Copyright 2024 Linaro Ltd.
|
|
*/
|
|
|
|
#ifndef _LINUX_EXYNOS_MESSAGE_H_
|
|
#define _LINUX_EXYNOS_MESSAGE_H_
|
|
|
|
#define EXYNOS_MBOX_CHAN_TYPE_DOORBELL 0
|
|
#define EXYNOS_MBOX_CHAN_TYPE_DATA 1
|
|
|
|
struct exynos_mbox_msg {
|
|
unsigned int chan_id;
|
|
unsigned int chan_type;
|
|
};
|
|
|
|
#endif /* _LINUX_EXYNOS_MESSAGE_H_ */
|