Skip to content

Commit

Permalink
plat-stm32mp1: remove PMIC registering to shared_resources driver
Browse files Browse the repository at this point in the history
Remove registering of STM32MP1 PMIC driver to shared_resources driver
that is deprecated since integration of the firewall framework and
will soon be removed.

Signed-off-by: Etienne Carriere <[email protected]>
  • Loading branch information
etienne-lms committed Dec 12, 2024
1 parent 3d706ce commit 0df1333
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions core/arch/arm/plat-stm32mp1/drivers/stm32mp1_pmic.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,21 +670,6 @@ void stm32mp_put_pmic(void)
stm32_i2c_suspend(i2c_handle);
}

static void register_non_secure_pmic(void)
{
/* Allow this function to be called when STPMIC1 not used */
if (!i2c_handle->base.pa)
return;

stm32mp_register_non_secure_periph_iomem(i2c_handle->base.pa);
}

static void register_secure_pmic(void)
{
stm32mp_register_secure_periph_iomem(i2c_handle->base.pa);
register_pm_driver_cb(pmic_pm, NULL, "stm32mp1-pmic");
}

static TEE_Result initialize_pmic(const void *fdt, int pmic_node)
{
unsigned long pmic_version = 0;
Expand All @@ -702,9 +687,7 @@ static TEE_Result initialize_pmic(const void *fdt, int pmic_node)
stm32mp_put_pmic();

if (dt_pmic_is_secure())
register_secure_pmic();
else
register_non_secure_pmic();
register_pm_driver_cb(pmic_pm, NULL, "stm32mp1-pmic");

parse_regulator_fdt_nodes(fdt, pmic_node);

Expand Down

0 comments on commit 0df1333

Please sign in to comment.