stm32mp1: split code between common and private parts
authorYann Gautier <yann.gautier@st.com>
Thu, 14 Feb 2019 10:13:25 +0000 (11:13 +0100)
committerYann Gautier <yann.gautier@st.com>
Thu, 14 Feb 2019 10:20:23 +0000 (11:20 +0100)
commitc9d75b3cf98c7f2a78d3f916bcf9e2b3a2c55967
tree62db3f4e48df5caece7fd78dded5774ca3727517
parenteaea119ea12d20837d3ada880621ac0a895f98eb
stm32mp1: split code between common and private parts

Some parts of code could be shared with platform derivatives,
or new platforms.
A new folder plat/st/common is created to put common parts.

stm32mp_common.h is a common API aggregate.

Remove some casts where applicable.
Fix some types where applicable.
Remove also some platform includes that are already in stm32mp1_def.h.

Change-Id: I46d763c8d9e15732d1ee7383207fd58206d7f583
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
19 files changed:
drivers/st/gpio/stm32_gpio.c
plat/st/common/bl2_io_storage.c [new file with mode: 0644]
plat/st/common/include/stm32mp_common.h [new file with mode: 0644]
plat/st/common/include/stm32mp_dt.h [new file with mode: 0644]
plat/st/common/stm32mp_common.c [new file with mode: 0644]
plat/st/common/stm32mp_dt.c [new file with mode: 0644]
plat/st/stm32mp1/bl2_io_storage.c [deleted file]
plat/st/stm32mp1/bl2_plat_setup.c
plat/st/stm32mp1/include/stm32mp1_dt.h [deleted file]
plat/st/stm32mp1/include/stm32mp1_private.h
plat/st/stm32mp1/platform.mk
plat/st/stm32mp1/sp_min/sp_min_setup.c
plat/st/stm32mp1/stm32mp1_common.c [deleted file]
plat/st/stm32mp1/stm32mp1_def.h
plat/st/stm32mp1/stm32mp1_dt.c [deleted file]
plat/st/stm32mp1/stm32mp1_gic.c
plat/st/stm32mp1/stm32mp1_pm.c
plat/st/stm32mp1/stm32mp1_private.c [new file with mode: 0644]
plat/st/stm32mp1/stm32mp1_security.c