summaryrefslogtreecommitdiff
path: root/board/gateworks/gw_ventana/common.c
Commit message (Collapse)AuthorAgeLines
* imx: ventana: detect pmic using i2c probe instead of board modelTim Harvey2015-05-15-3/+7
| | | | | | | | Avoid requiring board-model and probe pmic by its i2c address. This is in preparation for being able to call pmic_setup() from SPL and not need board type. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
* imx: ventana: split out common functions between SPL and ubootTim Harvey2015-05-15-0/+823
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>