Stefan Roese | c6bc1db | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Stefan Roese <sr@denx.de> |
| 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | c6bc1db | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _SPR_SSP_H |
| 8 | #define _SPR_SSP_H |
| 9 | |
| 10 | struct ssp_regs { |
| 11 | u32 sspcr0; |
| 12 | u32 sspcr1; |
| 13 | u32 sspdr; |
| 14 | u32 sspsr; |
| 15 | u32 sspcpsr; |
| 16 | u32 sspimsc; |
| 17 | u32 sspicr; |
| 18 | u32 sspdmacr; |
| 19 | }; |
| 20 | |
| 21 | #define SSPCR0_FRF_MOT_SPI 0x0000 |
| 22 | #define SSPCR0_DSS_16BITS 0x000f |
| 23 | |
| 24 | #define SSPCR1_SSE 0x0002 |
| 25 | |
| 26 | #define SSPSR_TNF 0x2 |
| 27 | #define SSPSR_TFE 0x1 |
| 28 | |
| 29 | #endif |