1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Freescale non-CPM SPI Controller
4  *
5  * Copyright 2008 Qstreams Networks, Inc.
6  */
7 
8 #ifndef _ASM_MPC8XXX_SPI_H_
9 #define _ASM_MPC8XXX_SPI_H_
10 
11 #include <asm/types.h>
12 
13 #if defined(CONFIG_ARCH_MPC8308) || \
14 	defined(CONFIG_ARCH_MPC8309) || \
15 	defined(CONFIG_ARCH_MPC8313) || \
16 	defined(CONFIG_ARCH_MPC8315) || \
17 	defined(CONFIG_ARCH_MPC834X) || \
18 	defined(CONFIG_ARCH_MPC837X)
19 
20 typedef struct spi8xxx {
21 	u8 res0[0x20];	/* 0x0-0x01f reserved */
22 	u32 mode;	/* mode register  */
23 	u32 event;	/* event register */
24 	u32 mask;	/* mask register  */
25 	u32 com;	/* command register */
26 	u32 tx;		/* transmit register */
27 	u32 rx;		/* receive register */
28 	u8 res1[0xFC8];	/* fill up to 0x1000 */
29 } spi8xxx_t;
30 
31 #endif
32 
33 #endif	/* _ASM_MPC8XXX_SPI_H_ */
34