# HG changeset patch # User Paul Boddie # Date 1706746148 -3600 # Node ID a993c73448621060b7ab00d980068f8d2f641fd3 # Parent 487c3de9908c4743173d42a30e57c40b337caffc Fixed TCU clock source. diff -r 487c3de9908c -r a993c7344862 pkg/devices/lib/cpm/src/x1600.cc --- a/pkg/devices/lib/cpm/src/x1600.cc Fri Dec 15 18:10:13 2023 +0100 +++ b/pkg/devices/lib/cpm/src/x1600.cc Thu Feb 01 01:09:08 2024 +0100 @@ -3,7 +3,8 @@ * provided by the X1600 and related SoCs. The power management * functionality could be exposed using a separate driver. * - * Copyright (C) 2017, 2018, 2020, 2021, 2023 Paul Boddie + * Copyright (C) 2017, 2018, 2020, 2021, 2023, + * 2024 Paul Boddie * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -298,7 +299,10 @@ clock_sadc((Source(mux_hclock2)), (Control(Clock_gate_sadc))), - clock_timer((Source(mux_pclock)), (Control(Clock_gate_timer))), + // Input pins can also be configured for the timer. + // NOTE: Support the prescaling for EXCLK. + + clock_timer((Source(mux_external)), (Control(Clock_gate_timer))), clock_uart0((Source(mux_external)), (Control(Clock_gate_uart0))),