]> git.dujemihanovic.xyz Git - u-boot.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)
commit2c0bdcacf3bb4045d96d567c114606acf1a9b257
treea2ff3be136d6c886d8add31efe7d8d471ffc6359
parent48d7e589457212c2a284a27991f82fca1f194af7
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