diff options
| author | Marek Vasut <marek.vasut+renesas@gmail.com> | 2018-04-08 19:56:46 +0200 |
|---|---|---|
| committer | Marek Vasut <marek.vasut+renesas@gmail.com> | 2018-04-11 23:11:59 +0200 |
| commit | 0e2bd5aa49ae2f71473d5d32714a79e3df1cf730 (patch) | |
| tree | e04cce450e121d5590eb9e0a6cc6b7cc1815468d | |
| parent | e10422f108584269e0a81b16d45d68a22c527878 (diff) | |
| download | u-boot-0e2bd5aa49ae2f71473d5d32714a79e3df1cf730.tar.gz u-boot-0e2bd5aa49ae2f71473d5d32714a79e3df1cf730.tar.xz u-boot-0e2bd5aa49ae2f71473d5d32714a79e3df1cf730.zip | |
mmc: matsushita-common: Export register access functions
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>
| -rw-r--r-- | drivers/mmc/matsushita-common.c | 4 | ||||
| -rw-r--r-- | drivers/mmc/matsushita-common.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/drivers/mmc/matsushita-common.c b/drivers/mmc/matsushita-common.c index b143f5c229..3f538c354e 100644 --- a/drivers/mmc/matsushita-common.c +++ b/drivers/mmc/matsushita-common.c @@ -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) diff --git a/drivers/mmc/matsushita-common.h b/drivers/mmc/matsushita-common.h index b019b72b3e..3be91c310e 100644 --- a/drivers/mmc/matsushita-common.h +++ b/drivers/mmc/matsushita-common.h @@ -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__ */ |
