]> git.sur5r.net Git - u-boot/commitdiff
mmc: matsushita-common: Export register access functions
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 8 Apr 2018 17:56:46 +0000 (19:56 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Wed, 11 Apr 2018 21:11:59 +0000 (23:11 +0200)
Export the matsu_sd_{read,write}l() common register access
functions, so that they can be used by other drivers sharing
the common code.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mmc/matsushita-common.c
drivers/mmc/matsushita-common.h

index b143f5c2296a25cf54f54b57a73609aff9ac88c1..3f538c354e6108bf3324235514552f00dcd19445 100644 (file)
@@ -44,7 +44,7 @@ static void matsu_sd_writew(struct matsu_sd_priv *priv,
        writew(val, priv->regbase + (reg >> 1));
 }
 
-static u32 matsu_sd_readl(struct matsu_sd_priv *priv, unsigned int reg)
+u32 matsu_sd_readl(struct matsu_sd_priv *priv, unsigned int reg)
 {
        u32 val;
 
@@ -61,7 +61,7 @@ static u32 matsu_sd_readl(struct matsu_sd_priv *priv, unsigned int reg)
                return readl(priv->regbase + reg);
 }
 
-static void matsu_sd_writel(struct matsu_sd_priv *priv,
+void matsu_sd_writel(struct matsu_sd_priv *priv,
                               u32 val, unsigned int reg)
 {
        if (priv->caps & MATSU_SD_CAP_64BIT)
index b019b72b3e2c0d7d7870df25593e8ea8dbdd930d..3be91c310e655b13f002b8c539c8f2c9447f1cdb 100644 (file)
@@ -143,4 +143,8 @@ int matsu_sd_get_cd(struct udevice *dev);
 int matsu_sd_bind(struct udevice *dev);
 int matsu_sd_probe(struct udevice *dev, u32 quirks);
 
+u32 matsu_sd_readl(struct matsu_sd_priv *priv, unsigned int reg);
+void matsu_sd_writel(struct matsu_sd_priv *priv,
+                    u32 val, unsigned int reg);
+
 #endif /* __MATSUSHITA_COMMON_H__ */