]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/include/asm/arch-spear/spr_ssp.h
Merge branch 'master' of git://git.denx.de/u-boot-microblaze
[karo-tx-uboot.git] / arch / arm / include / asm / arch-spear / spr_ssp.h
1 /*
2  * Copyright (C) 2012 Stefan Roese <sr@denx.de>
3  *
4  * See file CREDITS for list of people who contributed to this
5  * project.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 2 of
10  * the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20  * MA 02111-1307 USA
21  */
22
23 #ifndef _SPR_SSP_H
24 #define _SPR_SSP_H
25
26 struct ssp_regs {
27         u32 sspcr0;
28         u32 sspcr1;
29         u32 sspdr;
30         u32 sspsr;
31         u32 sspcpsr;
32         u32 sspimsc;
33         u32 sspicr;
34         u32 sspdmacr;
35 };
36
37 #define SSPCR0_FRF_MOT_SPI      0x0000
38 #define SSPCR0_DSS_16BITS       0x000f
39
40 #define SSPCR1_SSE              0x0002
41
42 #define SSPSR_TNF               0x2
43 #define SSPSR_TFE               0x1
44
45 #endif