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>
This commit is contained in:

committed by
Peng Fan

parent
c8cc18b7a7
commit
f5df6aa1e6
@@ -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)
|
||||
|
Reference in New Issue
Block a user