diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2022-05-20 18:24:41 +0200 |
---|---|---|
committer | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2022-06-17 09:58:21 +0200 |
commit | 3865a7ec9523122c4932d8e8d4b406d60884e8ae (patch) | |
tree | 4a3c9d4f0a36d667095d4d3101b293cb85ed8bdc /arch/arm/mach-stm32mp/include | |
parent | 2ff0866b45e8069753b8f962e5018ddcdfd7b966 (diff) | |
download | u-boot-3865a7ec9523122c4932d8e8d4b406d60884e8ae.zip u-boot-3865a7ec9523122c4932d8e8d4b406d60884e8ae.tar.gz u-boot-3865a7ec9523122c4932d8e8d4b406d60884e8ae.tar.bz2 |
arm: stm32mp: move the get_otp helper function in bsec
As the get_otp() helper function in bsec are common for all STM32MP family,
move this function in bsec driver
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'arch/arm/mach-stm32mp/include')
-rw-r--r-- | arch/arm/mach-stm32mp/include/mach/sys_proto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-stm32mp/include/mach/sys_proto.h b/arch/arm/mach-stm32mp/include/mach/sys_proto.h index b91f98e..dc98f0c 100644 --- a/arch/arm/mach-stm32mp/include/mach/sys_proto.h +++ b/arch/arm/mach-stm32mp/include/mach/sys_proto.h @@ -52,3 +52,6 @@ int setup_mac_address(void); /* board power management : configure vddcore according OPP */ void board_vddcore_init(u32 voltage_mv); + +/* helper function: read data from OTP */ +u32 get_otp(int index, int shift, int mask); |