]> git.baikalelectronics.ru Git - uboot.git/commit
timer: fttmr010: return a previously deleted driver now ported to DM
authorSergei Antonov <saproj@gmail.com>
Mon, 13 Feb 2023 17:34:36 +0000 (20:34 +0300)
committerTom Rini <trini@konsulko.com>
Mon, 6 Mar 2023 22:03:56 +0000 (17:03 -0500)
commit9fed86b124cfa80f68ca4de57326feeac9e36916
treea2ff3be136d6c886d8add31efe7d8d471ffc6359
parent949ab67cebad5e0d2688d6031ea40337e7db5c96
timer: fttmr010: return a previously deleted driver now ported to DM

The fttmr010 timer driver was deleted by
commit 29fc6f24926e ("ARM: remove a320evb board support")
The original source file was: arch/arm/cpu/arm920t/a320/timer.c

Return the driver to the codebase in a DM compatible form.
A platform using fttmr010 will be submitted later.

This hardware is described in the datasheet [1], starting from page 348.
According to the datasheet, there is a Revision Register at offset 0x3C,
which is not present in 'struct fttmr010'. Add it and debug() print
revision in probe function.

[1]
https://bitbucket.org/Kasreyn/mkrom-uc7112lx/src/master/documents/FIC8120_DS_v1.2.pdf

Signed-off-by: Sergei Antonov <saproj@gmail.com>
drivers/timer/Kconfig
drivers/timer/Makefile
drivers/timer/fttmr010_timer.c [new file with mode: 0644]
include/faraday/fttmr010.h