blob: 7b1cf35d3ab85526ea991a1f47a1b53de6663a49 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Vipin KUMAR9ab7f852010-01-15 19:15:51 +05302/*
3 * (C) Copyright 2009
4 * Ryan CHEN, ST Micoelectronics, ryan.chen@st.com
Vipin KUMAR9ab7f852010-01-15 19:15:51 +05305 */
6
7#ifndef __SPEAR_EMI_H__
8#define __SPEAR_EMI_H__
9
10#ifdef CONFIG_SPEAR_EMI
11
12struct emi_bank_regs {
13 u32 tap;
14 u32 tsdp;
15 u32 tdpw;
16 u32 tdpr;
17 u32 tdcs;
18 u32 control;
19};
20
21struct 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