diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2021-01-14 13:44:31 +1030 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2021-02-01 11:54:47 +0100 |
commit | 0bbcd22556ef203b29e39a6ce1bd7e9523b6032e (patch) | |
tree | c64e100e740fa7462eeb46d9f05d2ed0cb5f02df /drivers/mmc/host/sdhci-of-aspeed.c | |
parent | mmc: sdhci-of-aspeed: Add AST2600 bus clock support (diff) | |
download | linux-0bbcd22556ef203b29e39a6ce1bd7e9523b6032e.tar.gz linux-0bbcd22556ef203b29e39a6ce1bd7e9523b6032e.tar.bz2 linux-0bbcd22556ef203b29e39a6ce1bd7e9523b6032e.zip |
mmc: sdhci-of-aspeed: Add KUnit tests for phase calculations
Converting degrees of phase to logic delays is irritating to test on
hardware, so lets exercise the function using KUnit.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Link: https://lore.kernel.org/r/20210114031433.2388532-5-andrew@aj.id.au
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-of-aspeed.c')
-rw-r--r-- | drivers/mmc/host/sdhci-of-aspeed.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-of-aspeed.c b/drivers/mmc/host/sdhci-of-aspeed.c index 4b30f6a1178e..3b0d381e1215 100644 --- a/drivers/mmc/host/sdhci-of-aspeed.c +++ b/drivers/mmc/host/sdhci-of-aspeed.c @@ -579,6 +579,10 @@ static void __exit aspeed_sdc_exit(void) } module_exit(aspeed_sdc_exit); +#if defined(CONFIG_MMC_SDHCI_OF_ASPEED_TEST) +#include "sdhci-of-aspeed-test.c" +#endif + MODULE_DESCRIPTION("Driver for the ASPEED SD/SDIO/SDHCI Controllers"); MODULE_AUTHOR("Ryan Chen <ryan_chen@aspeedtech.com>"); MODULE_AUTHOR("Andrew Jeffery <andrew@aj.id.au>"); |