]> git.baikalelectronics.ru Git - uboot.git/commit
gpio: stm32f7: replace ODR update by BSRR write
authorPatrice Chotard <patrice.chotard@st.com>
Thu, 9 Aug 2018 09:57:57 +0000 (11:57 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 11 Sep 2018 00:48:18 +0000 (20:48 -0400)
commitce0ebdc66ce14ed85c3b0f35b232b2c897a8d791
tree2222d28647f2e02c00723af4d73412afb5673b6a
parent2db78ceffa0199239af323d14af63ddcdc72af5f
gpio: stm32f7: replace ODR update by BSRR write

Replace clrsetbits on ODR register (2 operations: one read + one write)
by writing on the correct bit (SET or RESET) of the BSRR register
(only 1 write operation).

Moreover this register if safe for simultaneous access by 2 master on
the bus.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
drivers/gpio/stm32f7_gpio.c