]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: meson-gx: move arch header to local header
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 10 Nov 2020 23:22:09 +0000 (08:22 +0900)
committerNeil Armstrong <narmstrong@baylibre.com>
Thu, 12 Nov 2020 13:31:29 +0000 (14:31 +0100)
Move the asm/arch-meson/sd_emmc.h to a local meson_gx_mmc.h,
remove the useless if/then and fix the meson_gx_mmc.c include.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/mmc/meson_gx_mmc.c
drivers/mmc/meson_gx_mmc.h [moved from arch/arm/include/asm/arch-meson/sd_emmc.h with 97% similarity]

index 719dd1e5e5706132ecd62ac94f1560e43c419926..eedebb317b5fce691f6e580954727bc5e4260a76 100644 (file)
@@ -13,9 +13,9 @@
 #include <mmc.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
-#include <asm/arch/sd_emmc.h>
 #include <linux/delay.h>
 #include <linux/log2.h>
+#include "meson_gx_mmc.h"
 
 static inline void *get_regbase(const struct mmc *mmc)
 {
similarity index 97%
rename from arch/arm/include/asm/arch-meson/sd_emmc.h
rename to drivers/mmc/meson_gx_mmc.h
index 1e9f8cf498b46a9e9fbf165dce41423a988b7a2b..b4544b55628fe3d65e412131b88aed4d10401fe7 100644 (file)
@@ -3,14 +3,11 @@
  * (C) Copyright 2016 Carlo Caione <carlo@caione.org>
  */
 
-#ifndef __SD_EMMC_H__
-#define __SD_EMMC_H__
+#ifndef __MESON_GX_MMC_H__
+#define __MESON_GX_MMC_H__
 
 #include <mmc.h>
-#ifndef __ASSEMBLY__
 #include <linux/bitops.h>
-#endif
-
 
 #define SDIO_PORT_A                    0
 #define SDIO_PORT_B                    1