]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/powerpc/include/asm/mpc8xxx_spi.h
SPDX: Convert all of our single license tags to Linux Kernel style
[thirdparty/u-boot.git] / arch / powerpc / include / asm / mpc8xxx_spi.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0 */
04a9e118
BW
2/*
3 * Freescale non-CPM SPI Controller
4 *
5 * Copyright 2008 Qstreams Networks, Inc.
04a9e118
BW
6 */
7
8#ifndef _ASM_MPC8XXX_SPI_H_
9#define _ASM_MPC8XXX_SPI_H_
10
11#include <asm/types.h>
12
7c619ddc 13#if defined(CONFIG_MPC8308) || \
04a9e118
BW
14 defined(CONFIG_MPC8313) || \
15 defined(CONFIG_MPC8315) || \
7c619ddc 16 defined(CONFIG_MPC834x) || \
2c7920af 17 defined(CONFIG_MPC837x)
04a9e118 18
2956acd5 19typedef struct spi8xxx {
04a9e118
BW
20 u8 res0[0x20]; /* 0x0-0x01f reserved */
21 u32 mode; /* mode register */
22 u32 event; /* event register */
23 u32 mask; /* mask register */
24 u32 com; /* command register */
25 u32 tx; /* transmit register */
26 u32 rx; /* receive register */
cfe5ca77 27 u8 res1[0xFC8]; /* fill up to 0x1000 */
04a9e118
BW
28} spi8xxx_t;
29
30#endif
31
32#endif /* _ASM_MPC8XXX_SPI_H_ */