u-boot/drivers/power/pmic
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
..
ab8500.c power: pmic: Add driver for ST-Ericsson AB8500 via PRCMU 2021-07-14 16:48:14 -04:00
act8846.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
as3722.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
as3722_gpio.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
axp.c power: pmic: axp: Bind regulators from the DT 2023-01-23 01:18:31 +00:00
bd71837.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
da9063.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
fan53555.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
i2c_pmic_emul.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
Kconfig power: pmic: rk8xx: Use sysreset implementation of the poweroff command 2023-10-07 16:50:15 +08:00
lp873x.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
lp87565.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
Makefile power: Drop unused muic_max8997 driver 2023-02-07 14:33:49 -05:00
max8997.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
max8998.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
max77686.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
mc34708.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mp5416.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
palmas.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
pca9450.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
pfuze100.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
pmic-uclass.c dm: pmic: ignore disabled node in pmic_bind_children 2022-12-12 11:25:28 +01:00
pmic_hi6553.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pmic_ltc3676.c global: Migrate CONFIG_POWER_LTC3676_I2C_ADDR to CFG 2022-12-23 10:14:52 -05:00
pmic_mc34vr500.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmic_pca9450.c power: pca9450: add a new parameter for power_pca9450_init 2021-04-08 09:18:29 +02:00
pmic_pfuze100.c global: Migrate CONFIG_POWER_PFUZE100_I2C_ADDR to CFG 2022-12-23 10:14:52 -05:00
pmic_pfuze3000.c global: Migrate CONFIG_POWER_PFUZE3000_I2C_ADDR to CFG 2022-12-23 10:14:52 -05:00
pmic_qcom.c pmic: Convert pm8916 driver to a generic Qcom PMIC driver 2022-08-26 10:55:45 -04:00
pmic_tps62362.c treewide: Convert macro and uses of __section(foo) to __section("foo") 2021-05-24 14:21:30 -04:00
pmic_tps65217.c power: pmic: Provide DM_PMIC support for tps65217 driver 2022-04-05 15:51:52 -04:00
pmic_tps65218.c treewide: Convert macro and uses of __section(foo) to __section("foo") 2021-05-24 14:21:30 -04:00
pmic_tps65910.c WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
pmic_tps65910_dm.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
rk8xx.c power: pmic: rk8xx: Fix power-on source check in SPL 2023-10-07 16:52:48 +08:00
rn5t567.c drivers: power: pmic: Add support for rn5t568 PMIC 2022-11-07 22:45:05 +01:00
s2mps11.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
s5m8767.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
sandbox.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
stpmic1.c pmic: stpmic1: support new prefix node name for regulator 2023-06-16 11:16:31 +02:00
tps65090.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
tps65219.c power: add driver for the TPS65219 PMIC 2022-05-09 13:40:24 -04:00
tps65941.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00