]> 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)
commit372539012999a1a418b94c741461ef1c1ef125b5
treebf5a486487915d9be718098eb4683787fba052dc
parent342e2702d78ad924243abe39b58c28fcfc950e8e
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