aboutsummaryrefslogtreecommitdiff
path: root/include/faraday
diff options
context:
space:
mode:
authorSergei Antonov2023-02-13 20:34:36 +0300
committerTom Rini2023-03-06 17:03:56 -0500
commit2c0bdcacf3bb4045d96d567c114606acf1a9b257 (patch)
treea2ff3be136d6c886d8add31efe7d8d471ffc6359 /include/faraday
parent48d7e589457212c2a284a27991f82fca1f194af7 (diff)
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>
Diffstat (limited to 'include/faraday')
-rw-r--r--include/faraday/fttmr010.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/faraday/fttmr010.h b/include/faraday/fttmr010.h
index ec1c9895f57..5b1bef38c77 100644
--- a/include/faraday/fttmr010.h
+++ b/include/faraday/fttmr010.h
@@ -26,6 +26,7 @@ struct fttmr010 {
unsigned int cr; /* 0x30 */
unsigned int interrupt_state; /* 0x34 */
unsigned int interrupt_mask; /* 0x38 */
+ unsigned int revision; /* 0x3c */
};
/*