diff mbox series

[v5,12/16] mach-snapdragon: call regulators_enable_boot_on()

Message ID 20240328-b4-qcom-livetree-v5-12-4e98228b3d03@linaro.org
State Superseded
Headers show
Series Qualcomm platform USB support | expand

Commit Message

Caleb Connolly March 28, 2024, 5:59 p.m. UTC
Make sure we power on any boot-on or always-on regulators. These are
used for peripherals like USB on some platforms.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
---
 arch/arm/mach-snapdragon/board.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Sumit Garg April 1, 2024, 4:48 a.m. UTC | #1
On Thu, 28 Mar 2024 at 23:29, Caleb Connolly <caleb.connolly@linaro.org> wrote:
>
> Make sure we power on any boot-on or always-on regulators. These are
> used for peripherals like USB on some platforms.
>
> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
> ---
>  arch/arm/mach-snapdragon/board.c | 2 ++
>  1 file changed, 2 insertions(+)
>

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>

-Sumit

> diff --git a/arch/arm/mach-snapdragon/board.c b/arch/arm/mach-snapdragon/board.c
> index 65e4c61e866a..3d5994c87886 100644
> --- a/arch/arm/mach-snapdragon/board.c
> +++ b/arch/arm/mach-snapdragon/board.c
> @@ -15,8 +15,9 @@
>  #include <dm/device.h>
>  #include <dm/pinctrl.h>
>  #include <dm/uclass-internal.h>
>  #include <dm/read.h>
> +#include <power/regulator.h>
>  #include <env.h>
>  #include <init.h>
>  #include <linux/arm-smccc.h>
>  #include <linux/bug.h>
> @@ -160,8 +161,9 @@ void __weak qcom_board_init(void)
>  }
>
>  int board_init(void)
>  {
> +       regulators_enable_boot_on(false);
>         show_psci_version();
>         qcom_of_fixup_nodes();
>         qcom_board_init();
>         return 0;
>
> --
> 2.44.0
>
Neil Armstrong April 2, 2024, 8:32 a.m. UTC | #2
On 28/03/2024 18:59, Caleb Connolly wrote:
> Make sure we power on any boot-on or always-on regulators. These are
> used for peripherals like USB on some platforms.
> 
> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
> ---
>   arch/arm/mach-snapdragon/board.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm/mach-snapdragon/board.c b/arch/arm/mach-snapdragon/board.c
> index 65e4c61e866a..3d5994c87886 100644
> --- a/arch/arm/mach-snapdragon/board.c
> +++ b/arch/arm/mach-snapdragon/board.c
> @@ -15,8 +15,9 @@
>   #include <dm/device.h>
>   #include <dm/pinctrl.h>
>   #include <dm/uclass-internal.h>
>   #include <dm/read.h>
> +#include <power/regulator.h>
>   #include <env.h>
>   #include <init.h>
>   #include <linux/arm-smccc.h>
>   #include <linux/bug.h>
> @@ -160,8 +161,9 @@ void __weak qcom_board_init(void)
>   }
>   
>   int board_init(void)
>   {
> +	regulators_enable_boot_on(false);
>   	show_psci_version();
>   	qcom_of_fixup_nodes();
>   	qcom_board_init();
>   	return 0;
> 

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
diff mbox series

Patch

diff --git a/arch/arm/mach-snapdragon/board.c b/arch/arm/mach-snapdragon/board.c
index 65e4c61e866a..3d5994c87886 100644
--- a/arch/arm/mach-snapdragon/board.c
+++ b/arch/arm/mach-snapdragon/board.c
@@ -15,8 +15,9 @@ 
 #include <dm/device.h>
 #include <dm/pinctrl.h>
 #include <dm/uclass-internal.h>
 #include <dm/read.h>
+#include <power/regulator.h>
 #include <env.h>
 #include <init.h>
 #include <linux/arm-smccc.h>
 #include <linux/bug.h>
@@ -160,8 +161,9 @@  void __weak qcom_board_init(void)
 }
 
 int board_init(void)
 {
+	regulators_enable_boot_on(false);
 	show_psci_version();
 	qcom_of_fixup_nodes();
 	qcom_board_init();
 	return 0;