blob: b040256ba490ea028129db3258a5ed1699ba8794 [file] [log] [blame]
Bo Shen7a0b92a2014-12-15 13:24:29 +08001/*
2 * Special Function Register (SFR)
3 *
4 * Copyright (C) 2014 Atmel
5 * Bo Shen <voice.shen@atmel.com>
6 *
7 * SPDX-License-Identifier: GPL-2.0+
8 */
9
10#ifndef __SAMA5_SFR_H
11#define __SAMA5_SFR_H
12
13struct atmel_sfr {
14 u32 reserved1; /* 0x00 */
15 u32 ddrcfg; /* 0x04: DDR Configuration Register */
16 u32 reserved2; /* 0x08 */
17 u32 reserved3; /* 0x0c */
18 u32 ohciicr; /* 0x10: OHCI Interrupt Configuration Register */
19 u32 ohciisr; /* 0x14: OHCI Interrupt Status Register */
20 u32 reserved4[4]; /* 0x18 ~ 0x24 */
21 u32 secure; /* 0x28: Security Configuration Register */
22 u32 reserved5[5]; /* 0x2c ~ 0x3c */
23 u32 ebicfg; /* 0x40: EBI Configuration Register */
24 u32 reserved6[2]; /* 0x44 ~ 0x48 */
25 u32 sn0; /* 0x4c */
26 u32 sn1; /* 0x50 */
27 u32 aicredir; /* 0x54 */
Samuel Mescoffc3156fc2016-02-16 09:45:06 +010028 u32 l2cc_hramc; /* 0x58 */
Bo Shen7a0b92a2014-12-15 13:24:29 +080029};
30
31/* Bit field in DDRCFG */
32#define ATMEL_SFR_DDRCFG_FDQIEN 0x00010000
33#define ATMEL_SFR_DDRCFG_FDQSIEN 0x00020000
34
35/* Bit field in AICREDIR */
Bo Shen7a0b92a2014-12-15 13:24:29 +080036#define ATMEL_SFR_AICREDIR_NSAIC 0x00000001
37
38#endif