mmc: sdhci-xenon: Add support to PHYs of Marvell Xenon SDHC
authorHu Ziji <huziji@marvell.com>
Thu, 30 Mar 2017 15:23:00 +0000 (17:23 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:42:16 +0000 (21:42 +0200)
commit06c8b667ff5b984ac3aa901c4928e4a427987a56
treede93db86ea84f24cf6608edd68bf8ee146d92cc4
parent3a3748dba881ed23ba8465dd6d66a267af89cdc0
mmc: sdhci-xenon: Add support to PHYs of Marvell Xenon SDHC

Marvell Xenon eMMC/SD/SDIO Host Controller contains PHY.
Multiple types of PHYs are supported.

Add support to multiple types of PHYs init and configuration.
Add register definitions of PHYs.

Xenon PHY cannot fit in kernel common PHY framework.
Xenon SDHC PHY register is a part of Xenon SDHC register set.
Besides, MMC initialization has to call several PHY functions to
complete timing setting.
Those PHY setting functions have to access SDHC registers and know
current MMC setting, such as bus width, clock frequency and
speed mode.
As a result, implement Xenon PHY in MMC host directory.

Signed-off-by: Hu Ziji <huziji@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/Makefile
drivers/mmc/host/sdhci-xenon-phy.c [new file with mode: 0644]
drivers/mmc/host/sdhci-xenon.c
drivers/mmc/host/sdhci-xenon.h