linux-loongson/include/linux/mailbox/exynos-message.h
Tudor Ambarus fbf7e5ce40 mailbox: add Samsung Exynos driver
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>
2025-01-18 16:18:48 -06:00

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_ */