u-boot/arch
Quentin Schulz c9bc7f988f rockchip: puma-rk3399: use gpio-hog instead of fixed-regulator for enabling eMMC/SPI-NOR
On Haikou devkit, it is possible to disable eMMC and SPI-NOR to force
booting from SD card or USB via rkdeveloptool by toggling a switch. This
switch needs to be overridden in software to be able to access eMMC and
SPI-NOR once the device has booted from SD Card. Puma SoM can override
this pin via gpio3_d5.

Until now, fixed regulator device was abused to model this, but since
there's now support for GPIO hogs, let's use it.

Since we want to be able to boot the SPL from SD Card but give it the
ability to load U-Boot proper from a fallback medium such as eMMC and
SPI-NOR, SPL support for GPIO hogs needs to be enabled too. Support for
other kinds of regulators are not needed anymore, so let's disable them.

Cc: Quentin Schulz <foss+uboot@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2022-10-19 19:30:49 +08:00
..
arc treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
arm rockchip: puma-rk3399: use gpio-hog instead of fixed-regulator for enabling eMMC/SPI-NOR 2022-10-19 19:30:49 +08:00
m68k treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
microblaze treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
mips treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
nios2 treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
powerpc common/board_f: introduce arch_setup_dest_addr() 2022-10-06 21:05:17 -04:00
riscv riscv: Fix build against binutils 2.38 2022-10-07 08:42:51 -04:00
sandbox thermal: add sandbox driver 2022-10-11 16:03:03 -04:00
sh treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
x86 treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
xtensa treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
.gitignore
Kconfig sandbox: Convert to use driver model for SCSI 2022-09-25 13:59:50 -06:00
Kconfig.nxp Convert CONFIG_SYS_FSL_NUM_CC_PLLS to Kconfig 2022-08-12 16:10:49 -04:00
u-boot-elf.lds