u-boot/drivers/power
Jonas Karlman c8ebcc921f power: pmic: rk8xx: Fix power-on source check in SPL
The commit 30975fb73d ("rockchip: Add option to prevent booting on
power plug-in") introduce an option to prevent booting a device when the
device was powered on due to power plug-in instead of pressing a power
button.

This feature works by checking the power-on source during PMIC probe
and powers off the device if power-on source was power plug-in.
This check currently runs very late at PMIC probe in U-Boot proper.

Fix so that the power-on source check can work at probe time in SPL.
Also enable probe after bind and remove the PMIC banner in SPL.

With this we can use ROCKCHIP_RK8XX_DISABLE_BOOT_ON_POWERON and
SPL_PMIC_RK8XX to power off the device very quickly after TPL instead
of after TF-A and U-Boot proper has been loaded and run.

  DDR V1.18 f366f69a7d typ 23/07/17-15:48:58
  ln
  LP4/4x derate en, other dram:1x trefi
  ddrconfig:7
  LPDDR4X, 324MHz
  BW=32 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=8192MB

  change to: 324MHz
  clk skew:0x64

  change to: 528MHz
  clk skew:0x58

  change to: 780MHz
  clk skew:0x58

  change to: 1056MHz(final freq)
  clk skew:0x40
  out
  Power Off due to plug-in event

Fixes: 30975fb73d ("rockchip: Add option to prevent booting on power plug-in")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2023-10-07 16:52:48 +08:00
..
acpi_pmc spl: Ensure all SPL symbols in Kconfig have some SPL dependency 2022-07-07 09:29:08 -04:00
domain imx: mach: correct SCU API usage 2023-07-13 11:29:40 +02:00
pmic power: pmic: rk8xx: Fix power-on source check in SPL 2023-10-07 16:52:48 +08:00
regulator regulator: rk8xx: Return correct voltage for switchout converters 2023-10-07 16:49:41 +08:00
axp152.c power: axp: Avoid do_poweroff conflict with sysreset 2021-10-25 14:50:54 +01:00
axp209.c power: axp: Avoid do_poweroff conflict with sysreset 2021-10-25 14:50:54 +01:00
axp221.c power: axp: Avoid do_poweroff conflict with sysreset 2021-10-25 14:50:54 +01:00
axp305.c power: axp: Avoid do_poweroff conflict with sysreset 2021-10-25 14:50:54 +01:00
axp809.c power: axp: Avoid do_poweroff conflict with sysreset 2021-10-25 14:50:54 +01:00
axp818.c power: axp: Avoid do_poweroff conflict with sysreset 2021-10-25 14:50:54 +01:00
exynos-tmu.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
Kconfig Convert CONFIG_TPS6586X_POWER et al to Kconfig 2022-12-05 16:08:37 -05:00
Makefile power: Drop unused muic_max77693 driver and mfd code 2023-02-07 14:33:49 -05:00
mt6323.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
palmas.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
power_core.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
power_dialog.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
power_fsl.c global: Migrate CONFIG_FSL_PMIC_MODE to CFG 2022-12-23 10:09:43 -05:00
power_i2c.c imx: imx8mn_evk: correct stack/malloc adress 2021-01-23 11:30:30 +01:00
power_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sy8106a.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tps6586x.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
twl4030.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
twl6030.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00