imx: ventana: split out common functions between SPL and uboot
Move shared functions used by both SPL and U-Boot to common.c:
- setup_iomux_uart() and uart pad config
- gpio pad config
In the process also moved the following to common.c in preparation for
calling it from the SPL:
- split i2c setup into a shared function
- move pmic init to setup_pmic() function to call directly from
power_init_board()
- split gpio setup into early (iomux and default pin config)
and late (output configuration based on env)
Signed-off-by:
Tim Harvey <tharvey@gateworks.com>
Showing
- board/gateworks/gw_ventana/Makefile 1 addition, 1 deletionboard/gateworks/gw_ventana/Makefile
- board/gateworks/gw_ventana/common.c 823 additions, 0 deletionsboard/gateworks/gw_ventana/common.c
- board/gateworks/gw_ventana/common.h 98 additions, 0 deletionsboard/gateworks/gw_ventana/common.h
- board/gateworks/gw_ventana/gw_ventana.c 11 additions, 863 deletionsboard/gateworks/gw_ventana/gw_ventana.c
board/gateworks/gw_ventana/common.c
0 → 100644
This diff is collapsed.
board/gateworks/gw_ventana/common.h
0 → 100644
This diff is collapsed.
Please register or sign in to comment