Skip to content

Commit

Permalink
[review] drivers: regulator: IO domain regulators for STM32MP13
Browse files Browse the repository at this point in the history
Rename stm32mp13 IO domain regulator driver source file and
change related header file name and config switch accordingly.

Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
  • Loading branch information
etienne-lms committed Nov 22, 2023
1 parent 389fe2b commit 5ed1824
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 303 deletions.
2 changes: 1 addition & 1 deletion core/arch/arm/plat-stm32mp1/conf.mk
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ $(call force,CFG_SECONDARY_INIT_CNTFRQ,n)
$(call force,CFG_STM32_GPIO,y)
$(call force,CFG_STM32_VREFBUF,y)
$(call force,CFG_STM32MP_CLK_CORE,y)
$(call force,CFG_STM32MP1_REGULATOR_IOD,y)
$(call force,CFG_STM32MP1_SHARED_RESOURCES,n)
$(call force,CFG_STM32MP13_CLK,y)
$(call force,CFG_STM32MP13_REGULATOR_IOD,y)
$(call force,CFG_TEE_CORE_NB_CORE,1)
$(call force,CFG_WITH_NSEC_GPIOS,n)
CFG_EXTERNAL_DT ?= n
Expand Down
296 changes: 0 additions & 296 deletions core/drivers/regulator/stm32mp1_regulator_iod.c

This file was deleted.

2 changes: 1 addition & 1 deletion core/drivers/regulator/sub.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ srcs-$(CFG_DT) += regulator_dt.c
srcs-$(CFG_REGULATOR_FIXED) += regulator_fixed.c
srcs-$(CFG_REGULATOR_GPIO) += regulator_gpio.c
srcs-$(CFG_STM32_VREFBUF) += stm32_vrefbuf.c
srcs-$(CFG_STM32MP1_REGULATOR_IOD) += stm32mp1_regulator_iod.c
srcs-$(CFG_STM32MP13_REGULATOR_IOD) += stm32mp13_regulator_iod.c
10 changes: 5 additions & 5 deletions core/include/drivers/stm32mp1_regulator_iod.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Copyright (c) 2021-2023, STMicroelectronics
*/

#ifndef __DRIVERS_STM32MP1_REGULATOR_IOD_H
#define __DRIVERS_STM32MP1_REGULATOR_IOD_H
#ifndef __DRIVERS_STM32MP13_REGULATOR_IOD_H
#define __DRIVERS_STM32MP13_REGULATOR_IOD_H

#include <drivers/regulator.h>

Expand All @@ -14,10 +14,10 @@ enum iod_regulator_id {
IOD_REGU_COUNT
};

#ifdef CFG_STM32MP1_REGULATOR_IOD
#ifdef CFG_STM32MP13_REGULATOR_IOD
struct regulator *stm32mp1_get_iod_regulator(enum iod_regulator_id index);
#else
static inline struct regulator *
stm32mp1_get_iod_regulator(enum iod_regulator_id id __unused) { return NULL; }
#endif /* CFG_STM32MP1_REGULATOR_IOD */
#endif /* __DRIVERS_STM32MP1_REGULATOR_IOD_H */
#endif /* CFG_STM32MP13_REGULATOR_IOD */
#endif /* __DRIVERS_STM32MP13_REGULATOR_IOD_H */

0 comments on commit 5ed1824

Please sign in to comment.