aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorValentin Caron <valentin.caron@foss.st.com>2024-01-12 10:53:00 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-27 19:04:11 -0800
commit5d207f62cec8d6e6f0fb6f35495723bf3960daf7 (patch)
treea54f0ffbc51476eb8150ae086d46d61e05f1bddc /tools/perf/scripts/python
parentserial: stm32: change register's offset type from u8 to u16 (diff)
downloadlinux-5d207f62cec8d6e6f0fb6f35495723bf3960daf7.tar.gz
linux-5d207f62cec8d6e6f0fb6f35495723bf3960daf7.zip
serial: stm32: get FIFO size from hwcfg register
Since STM32MP25, FIFO size could vary regarding the STM32MPxx version. So we get this size from "hwcfgr1" register and compute threshold values corresponding to the ratio given by reference manual. As STM32MP1x, STM32MP25 and STM32H7 share the same compatible and STM32H7 doesn't have a register to get FIFO size, we force FIFO size to 16 in case of zero read from hwcfgr1 register. Signed-off-by: Valentin Caron <valentin.caron@foss.st.com> Link: https://lore.kernel.org/r/20240112095300.2004878-5-valentin.caron@foss.st.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions