/*-1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright (c) 2013 Rui Paulo <[email protected]>4* All rights reserved.5*6* Redistribution and use in source and binary forms, with or without7* modification, are permitted provided that the following conditions8* are met:9* 1. Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer.11* 2. Redistributions in binary form must reproduce the above copyright12* notice, this list of conditions and the following disclaimer in the13* documentation and/or other materials provided with the distribution.14*15* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR16* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED17* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE18* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,19* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES20* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR21* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)22* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,23* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN24* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE25* POSSIBILITY OF SUCH DAMAGE.26*/2728#ifndef _TI_MBOX_H_29#define _TI_MBOX_H_3031#define TI_MBOX_REVISION 0x0032#define TI_MBOX_SYSCONFIG 0x1033#define TI_MBOX_SYSCONFIG_SOFTRST 0x0134#define TI_MBOX_SYSCONFIG_SMARTIDLE (0x02 << 2)35#define TI_MBOX_MESSAGE(n) (0x40 + (n) * 0x4)36#define TI_MBOX_FIFOSTATUS(n) (0x80 + (n) * 0x4)37#define TI_MBOX_MSGSTATUS(n) (0xc0 + (n) * 0x4)38#define TI_MBOX_IRQSTATUS_RAW(n) (0x100 + (n) * 0x10)39#define TI_MBOX_IRQSTATUS_CLR(n) (0x104 + (n) * 0x10)40#define TI_MBOX_IRQENABLE_SET(n) (0x108 + (n) * 0x10)41#define TI_MBOX_IRQENABLE_CLR(n) (0x10c + (n) * 0x10)4243#endif /* _TI_MBOX_H_ */444546