]> Git Repo - u-boot.git/blame - arch/arm/include/asm/arch-am33xx/hardware.h
Merge tag 'xilinx-for-v2025.04-rc2' of https://source.denx.de/u-boot/custodians/u...
[u-boot.git] / arch / arm / include / asm / arch-am33xx / hardware.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
5655108a
CN
2/*
3 * hardware.h
4 *
5 * hardware specific header
6 *
a94a4071 7 * Copyright (C) 2013, Texas Instruments, Incorporated - https://www.ti.com/
5655108a
CN
8 */
9
10#ifndef __AM33XX_HARDWARE_H
11#define __AM33XX_HARDWARE_H
12
8b029f22 13#include <config.h>
41aebf81 14#include <asm/arch/omap.h>
3ba65f97
MP
15#ifdef CONFIG_AM33XX
16#include <asm/arch/hardware_am33xx.h>
c06e498a
LV
17#elif defined(CONFIG_AM43XX)
18#include <asm/arch/hardware_am43xx.h>
3ba65f97 19#endif
41aebf81 20
8b029f22
MP
21/*
22 * Common hardware definitions
23 */
5655108a
CN
24
25/* DM Timer base addresses */
26#define DM_TIMER0_BASE 0x4802C000
27#define DM_TIMER1_BASE 0x4802E000
28#define DM_TIMER2_BASE 0x48040000
29#define DM_TIMER3_BASE 0x48042000
30#define DM_TIMER4_BASE 0x48044000
31#define DM_TIMER5_BASE 0x48046000
32#define DM_TIMER6_BASE 0x48048000
33#define DM_TIMER7_BASE 0x4804A000
34
35/* GPIO Base address */
36#define GPIO0_BASE 0x48032000
37#define GPIO1_BASE 0x4804C000
5655108a
CN
38
39/* BCH Error Location Module */
40#define ELM_BASE 0x48080000
41
5655108a
CN
42/* EMIF Base address */
43#define EMIF4_0_CFG_BASE 0x4C000000
44#define EMIF4_1_CFG_BASE 0x4D000000
5655108a 45
5655108a
CN
46/* DDR Base address */
47#define DDR_CTRL_ADDR 0x44E10E04
48#define DDR_CONTROL_BASE_ADDR 0x44E11404
5655108a
CN
49
50/* UART */
48c7f771
LCR
51#if CONFIG_CONS_INDEX == 1
52# define DEFAULT_UART_BASE UART0_BASE
53#elif CONFIG_CONS_INDEX == 2
54# define DEFAULT_UART_BASE UART1_BASE
55#elif CONFIG_CONS_INDEX == 3
56# define DEFAULT_UART_BASE UART2_BASE
57#elif CONFIG_CONS_INDEX == 4
58# define DEFAULT_UART_BASE UART3_BASE
59#elif CONFIG_CONS_INDEX == 5
60# define DEFAULT_UART_BASE UART4_BASE
61#elif CONFIG_CONS_INDEX == 6
62# define DEFAULT_UART_BASE UART5_BASE
63#endif
5655108a 64
8eb16b7f
IY
65/* GPMC Base address */
66#define GPMC_BASE 0x50000000
67
e79cd8eb 68/* CPSW Config space */
81df2bab 69#define CPSW_BASE 0x4A100000
000820b5 70
fbd6295d
LV
71/* Control status register */
72#define CTRL_CRYSTAL_FREQ_SRC_MASK (1 << 31)
73#define CTRL_CRYSTAL_FREQ_SRC_SHIFT 31
74#define CTRL_CRYSTAL_FREQ_SELECTION_MASK (0x3 << 29)
75#define CTRL_CRYSTAL_FREQ_SELECTION_SHIFT 29
76#define CTRL_SYSBOOT_15_14_MASK (0x3 << 22)
77#define CTRL_SYSBOOT_15_14_SHIFT 22
78
79#define CTRL_CRYSTAL_FREQ_SRC_SYSBOOT 0x0
80#define CTRL_CRYSTAL_FREQ_SRC_EFUSE 0x1
81
82#define NUM_CRYSTAL_FREQ 0x4
83
b424aae4 84int clk_get(int clk);
5655108a 85#endif /* __AM33XX_HARDWARE_H */
This page took 0.328742 seconds and 5 git commands to generate.