xref: /openbmc/u-boot/arch/arm/include/asm/arch-spear/spr_ssp.h (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1  /* SPDX-License-Identifier: GPL-2.0+ */
2  /*
3   * Copyright (C) 2012 Stefan Roese <sr@denx.de>
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
29