2013-07-30 06:06:28 +00:00
|
|
|
/*
|
|
|
|
* hardware_am43xx.h
|
|
|
|
*
|
|
|
|
* AM43xx hardware specific header
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013, Texas Instruments, Incorporated - http://www.ti.com/
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __AM43XX_HARDWARE_AM43XX_H
|
|
|
|
#define __AM43XX_HARDWARE_AM43XX_H
|
|
|
|
|
|
|
|
/* Module base addresses */
|
|
|
|
|
2014-06-27 18:31:15 +00:00
|
|
|
/* L3 Fast Configuration Bandwidth Limiter Base Address */
|
|
|
|
#define L3F_CFG_BWLIMITER 0x44005200
|
|
|
|
|
2013-07-30 06:06:28 +00:00
|
|
|
/* UART Base Address */
|
|
|
|
#define UART0_BASE 0x44E09000
|
|
|
|
|
|
|
|
/* GPIO Base address */
|
|
|
|
#define GPIO2_BASE 0x481AC000
|
|
|
|
|
|
|
|
/* Watchdog Timer */
|
|
|
|
#define WDT_BASE 0x44E35000
|
|
|
|
|
|
|
|
/* Control Module Base Address */
|
|
|
|
#define CTRL_BASE 0x44E10000
|
|
|
|
#define CTRL_DEVICE_BASE 0x44E10600
|
|
|
|
|
|
|
|
/* PRCM Base Address */
|
|
|
|
#define PRCM_BASE 0x44DF0000
|
|
|
|
#define CM_WKUP 0x44DF2800
|
|
|
|
#define CM_PER 0x44DF8800
|
2013-12-10 09:32:11 +00:00
|
|
|
#define CM_DPLL 0x44DF4200
|
|
|
|
#define CM_RTC 0x44DF8500
|
2013-07-30 06:06:28 +00:00
|
|
|
|
|
|
|
#define PRM_RSTCTRL (PRCM_BASE + 0x4000)
|
|
|
|
#define PRM_RSTST (PRM_RSTCTRL + 4)
|
|
|
|
|
|
|
|
/* VTP Base address */
|
|
|
|
#define VTP0_CTRL_ADDR 0x44E10E0C
|
2013-07-02 10:05:59 +00:00
|
|
|
#define VTP1_CTRL_ADDR 0x48140E10
|
2013-07-30 06:06:28 +00:00
|
|
|
|
2014-06-23 22:18:24 +00:00
|
|
|
/* USB CTRL Base Address */
|
|
|
|
#define USB1_CTRL 0x44e10628
|
|
|
|
#define USB1_CTRL_CM_PWRDN BIT(0)
|
|
|
|
#define USB1_CTRL_OTG_PWRDN BIT(1)
|
|
|
|
|
2013-07-30 06:06:28 +00:00
|
|
|
/* DDR Base address */
|
|
|
|
#define DDR_PHY_CMD_ADDR 0x44E12000
|
|
|
|
#define DDR_PHY_DATA_ADDR 0x44E120C8
|
2013-07-02 10:05:59 +00:00
|
|
|
#define DDR_PHY_CMD_ADDR2 0x47C0C800
|
|
|
|
#define DDR_PHY_DATA_ADDR2 0x47C0C8C8
|
2013-07-30 06:06:28 +00:00
|
|
|
#define DDR_DATA_REGS_NR 2
|
|
|
|
|
|
|
|
/* CPSW Config space */
|
|
|
|
#define CPSW_MDIO_BASE 0x4A101000
|
|
|
|
|
|
|
|
/* RTC base address */
|
|
|
|
#define RTC_BASE 0x44E3E000
|
|
|
|
|
2015-02-23 13:10:21 +00:00
|
|
|
/* USB OTG */
|
|
|
|
#define USB_OTG_SS1_BASE 0x48390000
|
|
|
|
#define USB_OTG_SS1_GLUE_BASE 0x48380000
|
|
|
|
#define USB2_PHY1_POWER 0x44E10620
|
|
|
|
|
|
|
|
#define USB_OTG_SS2_BASE 0x483D0000
|
|
|
|
#define USB_OTG_SS2_GLUE_BASE 0x483C0000
|
|
|
|
#define USB2_PHY2_POWER 0x44E10628
|
|
|
|
|
2013-10-11 17:28:18 +00:00
|
|
|
/* USB Clock Control */
|
|
|
|
#define PRM_PER_USB_OTG_SS0_CLKCTRL (CM_PER + 0x260)
|
|
|
|
#define PRM_PER_USB_OTG_SS1_CLKCTRL (CM_PER + 0x268)
|
2013-12-05 13:19:17 +00:00
|
|
|
#define USBOTGSSX_CLKCTRL_MODULE_EN (1 << 1)
|
2013-10-11 17:28:18 +00:00
|
|
|
#define USBOTGSSX_CLKCTRL_OPTFCLKEN_REFCLK960 (1 << 8)
|
|
|
|
|
|
|
|
#define PRM_PER_USBPHYOCP2SCP0_CLKCTRL (CM_PER + 0x5b8)
|
|
|
|
#define PRM_PER_USBPHYOCP2SCP1_CLKCTRL (CM_PER + 0x5c0)
|
2013-12-05 13:19:17 +00:00
|
|
|
#define USBPHYOCPSCP_MODULE_EN (1 << 1)
|
2013-12-10 09:32:22 +00:00
|
|
|
#define CM_DEVICE_INST 0x44df4100
|
2014-12-22 22:26:11 +00:00
|
|
|
#define PRM_DEVICE_INST 0x44df4000
|
2013-10-11 17:28:18 +00:00
|
|
|
|
2015-02-23 13:09:45 +00:00
|
|
|
#define USBOTGSSX_CLKCTRL_OPTFCLKEN_REFCLK960 (1 << 8)
|
|
|
|
#define USBPHY0_CLKCTRL_OPTFCLKEN_CLK32K (1 << 8)
|
|
|
|
|
2015-11-10 06:22:11 +00:00
|
|
|
/* EDMA3 Base Address */
|
|
|
|
#define EDMA3_BASE 0x49000000
|
|
|
|
|
2013-07-30 06:06:28 +00:00
|
|
|
#endif /* __AM43XX_HARDWARE_AM43XX_H */
|