public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v7 0/3] Timer support for ARM Tegra
@ 2023-01-27  7:13 Svyatoslav Ryhel
  2023-01-27  7:13 ` [PATCH v7 1/3] ARM: tegra: remap clock_osc_freq for all Tegra family Svyatoslav Ryhel
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Svyatoslav Ryhel @ 2023-01-27  7:13 UTC (permalink / raw)
  To: Rayagonda Kokatanur, Tom Warren, Thierry Reding, Marek Vasut,
	Svyatoslav Ryhel, Maxim Schwalm, Dmitry Osipenko,
	Jonas Schwöbel, Agneli, Heinrich Schuchardt, Michal Simek,
	Stefan Roese, Eugen Hristev, Michael Walle, Simon Glass, Jim Liu,
	William Zhang, Rick Chen, Stefan Herbrechtsmeier, Andre Przywara,
	Jaehoon Chung
  Cc: u-boot

- ARM: tegra: remap clock_osc_freq for all Tegra family
Enum clock_osc_freq was designed to use only with T20.
This patch remaps it to use additional frequencies, added in
T30+ SoC while maintaining backwards compatibility with T20.

- drivers: timer: add timer driver for ARMv7 based Tegra devices
Add timer support for T20/T30/T114/T124 and T210 based devices.
Driver is based on DM, has device tree support and can be
used on SPL and early boot stage.

Arm64 Tegra (apart T210) according to comment in tegra-common.h use
architected timer.

- ARM: tegra: include timer as default option
Enable TIMER as default option for all Tegra devices and
enable TEGRA_TIMER for TEGRA_ARMV7_COMMON and TEGRA210.
Additionally enable SPL_TIMER if build as SPL part and
drop deprecated configs from common header.

P. S. I have no arm64 Tegra and according to comment in 
tegra-common.h
Use the Tegra US timer on ARMv7, but the architected timer on ARMv8.

---
Changeog from V6
 - use clk_m as timer calibration clock (this should properly fix T210)
 - enable timer for T210

Changed from v5:
 - added paz00 tester

Changed from v4:
 - added comments

Changed from v3:
 - removed BOOTSTAGE ifdefs
 - use early timer on boot stage unconditionally
---
Svyatoslav Ryhel (3):
  ARM: tegra: remap clock_osc_freq for all Tegra family
  drivers: timer: add driver for ARMv7 based Tegra devices and T210
  ARM: tegra: include timer as default option

 arch/arm/Kconfig                        |   1 +
 arch/arm/include/asm/arch-tegra/clock.h |   9 +-
 arch/arm/mach-tegra/Kconfig             |   3 +
 arch/arm/mach-tegra/clock.c             |  17 +++-
 arch/arm/mach-tegra/cpu.c               |  70 ++++++++++---
 arch/arm/mach-tegra/tegra114/clock.c    |  13 +--
 arch/arm/mach-tegra/tegra124/clock.c    |  13 +--
 arch/arm/mach-tegra/tegra20/clock.c     |   4 +-
 arch/arm/mach-tegra/tegra210/clock.c    |  22 +---
 arch/arm/mach-tegra/tegra30/clock.c     |  10 +-
 drivers/timer/Kconfig                   |   8 ++
 drivers/timer/Makefile                  |   1 +
 drivers/timer/tegra-timer.c             | 130 ++++++++++++++++++++++++
 drivers/usb/host/ehci-tegra.c           |  46 +++++++--
 include/configs/tegra-common.h          |   6 --
 15 files changed, 274 insertions(+), 79 deletions(-)
 create mode 100644 drivers/timer/tegra-timer.c

-- 
2.37.2


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-02-02 18:03 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-27  7:13 [PATCH v7 0/3] Timer support for ARM Tegra Svyatoslav Ryhel
2023-01-27  7:13 ` [PATCH v7 1/3] ARM: tegra: remap clock_osc_freq for all Tegra family Svyatoslav Ryhel
2023-01-27  7:13 ` [PATCH v7 2/3] drivers: timer: add driver for ARMv7 based Tegra devices and T210 Svyatoslav Ryhel
2023-01-27  7:13 ` [PATCH v7 3/3] ARM: tegra: include timer as default option Svyatoslav Ryhel
2023-01-27 17:15 ` [PATCH v7 0/3] Timer support for ARM Tegra Thierry Reding
2023-01-27 20:27   ` Svyatoslav R.
2023-01-31 15:16     ` Thierry Reding
2023-01-31 15:24       ` Svyatoslav Ryhel
2023-01-31 15:18     ` Tom Warren
2023-01-31 15:26       ` Svyatoslav Ryhel
2023-01-31 20:27         ` Tom Warren
2023-01-31 21:53           ` Svyatoslav Ryhel
2023-02-02 17:54             ` Tom Warren
2023-02-02 18:02               ` Svyatoslav Ryhel
2023-02-01  8:58           ` Svyatoslav Ryhel
2023-02-01 17:36             ` Tom Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox