board: st: move type-c stusb1600 controller code in a driver
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 29 Jun 2020 08:34:06 +0000 (10:34 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Tue, 7 Jul 2020 14:01:23 +0000 (16:01 +0200)
commit03fb03842a1e16f89477d4a968712cc2422be217
tree419a34f964dfc4aa2d31f89fc74e2c5da89c73cc
parentd5d726d3cc47691ace3c68fa31147ad104aaf579
board: st: move type-c stusb1600 controller code in a driver

Migrate the ST Microelectronics STUSB160X Type-C controller code in
a generic I2C driver in st/common, based on Linux one in :
drivers/usb/typec/stusb160x.c

This patch simplifies the stm32mp1 board code and allows to reuse
this STUSB160X driver in other boards.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
board/st/common/Kconfig
board/st/common/Makefile
board/st/common/stusb160x.c [new file with mode: 0644]
board/st/common/stusb160x.h [new file with mode: 0644]
board/st/stm32mp1/stm32mp1.c
configs/stm32mp15_basic_defconfig
configs/stm32mp15_trusted_defconfig