]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: set up IPA v4.5 Qtime configuration
authorAlex Elder <elder@linaro.org>
Mon, 30 Nov 2020 23:37:10 +0000 (17:37 -0600)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Dec 2020 02:05:28 +0000 (18:05 -0800)
commit2df9a7adc1895492b9f4286b0ac4837a07c60fd4
treebf5a486487915d9be718098eb4683787fba052dc
parentb8b465f1c78f790f2762cfe1e3f2db7e242379a8
net: ipa: set up IPA v4.5 Qtime configuration

IPA v4.5 introduces a new unified timer architecture driven on the
19.2 MHz SoC crystal oscillator (XO).  It is independent of the IPA
core clock and avoids some duplication.

Lower-resolution time stamps are derived from this by using only the
high-order bits of the 19.2 MHz Qtime clock.  And timers are derived
from this based on "pulse generators" configured to fire at a fixed
rate based on the Qtime clock.

This patch introduces ipa_qtime_config(), which configures the Qtime
mechanism for use.  It also adds to the IPA register definitions
related to timers and time stamping.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_main.c
drivers/net/ipa/ipa_reg.h