Files
2026-08-24 10:03:24 +08:00

71 lines
1.9 KiB
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __S5_MBOX_H__
#define __S5_MBOX_H__
#include "amlogic,mbox.h"
/* MAILBOX DRIVER ID */
/* AOCPU to ARMREE driver ID */
#define S5_AO2REE0 0
#define S5_AO2REE1 1
#define S5_AO2REE2 2
#define S5_AO2REE3 3
#define S5_AO2REE4 4
#define S5_AO2REE5 5
#define S5_AO2REE6 6
#define S5_AO2REE7 7
#define S5_AO2REE8 8
#define S5_AO2REE9 9
#define S5_AO2REE10 10
/* ARMREE to AOCPU driver ID */
#define S5_REE2AO0 64
#define S5_REE2AO1 65
#define S5_REE2AO2 66
#define S5_REE2AO3 67
#define S5_REE2AO4 68
#define S5_REE2AO5 69
#define S5_REE2AO6 70
#define S5_REE2AO7 71
#define S5_REE2AO8 72
#define S5_REE2AO9 73
#define S5_REE2AO10 74
/* MBOX CLIENT ID */
/* AOCPU to ARMREE client ID */
#define S5_AO2REE_DEV S5_AO2REE0
#define S5_AO2REE_VRTC S5_AO2REE1
#define S5_AO2REE_RTC S5_AO2REE2
#define S5_AO2REE_KEYPAD S5_AO2REE3
#define S5_AO2REE_AOCEC S5_AO2REE4
#define S5_AO2REE_LED S5_AO2REE5
#define S5_AO2REE_ETH S5_AO2REE6
#define S5_AO2REE_SPINLOCK S5_AO2REE7
/* ARMREE to AOCPU client ID */
#define S5_REE2AO_DRV S5_REE2AO0
#define S5_REE2AO_DEV S5_REE2AO1
#define S5_REE2AO_VRTC S5_REE2AO2
#define S5_REE2AO_RTC S5_REE2AO3
#define S5_REE2AO_KEYPAD S5_REE2AO4
#define S5_REE2AO_AOCEC S5_REE2AO5
#define S5_REE2AO_LED S5_REE2AO6
#define S5_REE2AO_ETH S5_REE2AO7
#define S5_REE2AO_SPINLOCK S5_REE2AO8
#define S5_REE2AO_IR S5_REE2AO9
#define S5_REE2AO_ALIVE_MSG S5_REE2AO10
/* MBOX CHANNEL ID */
#define S5_MBOX_AO2REE 2
#define S5_MBOX_REE2AO 3
#define S5_MBOX_NUMS 2
/* AOCPU STATUS MBOX CHANNEL ID */
#define S5_AOCPU_STS_CHAN 4
#endif /* __S5_MBOX_H__ */