2017-12-26 02:54:33 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/*
|
2008-10-21 20:06:42 +07:00
|
|
|
* Copyright 2008 Openmoko, Inc.
|
|
|
|
* Copyright 2008 Simtec Electronics
|
|
|
|
* http://armlinux.simtec.co.uk/
|
|
|
|
* Ben Dooks <ben@simtec.co.uk>
|
|
|
|
*
|
|
|
|
* S3C64XX - Memory map definitions
|
2017-12-26 02:54:33 +07:00
|
|
|
*/
|
2008-10-21 20:06:42 +07:00
|
|
|
|
|
|
|
#ifndef __ASM_ARCH_MAP_H
|
|
|
|
#define __ASM_ARCH_MAP_H __FILE__
|
|
|
|
|
|
|
|
#include <plat/map-base.h>
|
2011-08-30 14:49:36 +07:00
|
|
|
#include <plat/map-s3c.h>
|
2008-10-21 20:06:42 +07:00
|
|
|
|
2009-12-29 21:40:23 +07:00
|
|
|
/*
|
|
|
|
* 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)
|
|
|
|
|
2008-10-31 23: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 20: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 20: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-12-29 21:40:30 +07:00
|
|
|
#define S3C64XX_PA_SROM (0x70000000)
|
|
|
|
|
2010-05-20 13:59:05 +07:00
|
|
|
#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)
|
|
|
|
|
2009-07-01 22:47:06 +07:00
|
|
|
#define S3C64XX_PA_NAND (0x70200000)
|
2008-11-19 22:41:31 +07:00
|
|
|
#define S3C64XX_PA_FB (0x77100000)
|
2009-05-17 04:05:27 +07:00
|
|
|
#define S3C64XX_PA_USB_HSOTG (0x7C000000)
|
2009-05-18 05:40:30 +07:00
|
|
|
#define S3C64XX_PA_WATCHDOG (0x7E004000)
|
2010-01-12 07:40:14 +07:00
|
|
|
#define S3C64XX_PA_RTC (0x7E005000)
|
2010-06-22 05:39:18 +07:00
|
|
|
#define S3C64XX_PA_KEYPAD (0x7E00A000)
|
2010-01-14 06:30:34 +07:00
|
|
|
#define S3C64XX_PA_ADC (0x7E00B000)
|
2008-10-21 20:06:49 +07:00
|
|
|
#define S3C64XX_PA_SYSCON (0x7E00F000)
|
2009-08-06 00:21:59 +07:00
|
|
|
#define S3C64XX_PA_AC97 (0x7F001000)
|
2009-02-04 06:48:54 +07:00
|
|
|
#define S3C64XX_PA_IIS0 (0x7F002000)
|
|
|
|
#define S3C64XX_PA_IIS1 (0x7F003000)
|
2008-10-21 20:06:42 +07:00
|
|
|
#define S3C64XX_PA_TIMER (0x7F006000)
|
2008-10-31 23:14:40 +07:00
|
|
|
#define S3C64XX_PA_IIC0 (0x7F004000)
|
2010-01-18 14:15:07 +07:00
|
|
|
#define S3C64XX_PA_SPI0 (0x7F00B000)
|
|
|
|
#define S3C64XX_PA_SPI1 (0x7F00C000)
|
2009-11-17 14:53:38 +07:00
|
|
|
#define S3C64XX_PA_PCM0 (0x7F009000)
|
|
|
|
#define S3C64XX_PA_PCM1 (0x7F00A000)
|
2009-08-04 22:25:12 +07:00
|
|
|
#define S3C64XX_PA_IISV4 (0x7F00D000)
|
2008-10-31 23:14:55 +07:00
|
|
|
#define S3C64XX_PA_IIC1 (0x7F00F000)
|
2008-10-21 20:06:42 +07:00
|
|
|
|
2008-10-21 20:07:07 +07:00
|
|
|
#define S3C64XX_PA_GPIO (0x7F008000)
|
|
|
|
#define S3C64XX_SZ_GPIO SZ_4K
|
|
|
|
|
2008-10-21 20:06:42 +07:00
|
|
|
#define S3C64XX_PA_SDRAM (0x50000000)
|
2010-06-08 14:55:45 +07:00
|
|
|
|
|
|
|
#define S3C64XX_PA_CFCON (0x70300000)
|
|
|
|
|
2008-10-21 20:06:42 +07:00
|
|
|
#define S3C64XX_PA_VIC0 (0x71200000)
|
|
|
|
#define S3C64XX_PA_VIC1 (0x71300000)
|
|
|
|
|
2008-12-12 07:24:38 +07:00
|
|
|
#define S3C64XX_PA_MODEM (0x74108000)
|
|
|
|
|
2009-03-07 02:51:51 +07:00
|
|
|
#define S3C64XX_PA_USBHOST (0x74300000)
|
|
|
|
|
2009-11-20 19:04:08 +07:00
|
|
|
#define S3C64XX_PA_USB_HSPHY (0x7C100000)
|
2008-10-21 20:06:42 +07:00
|
|
|
|
2016-05-21 18:51:23 +07:00
|
|
|
/* compatibility defines. */
|
2008-10-21 20:06:42 +07:00
|
|
|
#define S3C_PA_TIMER S3C64XX_PA_TIMER
|
2008-10-31 23: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 23:14:40 +07:00
|
|
|
#define S3C_PA_IIC S3C64XX_PA_IIC0
|
2008-10-31 23:14:55 +07:00
|
|
|
#define S3C_PA_IIC1 S3C64XX_PA_IIC1
|
2009-07-01 22:47:06 +07:00
|
|
|
#define S3C_PA_NAND S3C64XX_PA_NAND
|
2010-05-20 13:59:05 +07:00
|
|
|
#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
|
2008-11-19 22:41:31 +07:00
|
|
|
#define S3C_PA_FB S3C64XX_PA_FB
|
2009-03-07 02:51:51 +07:00
|
|
|
#define S3C_PA_USBHOST S3C64XX_PA_USBHOST
|
2009-05-17 04:05:27 +07:00
|
|
|
#define S3C_PA_USB_HSOTG S3C64XX_PA_USB_HSOTG
|
2010-05-18 12:58:56 +07:00
|
|
|
#define S3C_PA_RTC S3C64XX_PA_RTC
|
2010-05-20 14:21:30 +07:00
|
|
|
#define S3C_PA_WDT S3C64XX_PA_WATCHDOG
|
2011-12-23 08:14:36 +07:00
|
|
|
#define S3C_PA_SPI0 S3C64XX_PA_SPI0
|
|
|
|
#define S3C_PA_SPI1 S3C64XX_PA_SPI1
|
2008-10-21 20:06:42 +07:00
|
|
|
|
2010-05-13 20:06:36 +07:00
|
|
|
#define SAMSUNG_PA_ADC S3C64XX_PA_ADC
|
2010-06-08 14:55:45 +07:00
|
|
|
#define SAMSUNG_PA_CFCON S3C64XX_PA_CFCON
|
2010-06-22 05:39:18 +07:00
|
|
|
#define SAMSUNG_PA_KEYPAD S3C64XX_PA_KEYPAD
|
2013-04-13 02:17:20 +07:00
|
|
|
#define SAMSUNG_PA_TIMER S3C64XX_PA_TIMER
|
2008-10-21 20:06:42 +07:00
|
|
|
|
|
|
|
#endif /* __ASM_ARCH_6400_MAP_H */
|