Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Ben Warren | 7efe927 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 2 | /* |
| 3 | * Freescale non-CPM SPI Controller |
| 4 | * |
| 5 | * Copyright 2008 Qstreams Networks, Inc. |
Ben Warren | 7efe927 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _ASM_MPC8XXX_SPI_H_ |
| 9 | #define _ASM_MPC8XXX_SPI_H_ |
| 10 | |
| 11 | #include <asm/types.h> |
| 12 | |
Mario Six | b2e701c | 2019-01-21 09:17:24 +0100 | [diff] [blame] | 13 | #if defined(CONFIG_ARCH_MPC8308) || \ |
Rasmus Villemoes | 4d30b76 | 2019-12-12 08:35:49 +0000 | [diff] [blame] | 14 | defined(CONFIG_ARCH_MPC8309) || \ |
Mario Six | 9164bdd | 2019-01-21 09:17:25 +0100 | [diff] [blame] | 15 | defined(CONFIG_ARCH_MPC8313) || \ |
| 16 | defined(CONFIG_ARCH_MPC8315) || \ |
Mario Six | 0344f5e | 2019-01-21 09:17:27 +0100 | [diff] [blame] | 17 | defined(CONFIG_ARCH_MPC834X) || \ |
Mario Six | 60b1123 | 2019-01-21 09:17:29 +0100 | [diff] [blame] | 18 | defined(CONFIG_ARCH_MPC837X) |
Ben Warren | 7efe927 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 19 | |
Kim Phillips | b8e2520 | 2008-01-17 12:48:00 -0600 | [diff] [blame] | 20 | typedef struct spi8xxx { |
Ben Warren | 7efe927 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 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 */ |
Dave Liu | 3c627e8 | 2008-01-18 10:07:04 +0800 | [diff] [blame] | 28 | u8 res1[0xFC8]; /* fill up to 0x1000 */ |
Ben Warren | 7efe927 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 29 | } spi8xxx_t; |
| 30 | |
| 31 | #endif |
| 32 | |
| 33 | #endif /* _ASM_MPC8XXX_SPI_H_ */ |