]> git.ipfire.org Git - people/ms/u-boot.git/commit
serial: stm32x7: prepare the ground to STM32F4 support
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 27 Sep 2017 13:44:50 +0000 (15:44 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 8 Oct 2017 20:19:56 +0000 (16:19 -0400)
commit60a996bacb74052f7e3966a875dfdebee036d446
tree1e81c1ad2419417dc964bf3a997094e59d087b62
parent75d5853ffc304a8f1432ed50846d592113519b1f
serial: stm32x7: prepare the ground to STM32F4 support

STM32F4 serial IP is similar to F7 and H7, but registers
are not located at the same offset and some feature are
only supported by F7 and H7 version.

Registers offset must be added for each version and also
some flags indicated the supported feature.

Update registers name to match with datasheet (sr to isr,
rx_dr to rdr and tx_dr to tdr) and remove unused regs
(cr2, gtpr, rtor, and rqr).

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
drivers/serial/serial_stm32x7.c
drivers/serial/serial_stm32x7.h