Skip to content

Commit 91bb6e1

Browse files
committed
ARM: tegra: include timer as default option
Enable TIMER as default option for add Tegra devices and enable TEGRA_TIMER for TEGRA_ARMV7_COMMON. Additionally enable SPL_TIMER if build as SPL part and drop deprecated configs from common header. Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
1 parent 16a60bf commit 91bb6e1

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

arch/arm/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,6 +1334,7 @@ config ARCH_TEGRA
13341334
select GPIO_EXTRA_HEADER
13351335
imply DISTRO_DEFAULTS
13361336
imply FAT_WRITE
1337+
imply SPL_TIMER if SPL
13371338

13381339
config ARCH_VEXPRESS64
13391340
bool "Support ARMv8 Arm Ltd. VExpress based boards and models"

arch/arm/mach-tegra/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ config TEGRA_COMMON
6666
select MISC
6767
select OF_CONTROL
6868
select SPI
69+
select TIMER
6970
imply CMD_DM
7071
imply CRC32_VERIFY
7172

@@ -91,6 +92,7 @@ config TEGRA_ARMV7_COMMON
9192
select TEGRA_NO_BPMP
9293
select TEGRA_PINCTRL
9394
select TEGRA_PMC
95+
select TEGRA_TIMER
9496

9597
config TEGRA_ARMV8_COMMON
9698
bool "Tegra 64-bit common options"

include/configs/tegra-common.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515

1616
#include <asm/arch/tegra.h> /* get chip and board defs */
1717

18-
/* Use the Tegra US timer on ARMv7, but the architected timer on ARMv8. */
19-
#ifndef CONFIG_ARM64
20-
#define CONFIG_SYS_TIMER_RATE 1000000
21-
#define CONFIG_SYS_TIMER_COUNTER NV_PA_TMRUS_BASE
22-
#endif
23-
2418
/* Environment */
2519

2620
/*

0 commit comments

Comments
 (0)