162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * SPEAr3xx/6xx Machine family specific definition 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 2009,2012 ST Microelectronics 662306a36Sopenharmony_ci * Rajeev Kumar<rajeev-dlh.kumar@st.com> 762306a36Sopenharmony_ci * Viresh Kumar <vireshk@kernel.org> 862306a36Sopenharmony_ci */ 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#ifndef __MACH_SPEAR_H 1162306a36Sopenharmony_ci#define __MACH_SPEAR_H 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci#include <asm/page.h> 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci#if defined(CONFIG_ARCH_SPEAR3XX) || defined (CONFIG_ARCH_SPEAR6XX) 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci/* ICM1 - Low speed connection */ 1862306a36Sopenharmony_ci#define SPEAR_ICM1_2_BASE UL(0xD0000000) 1962306a36Sopenharmony_ci#define VA_SPEAR_ICM1_2_BASE IOMEM(0xFD000000) 2062306a36Sopenharmony_ci#define SPEAR_ICM1_UART_BASE UL(0xD0000000) 2162306a36Sopenharmony_ci#define VA_SPEAR_ICM1_UART_BASE (VA_SPEAR_ICM1_2_BASE - SPEAR_ICM1_2_BASE + SPEAR_ICM1_UART_BASE) 2262306a36Sopenharmony_ci#define SPEAR3XX_ICM1_SSP_BASE UL(0xD0100000) 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci/* ML-1, 2 - Multi Layer CPU Subsystem */ 2562306a36Sopenharmony_ci#define SPEAR_ICM3_ML1_2_BASE UL(0xF0000000) 2662306a36Sopenharmony_ci#define VA_SPEAR6XX_ML_CPU_BASE IOMEM(0xF0000000) 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci/* ICM3 - Basic Subsystem */ 2962306a36Sopenharmony_ci#define SPEAR_ICM3_SMI_CTRL_BASE UL(0xFC000000) 3062306a36Sopenharmony_ci#define VA_SPEAR_ICM3_SMI_CTRL_BASE IOMEM(0xFC000000) 3162306a36Sopenharmony_ci#define SPEAR_ICM3_DMA_BASE UL(0xFC400000) 3262306a36Sopenharmony_ci#define SPEAR_ICM3_SYS_CTRL_BASE UL(0xFCA00000) 3362306a36Sopenharmony_ci#define VA_SPEAR_ICM3_SYS_CTRL_BASE (VA_SPEAR_ICM3_SMI_CTRL_BASE - SPEAR_ICM3_SMI_CTRL_BASE + SPEAR_ICM3_SYS_CTRL_BASE) 3462306a36Sopenharmony_ci#define SPEAR_ICM3_MISC_REG_BASE UL(0xFCA80000) 3562306a36Sopenharmony_ci#define VA_SPEAR_ICM3_MISC_REG_BASE (VA_SPEAR_ICM3_SMI_CTRL_BASE - SPEAR_ICM3_SMI_CTRL_BASE + SPEAR_ICM3_MISC_REG_BASE) 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci/* Debug uart for linux, will be used for debug and uncompress messages */ 3862306a36Sopenharmony_ci#define SPEAR_DBG_UART_BASE SPEAR_ICM1_UART_BASE 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci/* Sysctl base for spear platform */ 4162306a36Sopenharmony_ci#define SPEAR_SYS_CTRL_BASE SPEAR_ICM3_SYS_CTRL_BASE 4262306a36Sopenharmony_ci#define VA_SPEAR_SYS_CTRL_BASE VA_SPEAR_ICM3_SYS_CTRL_BASE 4362306a36Sopenharmony_ci#endif /* SPEAR3xx || SPEAR6XX */ 4462306a36Sopenharmony_ci 4562306a36Sopenharmony_ci/* SPEAr320 Macros */ 4662306a36Sopenharmony_ci#define SPEAR320_SOC_CONFIG_BASE UL(0xB3000000) 4762306a36Sopenharmony_ci#define VA_SPEAR320_SOC_CONFIG_BASE IOMEM(0xFE000000) 4862306a36Sopenharmony_ci 4962306a36Sopenharmony_ci#ifdef CONFIG_ARCH_SPEAR13XX 5062306a36Sopenharmony_ci 5162306a36Sopenharmony_ci#define PERIP_GRP2_BASE UL(0xB3000000) 5262306a36Sopenharmony_ci#define VA_PERIP_GRP2_BASE IOMEM(0xF9000000) 5362306a36Sopenharmony_ci#define MCIF_SDHCI_BASE UL(0xB3000000) 5462306a36Sopenharmony_ci#define SYSRAM0_BASE UL(0xB3800000) 5562306a36Sopenharmony_ci#define VA_SYSRAM0_BASE IOMEM(0xF9800000) 5662306a36Sopenharmony_ci#define SYS_LOCATION (VA_SYSRAM0_BASE + 0x600) 5762306a36Sopenharmony_ci 5862306a36Sopenharmony_ci#define PERIP_GRP1_BASE UL(0xE0000000) 5962306a36Sopenharmony_ci#define VA_PERIP_GRP1_BASE IOMEM(0xFD000000) 6062306a36Sopenharmony_ci#define UART_BASE UL(0xE0000000) 6162306a36Sopenharmony_ci#define VA_UART_BASE IOMEM(0xFD000000) 6262306a36Sopenharmony_ci#define SSP_BASE UL(0xE0100000) 6362306a36Sopenharmony_ci#define MISC_BASE UL(0xE0700000) 6462306a36Sopenharmony_ci#define VA_MISC_BASE IOMEM(0xFD700000) 6562306a36Sopenharmony_ci 6662306a36Sopenharmony_ci#define A9SM_AND_MPMC_BASE UL(0xEC000000) 6762306a36Sopenharmony_ci#define VA_A9SM_AND_MPMC_BASE IOMEM(0xFC000000) 6862306a36Sopenharmony_ci 6962306a36Sopenharmony_ci#define SPEAR1310_RAS_BASE UL(0xD8400000) 7062306a36Sopenharmony_ci#define VA_SPEAR1310_RAS_BASE IOMEM(UL(0xFA400000)) 7162306a36Sopenharmony_ci 7262306a36Sopenharmony_ci/* A9SM peripheral offsets */ 7362306a36Sopenharmony_ci#define A9SM_PERIP_BASE UL(0xEC800000) 7462306a36Sopenharmony_ci#define VA_A9SM_PERIP_BASE IOMEM(0xFC800000) 7562306a36Sopenharmony_ci#define VA_SCU_BASE (VA_A9SM_PERIP_BASE + 0x00) 7662306a36Sopenharmony_ci 7762306a36Sopenharmony_ci#define L2CC_BASE UL(0xED000000) 7862306a36Sopenharmony_ci#define VA_L2CC_BASE IOMEM(UL(0xFB000000)) 7962306a36Sopenharmony_ci 8062306a36Sopenharmony_ci/* others */ 8162306a36Sopenharmony_ci#define MCIF_CF_BASE UL(0xB2800000) 8262306a36Sopenharmony_ci 8362306a36Sopenharmony_ci/* Debug uart for linux, will be used for debug and uncompress messages */ 8462306a36Sopenharmony_ci#define SPEAR_DBG_UART_BASE UART_BASE 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_ci#endif /* SPEAR13XX */ 8762306a36Sopenharmony_ci 8862306a36Sopenharmony_ci#endif /* __MACH_SPEAR_H */ 89