summaryrefslogtreecommitdiff
path: root/drivers/st/mmc
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2019-01-07 11:17:24 +0100
committerYann Gautier <yann.gautier@st.com>2019-01-07 11:17:24 +0100
commit6e6ab282f70f233eb426fd93f243d8ca6922d4cc (patch)
treecd5d7e7881887a30525f88184c5bf91c57506208 /drivers/st/mmc
parent9a207532f8216bf83fed0891fed9ed0bc72ca450 (diff)
stm32mp1: do not include platform header files directly in drivers
Instead, only platform_def.h is included. The required files to be included are added in stm32mp1_def.h. Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'drivers/st/mmc')
-rw-r--r--drivers/st/mmc/stm32_sdmmc2.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/st/mmc/stm32_sdmmc2.c b/drivers/st/mmc/stm32_sdmmc2.c
index 787241d5..05f5ae17 100644
--- a/drivers/st/mmc/stm32_sdmmc2.c
+++ b/drivers/st/mmc/stm32_sdmmc2.c
@@ -8,6 +8,10 @@
#include <errno.h>
#include <string.h>
+#include <libfdt.h>
+
+#include <platform_def.h>
+
#include <arch.h>
#include <arch_helpers.h>
#include <common/debug.h>
@@ -19,13 +23,10 @@
#include <drivers/st/stm32mp1_reset.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
#include <dt-bindings/reset/stm32mp1-resets.h>
-#include <libfdt.h>
#include <lib/mmio.h>
#include <lib/utils.h>
#include <plat/common/platform.h>
-#include <stm32mp1_dt.h>
-
/* Registers offsets */
#define SDMMC_POWER 0x00U
#define SDMMC_CLKCR 0x04U