--- u-boot_orig/arch/arm/cpu/astcommon/regs-pcie.h 1969-12-31 19:00:00.000000000 -0500 +++ u-boot_mod/arch/arm/cpu/astcommon/regs-pcie.h 2015-12-23 20:01:04.164568394 -0500 @@ -0,0 +1,53 @@ +/* arch/arm/mach-aspeed/include/mach/regs-ast1010-scu.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_PCIE_H +#define __AST_PCIE_H 1 + +/* + * Register for PCIE + * */ +#define AST_PCIE_CFG2 0x04 +#define AST_PCIE_GLOBAL 0x30 +#define AST_PCIE_LOCK 0x7C + +#define AST_PCIE_LINK 0xC0 +#define AST_PCIE_INT 0xC4 + +/* AST_PCIE_CFG2 0x04 */ +#define PCIE_CFG_CLASS_CODE(x) (x << 8) +#define PCIE_CFG_REV_ID(x) (x) + + +/* AST_PCIE_GLOBAL 0x30 */ +#define ROOT_COMPLEX_ID(x) (x << 4) + + +/* AST_PCIE_LOCK 0x7C */ +#define PCIE_UNLOCK 0xa8 + +/* AST_PCIE_LINK 0xC0 */ +#define PCIE_LINK_STS (1 << 5) + +/* AST_PCIE_INT 0xC4 */ +#define PCIE_INTA (1 << 13) +#define PCIE_INTB (1 << 12) +#define PCIE_INTC (1 << 11) +#define PCIE_INTD (1 << 10) + +#define AST_PCIE_NONP_MEM_BASE AST_PCIE0_WIN_BASE0 +#define AST_PCIE_NONP_MEM_SIZE AST_PCIE0_WIN_SIZE0 +#define AST_PCIE_PREF_MEM_BASE 0x0 +#define AST_PCIE_PREF_MEM_SIZE 0x0 + +#endif +