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