Merge tag 'ti-v2020.07-rc3' of https://gitlab.denx.de/u-boot/custodians/u-boot-ti
[oweals/u-boot.git] / arch / arm / include / asm / arch-spear / spr_emi.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2009
4  * Ryan CHEN, ST Micoelectronics, ryan.chen@st.com
5  */
6
7 #ifndef __SPEAR_EMI_H__
8 #define __SPEAR_EMI_H__
9
10 #ifdef CONFIG_SPEAR_EMI
11
12 struct emi_bank_regs {
13         u32 tap;
14         u32 tsdp;
15         u32 tdpw;
16         u32 tdpr;
17         u32 tdcs;
18         u32 control;
19 };
20
21 struct emi_regs {
22         struct emi_bank_regs bank_regs[CONFIG_SYS_MAX_FLASH_BANKS];
23         u32 tout;
24         u32 ack;
25         u32 irq;
26 };
27
28 #define EMI_ACKMSK              0x40
29
30 /* control register definitions */
31 #define EMI_CNTL_ENBBYTEW       (1 << 2)
32 #define EMI_CNTL_ENBBYTER       (1 << 3)
33 #define EMI_CNTL_ENBBYTERW      (EMI_CNTL_ENBBYTER | EMI_CNTL_ENBBYTEW)
34
35 #endif
36
37 #endif