stm32mp1: update I2C and PMIC drivers
authorYann Gautier <yann.gautier@st.com>
Thu, 14 Feb 2019 10:15:03 +0000 (11:15 +0100)
committerYann Gautier <yann.gautier@st.com>
Thu, 14 Feb 2019 10:20:23 +0000 (11:20 +0100)
commitd82d4ff0666711067328d2d34e2bdc009e84969f
tree3203ded0e66e39a0b8e1a7fd1fba64cd736931ee
parentdfdb057a179556a48e313d2c884af3f877530b7e
stm32mp1: update I2C and PMIC drivers

Regulator configuration at boot takes more information from DT.
I2C configuration from DT is done in I2C driver.
I2C driver manages more transfer modes.
The min voltage of buck1 should also be increased to 1.2V,
else the platform does not boot.

Heavily modifies stm32_i2c.c since many functions move inside the source
file to remove redundant declarations.

Change-Id: I0bee5d776cf3ff15e687427cd6abc06ab237d025
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Signed-off-by: Nicolas LE BAYON <nicolas.le.bayon@st.com>
drivers/st/ddr/stm32mp1_ddr.c
drivers/st/i2c/stm32_i2c.c
drivers/st/pmic/stm32mp_pmic.c
drivers/st/pmic/stpmic1.c
fdts/stm32mp157c-ed1.dts
include/drivers/st/stm32_i2c.h
include/drivers/st/stm32mp_pmic.h
plat/st/stm32mp1/bl2_plat_setup.c