162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright 2008 Openmoko, Inc.
462306a36Sopenharmony_ci * Copyright 2008 Simtec Electronics
562306a36Sopenharmony_ci *	http://armlinux.simtec.co.uk/
662306a36Sopenharmony_ci *	Ben Dooks <ben@simtec.co.uk>
762306a36Sopenharmony_ci *
862306a36Sopenharmony_ci * S3C64XX - Memory map definitions
962306a36Sopenharmony_ci */
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#ifndef __ASM_ARCH_MAP_H
1262306a36Sopenharmony_ci#define __ASM_ARCH_MAP_H __FILE__
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci#include "map-base.h"
1562306a36Sopenharmony_ci#include "map-s3c.h"
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci/*
1862306a36Sopenharmony_ci * Post-mux Chip Select Regions Xm0CSn_
1962306a36Sopenharmony_ci * These may be used by SROM, NAND or CF depending on settings
2062306a36Sopenharmony_ci */
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci#define S3C64XX_PA_XM0CSN0 (0x10000000)
2362306a36Sopenharmony_ci#define S3C64XX_PA_XM0CSN1 (0x18000000)
2462306a36Sopenharmony_ci#define S3C64XX_PA_XM0CSN2 (0x20000000)
2562306a36Sopenharmony_ci#define S3C64XX_PA_XM0CSN3 (0x28000000)
2662306a36Sopenharmony_ci#define S3C64XX_PA_XM0CSN4 (0x30000000)
2762306a36Sopenharmony_ci#define S3C64XX_PA_XM0CSN5 (0x38000000)
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci/* HSMMC units */
3062306a36Sopenharmony_ci#define S3C64XX_PA_HSMMC(x)	(0x7C200000 + ((x) * 0x100000))
3162306a36Sopenharmony_ci#define S3C64XX_PA_HSMMC0	S3C64XX_PA_HSMMC(0)
3262306a36Sopenharmony_ci#define S3C64XX_PA_HSMMC1	S3C64XX_PA_HSMMC(1)
3362306a36Sopenharmony_ci#define S3C64XX_PA_HSMMC2	S3C64XX_PA_HSMMC(2)
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci#define S3C_PA_UART		(0x7F005000)
3662306a36Sopenharmony_ci#define S3C_PA_UART0		(S3C_PA_UART + 0x00)
3762306a36Sopenharmony_ci#define S3C_PA_UART1		(S3C_PA_UART + 0x400)
3862306a36Sopenharmony_ci#define S3C_PA_UART2		(S3C_PA_UART + 0x800)
3962306a36Sopenharmony_ci#define S3C_PA_UART3		(S3C_PA_UART + 0xC00)
4062306a36Sopenharmony_ci#define S3C_UART_OFFSET		(0x400)
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ci/* See notes on UART VA mapping in debug-macro.S */
4362306a36Sopenharmony_ci#define S3C_VA_UARTx(x)	(S3C_VA_UART + (S3C_PA_UART & 0xfffff) + ((x) * S3C_UART_OFFSET))
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ci#define S3C_VA_UART0		S3C_VA_UARTx(0)
4662306a36Sopenharmony_ci#define S3C_VA_UART1		S3C_VA_UARTx(1)
4762306a36Sopenharmony_ci#define S3C_VA_UART2		S3C_VA_UARTx(2)
4862306a36Sopenharmony_ci#define S3C_VA_UART3		S3C_VA_UARTx(3)
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ci#define S3C64XX_PA_SROM		(0x70000000)
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ci#define S3C64XX_PA_ONENAND0	(0x70100000)
5362306a36Sopenharmony_ci#define S3C64XX_PA_ONENAND0_BUF	(0x20000000)
5462306a36Sopenharmony_ci#define S3C64XX_SZ_ONENAND0_BUF (SZ_64M)
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ci/* NAND and OneNAND1 controllers occupy the same register region
5762306a36Sopenharmony_ci   (depending on SoC POP version) */
5862306a36Sopenharmony_ci#define S3C64XX_PA_ONENAND1	(0x70200000)
5962306a36Sopenharmony_ci#define S3C64XX_PA_ONENAND1_BUF	(0x28000000)
6062306a36Sopenharmony_ci#define S3C64XX_SZ_ONENAND1_BUF	(SZ_64M)
6162306a36Sopenharmony_ci
6262306a36Sopenharmony_ci#define S3C64XX_PA_NAND		(0x70200000)
6362306a36Sopenharmony_ci#define S3C64XX_PA_FB		(0x77100000)
6462306a36Sopenharmony_ci#define S3C64XX_PA_USB_HSOTG	(0x7C000000)
6562306a36Sopenharmony_ci#define S3C64XX_PA_WATCHDOG	(0x7E004000)
6662306a36Sopenharmony_ci#define S3C64XX_PA_RTC		(0x7E005000)
6762306a36Sopenharmony_ci#define S3C64XX_PA_KEYPAD	(0x7E00A000)
6862306a36Sopenharmony_ci#define S3C64XX_PA_ADC		(0x7E00B000)
6962306a36Sopenharmony_ci#define S3C64XX_PA_SYSCON	(0x7E00F000)
7062306a36Sopenharmony_ci#define S3C64XX_PA_AC97		(0x7F001000)
7162306a36Sopenharmony_ci#define S3C64XX_PA_IIS0		(0x7F002000)
7262306a36Sopenharmony_ci#define S3C64XX_PA_IIS1		(0x7F003000)
7362306a36Sopenharmony_ci#define S3C64XX_PA_TIMER	(0x7F006000)
7462306a36Sopenharmony_ci#define S3C64XX_PA_IIC0		(0x7F004000)
7562306a36Sopenharmony_ci#define S3C64XX_PA_SPI0		(0x7F00B000)
7662306a36Sopenharmony_ci#define S3C64XX_PA_SPI1		(0x7F00C000)
7762306a36Sopenharmony_ci#define S3C64XX_PA_PCM0		(0x7F009000)
7862306a36Sopenharmony_ci#define S3C64XX_PA_PCM1		(0x7F00A000)
7962306a36Sopenharmony_ci#define S3C64XX_PA_IISV4	(0x7F00D000)
8062306a36Sopenharmony_ci#define S3C64XX_PA_IIC1		(0x7F00F000)
8162306a36Sopenharmony_ci
8262306a36Sopenharmony_ci#define S3C64XX_PA_GPIO		(0x7F008000)
8362306a36Sopenharmony_ci#define S3C64XX_SZ_GPIO		SZ_4K
8462306a36Sopenharmony_ci
8562306a36Sopenharmony_ci#define S3C64XX_PA_SDRAM	(0x50000000)
8662306a36Sopenharmony_ci
8762306a36Sopenharmony_ci#define S3C64XX_PA_CFCON	(0x70300000)
8862306a36Sopenharmony_ci
8962306a36Sopenharmony_ci#define S3C64XX_PA_VIC0		(0x71200000)
9062306a36Sopenharmony_ci#define S3C64XX_PA_VIC1		(0x71300000)
9162306a36Sopenharmony_ci
9262306a36Sopenharmony_ci#define S3C64XX_PA_MODEM	(0x74108000)
9362306a36Sopenharmony_ci
9462306a36Sopenharmony_ci#define S3C64XX_PA_USBHOST	(0x74300000)
9562306a36Sopenharmony_ci
9662306a36Sopenharmony_ci#define S3C64XX_PA_USB_HSPHY	(0x7C100000)
9762306a36Sopenharmony_ci
9862306a36Sopenharmony_ci/* compatibility defines. */
9962306a36Sopenharmony_ci#define S3C_PA_TIMER		S3C64XX_PA_TIMER
10062306a36Sopenharmony_ci#define S3C_PA_HSMMC0		S3C64XX_PA_HSMMC0
10162306a36Sopenharmony_ci#define S3C_PA_HSMMC1		S3C64XX_PA_HSMMC1
10262306a36Sopenharmony_ci#define S3C_PA_HSMMC2		S3C64XX_PA_HSMMC2
10362306a36Sopenharmony_ci#define S3C_PA_IIC		S3C64XX_PA_IIC0
10462306a36Sopenharmony_ci#define S3C_PA_IIC1		S3C64XX_PA_IIC1
10562306a36Sopenharmony_ci#define S3C_PA_NAND		S3C64XX_PA_NAND
10662306a36Sopenharmony_ci#define S3C_PA_ONENAND		S3C64XX_PA_ONENAND0
10762306a36Sopenharmony_ci#define S3C_PA_ONENAND_BUF	S3C64XX_PA_ONENAND0_BUF
10862306a36Sopenharmony_ci#define S3C_SZ_ONENAND_BUF	S3C64XX_SZ_ONENAND0_BUF
10962306a36Sopenharmony_ci#define S3C_PA_FB		S3C64XX_PA_FB
11062306a36Sopenharmony_ci#define S3C_PA_USBHOST		S3C64XX_PA_USBHOST
11162306a36Sopenharmony_ci#define S3C_PA_USB_HSOTG	S3C64XX_PA_USB_HSOTG
11262306a36Sopenharmony_ci#define S3C_PA_RTC		S3C64XX_PA_RTC
11362306a36Sopenharmony_ci#define S3C_PA_WDT		S3C64XX_PA_WATCHDOG
11462306a36Sopenharmony_ci#define S3C_PA_SPI0		S3C64XX_PA_SPI0
11562306a36Sopenharmony_ci#define S3C_PA_SPI1		S3C64XX_PA_SPI1
11662306a36Sopenharmony_ci
11762306a36Sopenharmony_ci#define SAMSUNG_PA_ADC		S3C64XX_PA_ADC
11862306a36Sopenharmony_ci#define SAMSUNG_PA_CFCON	S3C64XX_PA_CFCON
11962306a36Sopenharmony_ci#define SAMSUNG_PA_KEYPAD	S3C64XX_PA_KEYPAD
12062306a36Sopenharmony_ci#define SAMSUNG_PA_TIMER	S3C64XX_PA_TIMER
12162306a36Sopenharmony_ci
12262306a36Sopenharmony_ci#endif /* __ASM_ARCH_6400_MAP_H */
123