blob: 2cc26d29aa9e9855e8134bd55560669552971f28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/* arch/arm/mach-aspeed/include/mach/regs-sdmc.h
*
* Copyright (C) 2012-2020 ASPEED Technology Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* History :
* 1. 2012/12/29 Ryan Chen Create
*
******************************************************************************/
#ifndef __AST_REGS_SDMC_H
#define __AST_REGS_SDMC_H
/*
* Register for SDMC
*/
#define AST_SDMC_PROTECT 0x00 /* protection key register */
#define AST_SDMC_CONFIG 0x04 /* Configuration register */
/* AST_SDMC_PROTECT: 0x00 - protection key register */
#define SDMC_PROTECT_UNLOCK 0xFC600309
/* AST_SDMC_CONFIG : 0x04 - Configuration register */
#define SDMC_CONFIG_VER_NEW (0x1 << 28)
#define SDMC_CONFIG_MEM_GET(x) (x & 0x3)
#define SDMC_CONFIG_CACHE_EN (0x1 << 10)
#define SDMC_CONFIG_EEC_EN (0x1 << 7)
#endif
|