From 778afb45d2b4d712d0293dbc0a04f2d504165fae Mon Sep 17 00:00:00 2001 From: Leon Schuermann Date: Tue, 17 Nov 2020 23:21:28 +0100 Subject: [PATCH] Add SoC timer peripheral timer-uptime CLI parameter This allows enabling the uptime register in the timer core from the command line. --- litex/soc/integration/soc_core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index d96fb5347..936467e27 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -310,6 +310,9 @@ def soc_core_args(parser): # Timer parameters parser.add_argument("--no-timer", action="store_true", help="Disable Timer (default=False)") + parser.add_argument("--timer-uptime", action="store_true", + help="Add an uptime register to the timer (default=False)") + # Controller parameters parser.add_argument("--no-ctrl", action="store_true", help="Disable Controller (default=False)")