blob: fc8b223bad4fb91aeaedcd36e2257abf38ae6ba4 [file] [log] [blame]
Ben Dooksdcb09022008-10-21 14:06:42 +01001/* linux/arch/arm/mach-s3c6400/include/mach/map.h
2 *
3 * Copyright 2008 Openmoko, Inc.
4 * Copyright 2008 Simtec Electronics
5 * http://armlinux.simtec.co.uk/
6 * Ben Dooks <ben@simtec.co.uk>
7 *
8 * S3C64XX - Memory map definitions
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13*/
14
15#ifndef __ASM_ARCH_MAP_H
16#define __ASM_ARCH_MAP_H __FILE__
17
18#include <plat/map-base.h>
19
Ben Dooks5b323c72008-10-31 16:14:28 +000020/* HSMMC units */
21#define S3C64XX_PA_HSMMC(x) (0x7C200000 + ((x) * 0x100000))
22#define S3C64XX_PA_HSMMC0 S3C64XX_PA_HSMMC(0)
23#define S3C64XX_PA_HSMMC1 S3C64XX_PA_HSMMC(1)
24#define S3C64XX_PA_HSMMC2 S3C64XX_PA_HSMMC(2)
25
Ben Dooksdcb09022008-10-21 14:06:42 +010026#define S3C_PA_UART (0x7F005000)
27#define S3C_PA_UART0 (S3C_PA_UART + 0x00)
28#define S3C_PA_UART1 (S3C_PA_UART + 0x400)
29#define S3C_PA_UART2 (S3C_PA_UART + 0x800)
30#define S3C_PA_UART3 (S3C_PA_UART + 0xC00)
31#define S3C_UART_OFFSET (0x400)
32
Ben Dooks3e694d42008-10-21 14:07:05 +010033/* See notes on UART VA mapping in debug-macro.S */
34#define S3C_VA_UARTx(x) (S3C_VA_UART + (S3C_PA_UART & 0xfffff) + ((x) * S3C_UART_OFFSET))
35
36#define S3C_VA_UART0 S3C_VA_UARTx(0)
37#define S3C_VA_UART1 S3C_VA_UARTx(1)
38#define S3C_VA_UART2 S3C_VA_UARTx(2)
39#define S3C_VA_UART3 S3C_VA_UARTx(3)
40
Peter Korsgaard14077ea2009-07-01 17:47:06 +020041#define S3C64XX_PA_NAND (0x70200000)
Ben Dooks58435f72008-11-19 15:41:31 +000042#define S3C64XX_PA_FB (0x77100000)
Ben Dooksf0e1fa72009-05-16 22:05:27 +010043#define S3C64XX_PA_USB_HSOTG (0x7C000000)
Ben Dooks543899f2009-05-17 23:40:30 +010044#define S3C64XX_PA_WATCHDOG (0x7E004000)
Ben Dooksbeda30f2008-10-21 14:06:49 +010045#define S3C64XX_PA_SYSCON (0x7E00F000)
Mark Brownc7c8f612009-08-05 18:21:59 +010046#define S3C64XX_PA_AC97 (0x7F001000)
Ben Dooks5ef316f2009-02-03 23:48:54 +000047#define S3C64XX_PA_IIS0 (0x7F002000)
48#define S3C64XX_PA_IIS1 (0x7F003000)
Ben Dooksdcb09022008-10-21 14:06:42 +010049#define S3C64XX_PA_TIMER (0x7F006000)
Ben Dooks3e1b7762008-10-31 16:14:40 +000050#define S3C64XX_PA_IIC0 (0x7F004000)
Mark Brown25b15da2009-08-04 16:25:12 +010051#define S3C64XX_PA_IISV4 (0x7F00D000)
Ben Dooks1aba8342008-10-31 16:14:55 +000052#define S3C64XX_PA_IIC1 (0x7F00F000)
Ben Dooksdcb09022008-10-21 14:06:42 +010053
Ben Dooks94df8682008-10-21 14:07:07 +010054#define S3C64XX_PA_GPIO (0x7F008000)
Ben Dookse13cf032009-07-30 23:23:35 +010055#define S3C64XX_VA_GPIO S3C_ADDR_CPU(0x00000000)
Ben Dooks94df8682008-10-21 14:07:07 +010056#define S3C64XX_SZ_GPIO SZ_4K
57
Ben Dooksdcb09022008-10-21 14:06:42 +010058#define S3C64XX_PA_SDRAM (0x50000000)
59#define S3C64XX_PA_VIC0 (0x71200000)
60#define S3C64XX_PA_VIC1 (0x71300000)
61
Ben Dooks5b3d5152008-12-12 00:24:38 +000062#define S3C64XX_PA_MODEM (0x74108000)
Ben Dookse13cf032009-07-30 23:23:35 +010063#define S3C64XX_VA_MODEM S3C_ADDR_CPU(0x00100000)
Ben Dooks5b3d5152008-12-12 00:24:38 +000064
Ben Dooks67b3e542009-03-06 19:51:51 +000065#define S3C64XX_PA_USBHOST (0x74300000)
66
Ben Dooksdcb09022008-10-21 14:06:42 +010067/* place VICs close together */
68#define S3C_VA_VIC0 (S3C_VA_IRQ + 0x00)
69#define S3C_VA_VIC1 (S3C_VA_IRQ + 0x10000)
70
71/* compatibiltiy defines. */
72#define S3C_PA_TIMER S3C64XX_PA_TIMER
Ben Dooks5b323c72008-10-31 16:14:28 +000073#define S3C_PA_HSMMC0 S3C64XX_PA_HSMMC0
74#define S3C_PA_HSMMC1 S3C64XX_PA_HSMMC1
75#define S3C_PA_HSMMC2 S3C64XX_PA_HSMMC2
Ben Dooks3e1b7762008-10-31 16:14:40 +000076#define S3C_PA_IIC S3C64XX_PA_IIC0
Ben Dooks1aba8342008-10-31 16:14:55 +000077#define S3C_PA_IIC1 S3C64XX_PA_IIC1
Peter Korsgaard14077ea2009-07-01 17:47:06 +020078#define S3C_PA_NAND S3C64XX_PA_NAND
Ben Dooks58435f72008-11-19 15:41:31 +000079#define S3C_PA_FB S3C64XX_PA_FB
Ben Dooks67b3e542009-03-06 19:51:51 +000080#define S3C_PA_USBHOST S3C64XX_PA_USBHOST
Ben Dooksf0e1fa72009-05-16 22:05:27 +010081#define S3C_PA_USB_HSOTG S3C64XX_PA_USB_HSOTG
Ben Dooksdcb09022008-10-21 14:06:42 +010082
83#endif /* __ASM_ARCH_6400_MAP_H */