blob: 444b56606a7de19b4e9d9d232063ea9f5f2a2f7b [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Mingkai Hu0e58b512015-10-26 19:47:50 +08002/*
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +05303 * Copyright 2017-2018, 2020 NXP
Mingkai Hu0e58b512015-10-26 19:47:50 +08004 * Copyright 2014-2015, Freescale Semiconductor
Mingkai Hu0e58b512015-10-26 19:47:50 +08005 */
6
7#ifndef _FSL_LAYERSCAPE_CPU_H
8#define _FSL_LAYERSCAPE_CPU_H
9
Mingkai Hu0e58b512015-10-26 19:47:50 +080010#ifdef CONFIG_FSL_LSCH3
Tom Rini364d0022023-01-10 11:19:45 -050011#define CFG_SYS_FSL_CCSR_BASE 0x00000000
12#define CFG_SYS_FSL_CCSR_SIZE 0x10000000
Tom Rini376b88a2022-10-28 20:27:13 -040013#define CFG_SYS_FSL_QSPI_BASE1 0x20000000
Tom Rini364d0022023-01-10 11:19:45 -050014#define CFG_SYS_FSL_QSPI_SIZE1 0x10000000
Priyanka Jain88c25662018-10-29 09:11:29 +000015#ifndef CONFIG_NXP_LSCH3_2
Tom Rini364d0022023-01-10 11:19:45 -050016#define CFG_SYS_FSL_IFC_BASE1 0x30000000
17#define CFG_SYS_FSL_IFC_SIZE1 0x10000000
18#define CFG_SYS_FSL_IFC_SIZE1_1 0x400000
Priyanka Jain88c25662018-10-29 09:11:29 +000019#endif
Tom Rini364d0022023-01-10 11:19:45 -050020#define CFG_SYS_FSL_DRAM_BASE1 0x80000000
21#define CFG_SYS_FSL_DRAM_SIZE1 0x80000000
Tom Rini376b88a2022-10-28 20:27:13 -040022#define CFG_SYS_FSL_QSPI_BASE2 0x400000000
Tom Rini364d0022023-01-10 11:19:45 -050023#define CFG_SYS_FSL_QSPI_SIZE2 0x100000000
Priyanka Jain88c25662018-10-29 09:11:29 +000024#ifndef CONFIG_NXP_LSCH3_2
Tom Rini364d0022023-01-10 11:19:45 -050025#define CFG_SYS_FSL_IFC_BASE2 0x500000000
26#define CFG_SYS_FSL_IFC_SIZE2 0x100000000
Priyanka Jain88c25662018-10-29 09:11:29 +000027#endif
Tom Rini364d0022023-01-10 11:19:45 -050028#define CFG_SYS_FSL_DCSR_BASE 0x700000000
29#define CFG_SYS_FSL_DCSR_SIZE 0x40000000
30#define CFG_SYS_FSL_MC_BASE 0x80c000000
31#define CFG_SYS_FSL_MC_SIZE 0x4000000
32#define CFG_SYS_FSL_NI_BASE 0x810000000
33#define CFG_SYS_FSL_NI_SIZE 0x8000000
34#define CFG_SYS_FSL_QBMAN_BASE 0x818000000
35#define CFG_SYS_FSL_QBMAN_SIZE 0x8000000
36#define CFG_SYS_FSL_QBMAN_SIZE_1 0x4000000
Hou Zhiqiang65eb1942019-04-08 10:15:37 +000037#ifdef CONFIG_ARCH_LS2080A
Tom Rini56af6592022-11-16 13:10:33 -050038#define CFG_SYS_PCIE1_PHYS_SIZE 0x200000000
39#define CFG_SYS_PCIE2_PHYS_SIZE 0x200000000
40#define CFG_SYS_PCIE3_PHYS_SIZE 0x200000000
41#define CFG_SYS_PCIE4_PHYS_SIZE 0x200000000
Hou Zhiqiang65eb1942019-04-08 10:15:37 +000042#else
Tom Rini56af6592022-11-16 13:10:33 -050043#define CFG_SYS_PCIE1_PHYS_SIZE 0x800000000
44#define CFG_SYS_PCIE2_PHYS_SIZE 0x800000000
45#ifndef CFG_SYS_PCIE3_PHYS_SIZE
46#define CFG_SYS_PCIE3_PHYS_SIZE 0x800000000
Alex Marginean0d5ed8f2019-06-07 17:03:07 +030047#endif
Tom Rini56af6592022-11-16 13:10:33 -050048#define CFG_SYS_PCIE4_PHYS_SIZE 0x800000000
Hou Zhiqiangd08f9702019-04-08 10:15:41 +000049#define SYS_PCIE5_PHYS_SIZE 0x800000000
50#define SYS_PCIE6_PHYS_SIZE 0x800000000
Hou Zhiqiang65eb1942019-04-08 10:15:37 +000051#endif
Tom Rini364d0022023-01-10 11:19:45 -050052#define CFG_SYS_FSL_WRIOP1_BASE 0x4300000000
53#define CFG_SYS_FSL_WRIOP1_SIZE 0x100000000
54#define CFG_SYS_FSL_AIOP1_BASE 0x4b00000000
55#define CFG_SYS_FSL_AIOP1_SIZE 0x100000000
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +053056#if !defined(CONFIG_ARCH_LX2160A) || !defined(CONFIG_ARCH_LX2162)
Tom Rini364d0022023-01-10 11:19:45 -050057#define CFG_SYS_FSL_PEBUF_BASE 0x4c00000000
Priyanka Jainb795ff02018-11-28 09:56:46 +000058#else
Tom Rini364d0022023-01-10 11:19:45 -050059#define CFG_SYS_FSL_PEBUF_BASE 0x1c00000000
Priyanka Jainb795ff02018-11-28 09:56:46 +000060#endif
Tom Rini364d0022023-01-10 11:19:45 -050061#define CFG_SYS_FSL_PEBUF_SIZE 0x400000000
Priyanka Jain88c25662018-10-29 09:11:29 +000062#ifdef CONFIG_NXP_LSCH3_2
Tom Rini364d0022023-01-10 11:19:45 -050063#define CFG_SYS_FSL_DRAM_BASE2 0x2080000000
64#define CFG_SYS_FSL_DRAM_SIZE2 0x1F80000000
65#define CFG_SYS_FSL_DRAM_BASE3 0x6000000000
66#define CFG_SYS_FSL_DRAM_SIZE3 0x2000000000
Priyanka Jain88c25662018-10-29 09:11:29 +000067#else
Tom Rini364d0022023-01-10 11:19:45 -050068#define CFG_SYS_FSL_DRAM_BASE2 0x8080000000
69#define CFG_SYS_FSL_DRAM_SIZE2 0x7F80000000
Priyanka Jain88c25662018-10-29 09:11:29 +000070#endif
Mingkai Hue4e93ea2015-10-26 19:47:51 +080071#elif defined(CONFIG_FSL_LSCH2)
Tom Rini364d0022023-01-10 11:19:45 -050072#define CFG_SYS_FSL_CCSR_BASE 0x1000000
73#define CFG_SYS_FSL_CCSR_SIZE 0xf000000
74#define CFG_SYS_FSL_DCSR_BASE 0x20000000
75#define CFG_SYS_FSL_DCSR_SIZE 0x4000000
Tom Rini376b88a2022-10-28 20:27:13 -040076#define CFG_SYS_FSL_QSPI_BASE 0x40000000
Tom Rini364d0022023-01-10 11:19:45 -050077#define CFG_SYS_FSL_QSPI_SIZE 0x20000000
78#define CFG_SYS_FSL_IFC_BASE 0x60000000
79#define CFG_SYS_FSL_IFC_SIZE 0x20000000
80#define CFG_SYS_FSL_DRAM_BASE1 0x80000000
81#define CFG_SYS_FSL_DRAM_SIZE1 0x80000000
82#define CFG_SYS_FSL_QBMAN_BASE 0x500000000
83#define CFG_SYS_FSL_QBMAN_SIZE 0x10000000
84#define CFG_SYS_FSL_DRAM_BASE2 0x880000000
85#define CFG_SYS_FSL_DRAM_SIZE2 0x780000000 /* 30GB */
Tom Rini56af6592022-11-16 13:10:33 -050086#define CFG_SYS_PCIE1_PHYS_SIZE 0x800000000
87#define CFG_SYS_PCIE2_PHYS_SIZE 0x800000000
88#define CFG_SYS_PCIE3_PHYS_SIZE 0x800000000
Tom Rini364d0022023-01-10 11:19:45 -050089#define CFG_SYS_FSL_DRAM_BASE3 0x8800000000
90#define CFG_SYS_FSL_DRAM_SIZE3 0x7800000000 /* 480GB */
Mingkai Hu0e58b512015-10-26 19:47:50 +080091#endif
92
Mingkai Hu0e58b512015-10-26 19:47:50 +080093int fsl_qoriq_core_to_cluster(unsigned int core);
94u32 cpu_mask(void);
Simon Glass243182c2017-05-17 08:23:06 -060095
Mingkai Hu0e58b512015-10-26 19:47:50 +080096#endif /* _FSL_LAYERSCAPE_CPU_H */