board: gateworks: gw_ventana: use comomn GSC driver
authorTim Harvey <tharvey@gateworks.com>
Wed, 13 Apr 2022 16:29:16 +0000 (09:29 -0700)
committerStefano Babic <sbabic@denx.de>
Thu, 21 Apr 2022 10:44:24 +0000 (12:44 +0200)
commit61cf22505339a281befc715a5e4fbcc3ccfb2999
tree528e70bf8e00d1f3dd5d63624a00957d74c172d0
parent1cb249b6b67e927b5323afabaf2c411954b2f3e4
board: gateworks: gw_ventana: use comomn GSC driver

Use the common GSC driver.

This allows us to do some additional cleanup:
 - use the GSC driver functions
 - move waiting for the EEPROM to the SPL int (it will always be ready
   after this)
 - move eeprom functions into eeprom file and elimate GSC_I2C_BUS
 - eliminate some redundant EEPROM reads (the EEPROM must be read in
   SPL before relocation, in SPL after relocation, and in U-Boot init.
   All subsequent uses can use the global structure)
 - remove unnecessary header files and alphabatize includes

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
15 files changed:
arch/arm/mach-imx/mx6/Kconfig
board/gateworks/gw_ventana/Kconfig
board/gateworks/gw_ventana/Makefile
board/gateworks/gw_ventana/common.c
board/gateworks/gw_ventana/common.h
board/gateworks/gw_ventana/eeprom.c
board/gateworks/gw_ventana/eeprom.h [moved from board/gateworks/gw_ventana/ventana_eeprom.h with 82% similarity]
board/gateworks/gw_ventana/gsc.h [deleted file]
board/gateworks/gw_ventana/gw_ventana.c
board/gateworks/gw_ventana/gw_ventana_spl.c
configs/gwventana_emmc_defconfig
configs/gwventana_gw5904_defconfig
configs/gwventana_nand_defconfig
include/configs/gw_ventana.h
scripts/config_whitelist.txt