diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2020-02-14 16:40:22 +0900 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2020-02-20 15:09:55 +0800 |
commit | f5df6aa1e64bdde7c26cf349dfd3a773f5c18e26 (patch) | |
tree | 69ac8c05a2c44ecf8d97662ea99f79fd50747c3c /include/sdhci.h | |
parent | c8cc18b7a7e05da529a3365bfa463e5c5c83efe8 (diff) | |
download | u-boot-f5df6aa1e64bdde7c26cf349dfd3a773f5c18e26.tar.gz |
mmc: sdhci: reduce code duplication for aligned buffer
The same code is run for both SDHCI_QUIRK_32BIT_DMA_ADDR and
define(CONFIG_FIXED_SDHCI_ALIGNED_BUFFER).
Unify the code.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'include/sdhci.h')
-rw-r--r-- | include/sdhci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sdhci.h b/include/sdhci.h index 1358218270..7f8feefa45 100644 --- a/include/sdhci.h +++ b/include/sdhci.h @@ -9,6 +9,7 @@ #ifndef __SDHCI_HW_H #define __SDHCI_HW_H +#include <linux/types.h> #include <asm/io.h> #include <mmc.h> #include <asm/gpio.h> @@ -322,6 +323,7 @@ struct sdhci_host { struct mmc_config cfg; void *align_buffer; + bool force_align_buffer; dma_addr_t start_addr; int flags; #define USE_SDMA (0x1 << 0) |