]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
imx: ventana: split out common functions between SPL and uboot
authorTim Harvey <tharvey@gateworks.com>
Sat, 9 May 2015 01:28:35 +0000 (18:28 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 13:00:30 +0000 (15:00 +0200)
commit0d79c8eae73967fa47ffc45a29f466ae04c673d9
tree9aafbbbdac192a5396066d2a3e0e6d84b31c7916
parent64ce7f4f7264858d60ae417c67c9f4c92f769811
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>
board/gateworks/gw_ventana/Makefile
board/gateworks/gw_ventana/common.c [new file with mode: 0644]
board/gateworks/gw_ventana/common.h [new file with mode: 0644]
board/gateworks/gw_ventana/gw_ventana.c