mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
Cr50 has different gpio configurations for different boards. They cannot be determined until board_init. We want a way to delay enabling the gpio interrupts until the board type can be determined. This change adds a gpio flag, GPIO_INT_DISABLE. When set gpio_pre_init will setup the interrupt, but not enable it. board_init then enables all of the interrupts with init_interrupts. BUG=b:35587228 BRANCH=cr50 TEST=use 'gpiocfg' to verify the setup hasn't changed. Add print statements to verify that gpio_pre_init skips enabling the interrupt on any gpio that has GPIO_INT_DISABLE set Change-Id: I91f73297ab80781b99aa82eda479ae311c13cb77 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/523808 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>