blob: c6af9ce631c190b4f4653f6a3cdc1fe93debaa0c [file] [log] [blame]
Konstantin Porotchkin7134b352021-01-17 17:19:49 +02001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2018 - 2021 Marvell International Ltd.
4 */
5/* Common definitions used by Armada 8K DTs */
6
7/* This defines used to calculate the base address of each CP */
8#define CP110_BASE_OFFSET (0xf2000000)
9#define CP110_SPACE_SIZE (0x02000000)
10#define CP110_BASE (CP110_BASE_OFFSET + \
11 ((CP110_NUM % 2) * CP110_SPACE_SIZE))
12
13#define CP110_PCIE_MEM_SIZE(iface) (0xf00000)
14#define CP110_PCIEx_CPU_MEM_BASE(iface) \
15 (0xf6000000 + (CP110_NUM % 2) * 0x4000000 + (iface) * 0x1000000)
16#define CP110_PCIEx_BUS_MEM_BASE(iface) \
17 (CP110_PCIEx_CPU_MEM_BASE(iface))
18#define CP110_PCIE_BUS_MEM_CFG (0x82000000)