summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-aspeed/regs-ahbc.h
blob: 4f403c45d3a50963082df898ba8f9edb6d6356e3 (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
33
34
35
36
37
38
/* arch/arm/mach-aspeed/include/mach/regs-ahbc.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_AHBC_H
#define __AST_REGS_AHBC_H

#include <asm/arch/aspeed.h>

/* Registers for AHBC */
#define AST_AHBC_PROTECT		0x00	/* Protection Key Register */
#define AST_AHBC_PRIORITY_CTRL		0x80	/* Priority Cortrol Register */
#define AST_AHBC_ADDR_REMAP		0x8C	/* Address Remapping Register */

/* AST_AHBC_PROTECT	0x00		Protection Key Register 	*/
#define AHBC_PROTECT_UNLOCK		0xAEED1A03

/* AST_AHBC_ADDR_REMAP	0x8C		Address Remapping Register */
#define AHBC_PCI_REMAP1			(1 << 5)
#define AHBC_PCI_REMAP0			(1 << 4)

#if defined(AST_SOC_G5)
#define AHBC_PCIE_MAP			(1 << 5)
#define AHBC_LPC_PLUS_MAP		(1 << 4)
#else
#define AHBC_BOOT_REMAP			1
#endif


#endif
OpenPOWER on IntegriCloud