2008-10-21 06:06:42 -07:00
|
|
|
/* 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>
|
|
|
|
|
2008-10-31 09:14:28 -07:00
|
|
|
/* 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)
|
|
|
|
|
2008-10-21 06:06:42 -07:00
|
|
|
#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)
|
|
|
|
|
2008-10-21 06:07:05 -07:00
|
|
|
/* 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)
|
|
|
|
|
2009-07-01 08:47:06 -07:00
|
|
|
#define S3C64XX_PA_NAND (0x70200000)
|
2008-11-19 08:41:31 -07:00
|
|
|
#define S3C64XX_PA_FB (0x77100000)
|
2009-05-16 14:05:27 -07:00
|
|
|
#define S3C64XX_PA_USB_HSOTG (0x7C000000)
|
2009-05-17 15:40:30 -07:00
|
|
|
#define S3C64XX_PA_WATCHDOG (0x7E004000)
|
2008-10-21 06:06:49 -07:00
|
|
|
#define S3C64XX_PA_SYSCON (0x7E00F000)
|
2009-08-05 10:21:59 -07:00
|
|
|
#define S3C64XX_PA_AC97 (0x7F001000)
|
2009-02-03 16:48:54 -07:00
|
|
|
#define S3C64XX_PA_IIS0 (0x7F002000)
|
|
|
|
#define S3C64XX_PA_IIS1 (0x7F003000)
|
2008-10-21 06:06:42 -07:00
|
|
|
#define S3C64XX_PA_TIMER (0x7F006000)
|
2008-10-31 09:14:40 -07:00
|
|
|
#define S3C64XX_PA_IIC0 (0x7F004000)
|
2009-11-17 00:53:38 -07:00
|
|
|
#define S3C64XX_PA_PCM0 (0x7F009000)
|
|
|
|
#define S3C64XX_PA_PCM1 (0x7F00A000)
|
2009-08-04 08:25:12 -07:00
|
|
|
#define S3C64XX_PA_IISV4 (0x7F00D000)
|
2008-10-31 09:14:55 -07:00
|
|
|
#define S3C64XX_PA_IIC1 (0x7F00F000)
|
2008-10-21 06:06:42 -07:00
|
|
|
|
2008-10-21 06:07:07 -07:00
|
|
|
#define S3C64XX_PA_GPIO (0x7F008000)
|
2009-07-30 15:23:35 -07:00
|
|
|
#define S3C64XX_VA_GPIO S3C_ADDR_CPU(0x00000000)
|
2008-10-21 06:07:07 -07:00
|
|
|
#define S3C64XX_SZ_GPIO SZ_4K
|
|
|
|
|
2008-10-21 06:06:42 -07:00
|
|
|
#define S3C64XX_PA_SDRAM (0x50000000)
|
|
|
|
#define S3C64XX_PA_VIC0 (0x71200000)
|
|
|
|
#define S3C64XX_PA_VIC1 (0x71300000)
|
|
|
|
|
2008-12-11 17:24:38 -07:00
|
|
|
#define S3C64XX_PA_MODEM (0x74108000)
|
2009-07-30 15:23:35 -07:00
|
|
|
#define S3C64XX_VA_MODEM S3C_ADDR_CPU(0x00100000)
|
2008-12-11 17:24:38 -07:00
|
|
|
|
2009-03-06 12:51:51 -07:00
|
|
|
#define S3C64XX_PA_USBHOST (0x74300000)
|
|
|
|
|
2009-11-20 05:04:08 -07:00
|
|
|
#define S3C64XX_PA_USB_HSPHY (0x7C100000)
|
|
|
|
#define S3C64XX_VA_USB_HSPHY S3C_ADDR_CPU(0x00200000)
|
|
|
|
|
2008-10-21 06:06:42 -07:00
|
|
|
/* place VICs close together */
|
|
|
|
#define S3C_VA_VIC0 (S3C_VA_IRQ + 0x00)
|
|
|
|
#define S3C_VA_VIC1 (S3C_VA_IRQ + 0x10000)
|
|
|
|
|
|
|
|
/* compatibiltiy defines. */
|
|
|
|
#define S3C_PA_TIMER S3C64XX_PA_TIMER
|
2008-10-31 09:14:28 -07:00
|
|
|
#define S3C_PA_HSMMC0 S3C64XX_PA_HSMMC0
|
|
|
|
#define S3C_PA_HSMMC1 S3C64XX_PA_HSMMC1
|
|
|
|
#define S3C_PA_HSMMC2 S3C64XX_PA_HSMMC2
|
2008-10-31 09:14:40 -07:00
|
|
|
#define S3C_PA_IIC S3C64XX_PA_IIC0
|
2008-10-31 09:14:55 -07:00
|
|
|
#define S3C_PA_IIC1 S3C64XX_PA_IIC1
|
2009-07-01 08:47:06 -07:00
|
|
|
#define S3C_PA_NAND S3C64XX_PA_NAND
|
2008-11-19 08:41:31 -07:00
|
|
|
#define S3C_PA_FB S3C64XX_PA_FB
|
2009-03-06 12:51:51 -07:00
|
|
|
#define S3C_PA_USBHOST S3C64XX_PA_USBHOST
|
2009-05-16 14:05:27 -07:00
|
|
|
#define S3C_PA_USB_HSOTG S3C64XX_PA_USB_HSOTG
|
2009-11-20 05:04:08 -07:00
|
|
|
#define S3C_VA_USB_HSPHY S3C64XX_VA_USB_HSPHY
|
2008-10-21 06:06:42 -07:00
|
|
|
|
|
|
|
#endif /* __ASM_ARCH_6400_MAP_H */
|