Ben Warren | 7efe927 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Freescale non-CPM SPI Controller |
| 3 | * |
| 4 | * Copyright 2008 Qstreams Networks, Inc. |
| 5 | * |
| 6 | * This software may be used and distributed according to the |
| 7 | * terms of the GNU Public License, Version 2, incorporated |
| 8 | * herein by reference. |
| 9 | * |
| 10 | * This program is free software; you can redistribute it and/or |
| 11 | * modify it under the terms of the GNU General Public License |
| 12 | * Version 2 as published by the Free Software Foundation. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program; if not, write to the Free Software |
| 21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 22 | * MA 02111-1307 USA |
| 23 | */ |
| 24 | |
| 25 | #ifndef _ASM_MPC8XXX_SPI_H_ |
| 26 | #define _ASM_MPC8XXX_SPI_H_ |
| 27 | |
| 28 | #include <asm/types.h> |
| 29 | |
Peter Tyser | 72f2d39 | 2009-05-22 17:23:25 -0500 | [diff] [blame^] | 30 | #if defined(CONFIG_MPC834x) || \ |
Ben Warren | 7efe927 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 31 | defined(CONFIG_MPC8313) || \ |
| 32 | defined(CONFIG_MPC8315) || \ |
Peter Tyser | 72f2d39 | 2009-05-22 17:23:25 -0500 | [diff] [blame^] | 33 | defined(CONFIG_MPC837x) |
Ben Warren | 7efe927 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 34 | |
Kim Phillips | b8e2520 | 2008-01-17 12:48:00 -0600 | [diff] [blame] | 35 | typedef struct spi8xxx { |
Ben Warren | 7efe927 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 36 | u8 res0[0x20]; /* 0x0-0x01f reserved */ |
| 37 | u32 mode; /* mode register */ |
| 38 | u32 event; /* event register */ |
| 39 | u32 mask; /* mask register */ |
| 40 | u32 com; /* command register */ |
| 41 | u32 tx; /* transmit register */ |
| 42 | u32 rx; /* receive register */ |
Dave Liu | 3c627e8 | 2008-01-18 10:07:04 +0800 | [diff] [blame] | 43 | u8 res1[0xFC8]; /* fill up to 0x1000 */ |
Ben Warren | 7efe927 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 44 | } spi8xxx_t; |
| 45 | |
| 46 | #endif |
| 47 | |
| 48 | #endif /* _ASM_MPC8XXX_SPI_H_ */ |