blob: 1067107b644c74967606e87d382f45a12ee2e153 [file] [log] [blame]
Vladimir Zapolskiy52f69f82012-04-19 04:33:08 +00001/*
2 * Copyright (C) 2011 by Vladimir Zapolskiy <vz@mleia.com>
3 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Vladimir Zapolskiy52f69f82012-04-19 04:33:08 +00005 */
6
7#ifndef _LPC32XX_CPU_H
8#define _LPC32XX_CPU_H
9
10/* LPC32XX Memory map */
11
12/* AHB physical base addresses */
13#define SLC_NAND_BASE 0x20020000 /* SLC NAND Flash registers base */
14#define SSP0_BASE 0x20084000 /* SSP0 registers base */
15#define SD_CARD_BASE 0x20098000 /* SD card interface registers base */
16#define MLC_NAND_BASE 0x200A8000 /* MLC NAND Flash registers base */
17#define DMA_BASE 0x31000000 /* DMA controller registers base */
18#define USB_BASE 0x31020000 /* USB registers base */
19#define LCD_BASE 0x31040000 /* LCD registers base */
20#define ETHERNET_BASE 0x31060000 /* Ethernet registers base */
21#define EMC_BASE 0x31080000 /* EMC configuration registers base */
22
23/* FAB peripherals base addresses */
24#define CLK_PM_BASE 0x40004000 /* System control registers base */
25#define HS_UART1_BASE 0x40014000 /* High speed UART 1 registers base */
26#define HS_UART2_BASE 0x40018000 /* High speed UART 2 registers base */
27#define HS_UART7_BASE 0x4001C000 /* High speed UART 7 registers base */
28#define RTC_BASE 0x40024000 /* RTC registers base */
29#define GPIO_BASE 0x40028000 /* GPIO registers base */
30#define WDT_BASE 0x4003C000 /* Watchdog timer registers base */
31#define TIMER0_BASE 0x40044000 /* Timer0 registers base */
32#define TIMER1_BASE 0x4004C000 /* Timer1 registers base */
33#define UART_CTRL_BASE 0x40054000 /* UART control regsisters base */
34
35/* APB peripherals base addresses */
36#define UART3_BASE 0x40080000 /* UART 3 registers base */
37#define UART4_BASE 0x40088000 /* UART 4 registers base */
38#define UART5_BASE 0x40090000 /* UART 5 registers base */
39#define UART6_BASE 0x40098000 /* UART 6 registers base */
Albert ARIBAUD \(3ADEV\)5e862b92015-03-31 11:40:45 +020040#define I2C1_BASE 0x400A0000 /* I2C 1 registers base */
41#define I2C2_BASE 0x400A8000 /* I2C 2 registers base */
Vladimir Zapolskiy52f69f82012-04-19 04:33:08 +000042
43/* External SDRAM Memory Bank base addresses */
44#define EMC_DYCS0_BASE 0x80000000 /* SDRAM DYCS0 base address */
45#define EMC_DYCS1_BASE 0xA0000000 /* SDRAM DYCS1 base address */
46
47/* External Static Memory Bank base addresses */
48#define EMC_CS0_BASE 0xE0000000
49#define EMC_CS1_BASE 0xE1000000
50#define EMC_CS2_BASE 0xE2000000
51#define EMC_CS3_BASE 0xE3000000
52
53#endif /* _LPC32XX_CPU_H */