Skip to content

Commit

Permalink
ARM: tegra: include timer as default option
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
clamor-s committed Nov 25, 2022
1 parent 16a60bf commit 91bb6e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,7 @@ config ARCH_TEGRA
select GPIO_EXTRA_HEADER
imply DISTRO_DEFAULTS
imply FAT_WRITE
imply SPL_TIMER if SPL

config ARCH_VEXPRESS64
bool "Support ARMv8 Arm Ltd. VExpress based boards and models"
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/mach-tegra/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ config TEGRA_COMMON
select MISC
select OF_CONTROL
select SPI
select TIMER
imply CMD_DM
imply CRC32_VERIFY

Expand All @@ -91,6 +92,7 @@ config TEGRA_ARMV7_COMMON
select TEGRA_NO_BPMP
select TEGRA_PINCTRL
select TEGRA_PMC
select TEGRA_TIMER

config TEGRA_ARMV8_COMMON
bool "Tegra 64-bit common options"
Expand Down
6 changes: 0 additions & 6 deletions include/configs/tegra-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@

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

/* Use the Tegra US timer on ARMv7, but the architected timer on ARMv8. */
#ifndef CONFIG_ARM64
#define CONFIG_SYS_TIMER_RATE 1000000
#define CONFIG_SYS_TIMER_COUNTER NV_PA_TMRUS_BASE
#endif

/* Environment */

/*
Expand Down

0 comments on commit 91bb6e1

Please sign in to comment.