map.h 3.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* linux/arch/arm/mach-s3c6400/include/mach/map.h
 *
 * Copyright 2008 Openmoko, Inc.
 * Copyright 2008 Simtec Electronics
 *	http://armlinux.simtec.co.uk/
 *	Ben Dooks <ben@simtec.co.uk>
 *
 * S3C64XX - Memory map definitions
 *
 * 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.
*/

#ifndef __ASM_ARCH_MAP_H
#define __ASM_ARCH_MAP_H __FILE__

#include <plat/map-base.h>
19
#include <plat/map-s3c.h>
20

21 22 23 24 25 26 27 28 29 30 31 32
/*
 * Post-mux Chip Select Regions Xm0CSn_
 * These may be used by SROM, NAND or CF depending on settings
 */

#define S3C64XX_PA_XM0CSN0 (0x10000000)
#define S3C64XX_PA_XM0CSN1 (0x18000000)
#define S3C64XX_PA_XM0CSN2 (0x20000000)
#define S3C64XX_PA_XM0CSN3 (0x28000000)
#define S3C64XX_PA_XM0CSN4 (0x30000000)
#define S3C64XX_PA_XM0CSN5 (0x38000000)

33 34 35 36 37 38
/* HSMMC units */
#define S3C64XX_PA_HSMMC(x)	(0x7C200000 + ((x) * 0x100000))
#define S3C64XX_PA_HSMMC0	S3C64XX_PA_HSMMC(0)
#define S3C64XX_PA_HSMMC1	S3C64XX_PA_HSMMC(1)
#define S3C64XX_PA_HSMMC2	S3C64XX_PA_HSMMC(2)

39 40 41 42 43 44 45
#define S3C_PA_UART		(0x7F005000)
#define S3C_PA_UART0		(S3C_PA_UART + 0x00)
#define S3C_PA_UART1		(S3C_PA_UART + 0x400)
#define S3C_PA_UART2		(S3C_PA_UART + 0x800)
#define S3C_PA_UART3		(S3C_PA_UART + 0xC00)
#define S3C_UART_OFFSET		(0x400)

B
Ben Dooks 已提交
46 47 48 49 50 51 52 53
/* See notes on UART VA mapping in debug-macro.S */
#define S3C_VA_UARTx(x)	(S3C_VA_UART + (S3C_PA_UART & 0xfffff) + ((x) * S3C_UART_OFFSET))

#define S3C_VA_UART0		S3C_VA_UARTx(0)
#define S3C_VA_UART1		S3C_VA_UARTx(1)
#define S3C_VA_UART2		S3C_VA_UARTx(2)
#define S3C_VA_UART3		S3C_VA_UARTx(3)

54 55
#define S3C64XX_PA_SROM		(0x70000000)

56 57 58 59 60 61 62 63 64 65
#define S3C64XX_PA_ONENAND0	(0x70100000)
#define S3C64XX_PA_ONENAND0_BUF	(0x20000000)
#define S3C64XX_SZ_ONENAND0_BUF (SZ_64M)

/* NAND and OneNAND1 controllers occupy the same register region
   (depending on SoC POP version) */
#define S3C64XX_PA_ONENAND1	(0x70200000)
#define S3C64XX_PA_ONENAND1_BUF	(0x28000000)
#define S3C64XX_SZ_ONENAND1_BUF	(SZ_64M)

66
#define S3C64XX_PA_NAND		(0x70200000)
67
#define S3C64XX_PA_FB		(0x77100000)
68
#define S3C64XX_PA_USB_HSOTG	(0x7C000000)
69
#define S3C64XX_PA_WATCHDOG	(0x7E004000)
70
#define S3C64XX_PA_RTC		(0x7E005000)
71
#define S3C64XX_PA_KEYPAD	(0x7E00A000)
72
#define S3C64XX_PA_ADC		(0x7E00B000)
73
#define S3C64XX_PA_SYSCON	(0x7E00F000)
74
#define S3C64XX_PA_AC97		(0x7F001000)
75 76
#define S3C64XX_PA_IIS0		(0x7F002000)
#define S3C64XX_PA_IIS1		(0x7F003000)
77
#define S3C64XX_PA_TIMER	(0x7F006000)
78
#define S3C64XX_PA_IIC0		(0x7F004000)
79 80
#define S3C64XX_PA_SPI0		(0x7F00B000)
#define S3C64XX_PA_SPI1		(0x7F00C000)
81 82
#define S3C64XX_PA_PCM0		(0x7F009000)
#define S3C64XX_PA_PCM1		(0x7F00A000)
83
#define S3C64XX_PA_IISV4	(0x7F00D000)
B
Ben Dooks 已提交
84
#define S3C64XX_PA_IIC1		(0x7F00F000)
85

B
Ben Dooks 已提交
86 87 88
#define S3C64XX_PA_GPIO		(0x7F008000)
#define S3C64XX_SZ_GPIO		SZ_4K

89
#define S3C64XX_PA_SDRAM	(0x50000000)
90 91 92

#define S3C64XX_PA_CFCON	(0x70300000)

93 94 95
#define S3C64XX_PA_VIC0		(0x71200000)
#define S3C64XX_PA_VIC1		(0x71300000)

96 97
#define S3C64XX_PA_MODEM	(0x74108000)

B
Ben Dooks 已提交
98 99
#define S3C64XX_PA_USBHOST	(0x74300000)

100
#define S3C64XX_PA_USB_HSPHY	(0x7C100000)
101 102 103

/* compatibiltiy defines. */
#define S3C_PA_TIMER		S3C64XX_PA_TIMER
104 105 106
#define S3C_PA_HSMMC0		S3C64XX_PA_HSMMC0
#define S3C_PA_HSMMC1		S3C64XX_PA_HSMMC1
#define S3C_PA_HSMMC2		S3C64XX_PA_HSMMC2
107
#define S3C_PA_IIC		S3C64XX_PA_IIC0
B
Ben Dooks 已提交
108
#define S3C_PA_IIC1		S3C64XX_PA_IIC1
109
#define S3C_PA_NAND		S3C64XX_PA_NAND
110 111 112
#define S3C_PA_ONENAND		S3C64XX_PA_ONENAND0
#define S3C_PA_ONENAND_BUF	S3C64XX_PA_ONENAND0_BUF
#define S3C_SZ_ONENAND_BUF	S3C64XX_SZ_ONENAND0_BUF
113
#define S3C_PA_FB		S3C64XX_PA_FB
B
Ben Dooks 已提交
114
#define S3C_PA_USBHOST		S3C64XX_PA_USBHOST
115
#define S3C_PA_USB_HSOTG	S3C64XX_PA_USB_HSOTG
116
#define S3C_PA_RTC		S3C64XX_PA_RTC
117
#define S3C_PA_WDT		S3C64XX_PA_WATCHDOG
118 119
#define S3C_PA_SPI0		S3C64XX_PA_SPI0
#define S3C_PA_SPI1		S3C64XX_PA_SPI1
120

121
#define SAMSUNG_PA_ADC		S3C64XX_PA_ADC
122
#define SAMSUNG_PA_CFCON	S3C64XX_PA_CFCON
123
#define SAMSUNG_PA_KEYPAD	S3C64XX_PA_KEYPAD
124
#define SAMSUNG_PA_TIMER	S3C64XX_PA_TIMER
125 126

#endif /* __ASM_ARCH_6400_MAP_H */