mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 18:35:28 +00:00
This patch moves all I2C port initialization into configure_board to ensure the alternate function gets set properly. I2C ports should come up in their high-impedance state (Output, open-drain, output set) and then get set as alternate function. However, configure_board() runs before gpio_pre_init(), so the mode register was getting set set back to general purpose output instead of alt. function. TODO: Fix gpio_pre_init() so we do not need to explicitly handle port configuration in configure_board(). BUG=none TEST=tested on daisy using keyboard Change-Id: If837acd4f4204e467e7ed276f048b5b70ecbdb25 Signed-off-by: David Hendricks <dhendrix@chromium.org>