Matt Porter | 57da666 | 2013-03-15 10:07:04 +0000 | [diff] [blame] | 1 | /* |
| 2 | * hardware_am33xx.h |
| 3 | * |
| 4 | * AM33xx hardware specific header |
| 5 | * |
| 6 | * Copyright (C) 2013, Texas Instruments, Incorporated - http://www.ti.com/ |
| 7 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | * SPDX-License-Identifier: GPL-2.0+ |
Matt Porter | 57da666 | 2013-03-15 10:07:04 +0000 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef __AM33XX_HARDWARE_AM33XX_H |
| 12 | #define __AM33XX_HARDWARE_AM33XX_H |
| 13 | |
Matt Porter | 691fbe3 | 2013-03-15 10:07:06 +0000 | [diff] [blame] | 14 | /* Module base addresses */ |
| 15 | |
| 16 | /* UART Base Address */ |
| 17 | #define UART0_BASE 0x44E09000 |
Landheer-Cieslak, Ronald | 9671986 | 2017-10-25 13:46:53 +0000 | [diff] [blame^] | 18 | #define UART1_BASE 0x48022000 |
| 19 | #define UART2_BASE 0x48024000 |
| 20 | #define UART3_BASE 0x481A6000 |
| 21 | #define UART4_BASE 0x481A8000 |
| 22 | #define UART5_BASE 0x481AA000 |
Matt Porter | 691fbe3 | 2013-03-15 10:07:06 +0000 | [diff] [blame] | 23 | |
| 24 | /* GPIO Base address */ |
| 25 | #define GPIO2_BASE 0x481AC000 |
| 26 | |
| 27 | /* Watchdog Timer */ |
| 28 | #define WDT_BASE 0x44E35000 |
| 29 | |
| 30 | /* Control Module Base Address */ |
| 31 | #define CTRL_BASE 0x44E10000 |
| 32 | #define CTRL_DEVICE_BASE 0x44E10600 |
| 33 | |
| 34 | /* PRCM Base Address */ |
| 35 | #define PRCM_BASE 0x44E00000 |
Lokesh Vutla | 83269d0 | 2013-07-30 11:36:28 +0530 | [diff] [blame] | 36 | #define CM_PER 0x44E00000 |
| 37 | #define CM_WKUP 0x44E00400 |
Lokesh Vutla | 1c1a281 | 2013-12-10 15:02:11 +0530 | [diff] [blame] | 38 | #define CM_DPLL 0x44E00500 |
| 39 | #define CM_RTC 0x44E00800 |
Lokesh Vutla | 83269d0 | 2013-07-30 11:36:28 +0530 | [diff] [blame] | 40 | |
| 41 | #define PRM_RSTCTRL (PRCM_BASE + 0x0F00) |
| 42 | #define PRM_RSTST (PRM_RSTCTRL + 8) |
Matt Porter | 691fbe3 | 2013-03-15 10:07:06 +0000 | [diff] [blame] | 43 | |
Matt Porter | 57da666 | 2013-03-15 10:07:04 +0000 | [diff] [blame] | 44 | /* VTP Base address */ |
| 45 | #define VTP0_CTRL_ADDR 0x44E10E0C |
TENART Antoine | 35c7e52 | 2013-07-02 12:05:59 +0200 | [diff] [blame] | 46 | #define VTP1_CTRL_ADDR 0x48140E10 |
James Doublesin | 53c723b | 2014-12-22 16:26:11 -0600 | [diff] [blame] | 47 | #define PRM_DEVICE_INST 0x44E00F00 |
Matt Porter | 57da666 | 2013-03-15 10:07:04 +0000 | [diff] [blame] | 48 | |
| 49 | /* DDR Base address */ |
| 50 | #define DDR_PHY_CMD_ADDR 0x44E12000 |
| 51 | #define DDR_PHY_DATA_ADDR 0x44E120C8 |
TENART Antoine | 35c7e52 | 2013-07-02 12:05:59 +0200 | [diff] [blame] | 52 | #define DDR_PHY_CMD_ADDR2 0x47C0C800 |
| 53 | #define DDR_PHY_DATA_ADDR2 0x47C0C8C8 |
Matt Porter | 57da666 | 2013-03-15 10:07:04 +0000 | [diff] [blame] | 54 | #define DDR_DATA_REGS_NR 2 |
| 55 | |
TENART Antoine | 35c7e52 | 2013-07-02 12:05:59 +0200 | [diff] [blame] | 56 | #define DDRPHY_0_CONFIG_BASE (CTRL_BASE + 0x1400) |
| 57 | #define DDRPHY_CONFIG_BASE DDRPHY_0_CONFIG_BASE |
| 58 | |
Matt Porter | 691fbe3 | 2013-03-15 10:07:06 +0000 | [diff] [blame] | 59 | /* CPSW Config space */ |
| 60 | #define CPSW_MDIO_BASE 0x4A101000 |
| 61 | |
| 62 | /* RTC base address */ |
| 63 | #define RTC_BASE 0x44E3E000 |
| 64 | |
Lokesh Vutla | 83269d0 | 2013-07-30 11:36:28 +0530 | [diff] [blame] | 65 | /* OTG */ |
| 66 | #define USB0_OTG_BASE 0x47401000 |
| 67 | #define USB1_OTG_BASE 0x47401800 |
| 68 | |
Heiko Schocher | c9a8db8 | 2013-08-19 16:38:57 +0200 | [diff] [blame] | 69 | /* LCD Controller */ |
| 70 | #define LCD_CNTL_BASE 0x4830E000 |
| 71 | |
| 72 | /* PWMSS */ |
| 73 | #define PWMSS0_BASE 0x48300000 |
| 74 | #define AM33XX_ECAP0_BASE 0x48300100 |
tomas.melin@vaisala.com | cf1fcf4 | 2016-09-16 10:21:39 +0000 | [diff] [blame] | 75 | #define AM33XX_EPWM_BASE 0x48300200 |
Heiko Schocher | c9a8db8 | 2013-08-19 16:38:57 +0200 | [diff] [blame] | 76 | |
Matt Porter | 57da666 | 2013-03-15 10:07:04 +0000 | [diff] [blame] | 77 | #endif /* __AM33XX_HARDWARE_AM33XX_H */ |