09 Apr, 2020
1 commit
-
Allows building and compile-testing the i.MX TPM driver also
for ARM64. The delay_timer is only supported on ARMv7.Signed-off-by: Anson Huang
Signed-off-by: Daniel Lezcano
Link: https://lore.kernel.org/r/1585715222-24489-1-git-send-email-Anson.Huang@nxp.com
17 Mar, 2020
1 commit
-
There is nothing in use from of_address.h/of_irq.h, remove them.
Signed-off-by: Anson Huang
Signed-off-by: Daniel Lezcano
Link: https://lore.kernel.org/r/1584412549-18354-1-git-send-email-Anson.Huang@nxp.com
19 Dec, 2018
2 commits
-
i.MX TPM needs "ipg" clock for register access and "per" clock for
timer function, the driver gets "ipg" clock by searching the clock
name, but timer-of initialization will get first clock in device
tree TPM node since no clock name specified in of_clk, that means
the "per" clock MUST be the first clock entry in device tree TPM
node, this patch specifies clock name for of_clk to avoid this
restriction, it makes TPM driver work properly with different sequence
of clock entries in device tree TPM node.Signed-off-by: Anson Huang
Signed-off-by: Daniel Lezcano -
Convert the driver to use the timer_of helpers. This allows to handle
timer base, clock and irq using common timer_of driver and it
simplifies the code.Signed-off-by: Anson Huang
Signed-off-by: Daniel Lezcano
23 May, 2018
1 commit
-
Adopt the SPDX license identifier headers to ease license compliance
management.Signed-off-by: Fabio Estevam
Signed-off-by: Daniel Lezcano
19 Apr, 2018
1 commit
-
The additional brakects added to tpm_set_next_event's return value
computation causes (int) forced type conversion NOT taking effect, and the
incorrect value return will cause various system timer issue, like RCU
stall etc..Remove the additional brackets to make sure tpm_set_next_event always
returns correct value.Fixes: 059ab7b82eec ("clocksource/drivers/imx-tpm: Add imx tpm timer support")
Signed-off-by: Anson Huang
Signed-off-by: Thomas Gleixner
Acked-by: Dong Aisheng
Cc: stable@vger.kernel.org
Cc: daniel.lezcano@linaro.org
Cc: Linux-imx@nxp.com
Link: https://lkml.kernel.org/r/1524117883-2484-1-git-send-email-Anson.Huang@nxp.com
31 Mar, 2018
3 commits
-
Different TPM modules have different width counters which is 16-bit or 32-bit,
the counter width can be read from TPM_PARAM register bit[23:16], this patch
adds dynamic check for counter width to support both 16-bit and 32-bit TPM
modules.Signed-off-by: Anson Huang
Signed-off-by: Daniel Lezcano -
According to i.MX7ULP reference manual, TPM_SC_CPWMS can ONLY be written when
counter is disabled, TPM_SC_TOF is write-1-clear, TPM_C0SC_CHF is also
write-1-clear, correct these registers initialization flow;Signed-off-by: Anson Huang
Signed-off-by: Daniel Lezcano -
The clock name should be ipg instead of igp.
Signed-off-by: Anson Huang
Signed-off-by: Daniel Lezcano
29 Aug, 2017
1 commit
-
IMX Timer/PWM Module (TPM) supports both timer and pwm function while
this patch only adds the timer support. PWM would be added later.The TPM counter, compare and capture registers are clocked by an
asynchronous clock that can remain enabled in low power modes.NOTE: We observed in a very small probability, the bus fabric
contention between GPU and A7 may results a few cycles delay
of writing CNT registers which may cause the min_delta event got
missed, so we need add a ETIME check here in case it happened.Cc: Daniel Lezcano
Cc: Arnd Bergmann
Cc: Thomas Gleixner
Cc: Shawn Guo
Cc: Anson Huang
Cc: Bai Ping
Signed-off-by: Dong Aisheng
Signed-off-by: Daniel Lezcano