blob: 878ef3e5d2294329b8233782a9d016f3a2ed5b3d [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Matt Porter57da6662013-03-15 10:07:04 +00002/*
3 * hardware_am33xx.h
4 *
5 * AM33xx hardware specific header
6 *
7 * Copyright (C) 2013, Texas Instruments, Incorporated - http://www.ti.com/
Matt Porter57da6662013-03-15 10:07:04 +00008 */
9
10#ifndef __AM33XX_HARDWARE_AM33XX_H
11#define __AM33XX_HARDWARE_AM33XX_H
12
Matt Porter691fbe32013-03-15 10:07:06 +000013/* Module base addresses */
14
15/* UART Base Address */
16#define UART0_BASE 0x44E09000
Landheer-Cieslak, Ronald96719862017-10-25 13:46:53 +000017#define UART1_BASE 0x48022000
18#define UART2_BASE 0x48024000
19#define UART3_BASE 0x481A6000
20#define UART4_BASE 0x481A8000
21#define UART5_BASE 0x481AA000
Matt Porter691fbe32013-03-15 10:07:06 +000022
23/* GPIO Base address */
24#define GPIO2_BASE 0x481AC000
25
26/* Watchdog Timer */
27#define WDT_BASE 0x44E35000
28
29/* Control Module Base Address */
30#define CTRL_BASE 0x44E10000
31#define CTRL_DEVICE_BASE 0x44E10600
32
33/* PRCM Base Address */
34#define PRCM_BASE 0x44E00000
Lokesh Vutla83269d02013-07-30 11:36:28 +053035#define CM_PER 0x44E00000
36#define CM_WKUP 0x44E00400
Lokesh Vutla1c1a2812013-12-10 15:02:11 +053037#define CM_DPLL 0x44E00500
38#define CM_RTC 0x44E00800
Lokesh Vutla83269d02013-07-30 11:36:28 +053039
40#define PRM_RSTCTRL (PRCM_BASE + 0x0F00)
41#define PRM_RSTST (PRM_RSTCTRL + 8)
Matt Porter691fbe32013-03-15 10:07:06 +000042
Matt Porter57da6662013-03-15 10:07:04 +000043/* VTP Base address */
44#define VTP0_CTRL_ADDR 0x44E10E0C
TENART Antoine35c7e522013-07-02 12:05:59 +020045#define VTP1_CTRL_ADDR 0x48140E10
James Doublesin53c723b2014-12-22 16:26:11 -060046#define PRM_DEVICE_INST 0x44E00F00
Matt Porter57da6662013-03-15 10:07:04 +000047
48/* DDR Base address */
49#define DDR_PHY_CMD_ADDR 0x44E12000
50#define DDR_PHY_DATA_ADDR 0x44E120C8
TENART Antoine35c7e522013-07-02 12:05:59 +020051#define DDR_PHY_CMD_ADDR2 0x47C0C800
52#define DDR_PHY_DATA_ADDR2 0x47C0C8C8
Matt Porter57da6662013-03-15 10:07:04 +000053#define DDR_DATA_REGS_NR 2
54
TENART Antoine35c7e522013-07-02 12:05:59 +020055#define DDRPHY_0_CONFIG_BASE (CTRL_BASE + 0x1400)
56#define DDRPHY_CONFIG_BASE DDRPHY_0_CONFIG_BASE
57
Matt Porter691fbe32013-03-15 10:07:06 +000058/* CPSW Config space */
59#define CPSW_MDIO_BASE 0x4A101000
60
61/* RTC base address */
62#define RTC_BASE 0x44E3E000
63
Lokesh Vutla83269d02013-07-30 11:36:28 +053064/* OTG */
65#define USB0_OTG_BASE 0x47401000
66#define USB1_OTG_BASE 0x47401800
67
Heiko Schocherc9a8db82013-08-19 16:38:57 +020068/* LCD Controller */
69#define LCD_CNTL_BASE 0x4830E000
70
71/* PWMSS */
72#define PWMSS0_BASE 0x48300000
73#define AM33XX_ECAP0_BASE 0x48300100
tomas.melin@vaisala.comcf1fcf42016-09-16 10:21:39 +000074#define AM33XX_EPWM_BASE 0x48300200
Heiko Schocherc9a8db82013-08-19 16:38:57 +020075
Matt Porter57da6662013-03-15 10:07:04 +000076#endif /* __AM33XX_HARDWARE_AM33XX_H */