Home
last modified time | relevance | path

Searched hist:"159 c52491af33ff8014ee2fa708804bb75540419" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/plat/allwinner/sun50i_h6/
H A Dsunxi_power.c159c52491af33ff8014ee2fa708804bb75540419 Sat Sep 08 23:38:58 UTC 2018 Andre Przywara <andre.przywara@arm.com> allwinner: sun50i_h6: initialise I2C just before powering down

Even though we initialise the platform part and the I2C controller
itself at boot time, we actually only access the bus on power down.
Meanwhile a rich OS might have configured the I2C pins differently or
even disabled the controller.
So repeat the platform setup and controller initialisation just before
we actually access the bus to power off the system. This is safe,
because at this point the rich OS should no longer be running.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>