1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Ryan CHEN, ST Micoelectronics, ryan.chen@st.com
7 #ifndef __SPEAR_EMI_H__
8 #define __SPEAR_EMI_H__
10 #ifdef CONFIG_SPEAR_EMI
12 struct emi_bank_regs {
22 struct emi_bank_regs bank_regs[CONFIG_SYS_MAX_FLASH_BANKS];
28 #define EMI_ACKMSK 0x40
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)