mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 12:46:14 +02:00
mmc: dw_mmc: Move struct idmac to dw_mmc.c
struct idmac is only used in dw_mmc.c, so move it there from dwmmc.h to avoid cluttering the interface in the header. No functional change. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
parent
4302e65647
commit
96ea89000f
@ -20,6 +20,13 @@
|
||||
|
||||
#define PAGE_SIZE 4096
|
||||
|
||||
struct dwmci_idmac {
|
||||
u32 flags;
|
||||
u32 cnt;
|
||||
u32 addr;
|
||||
u32 next_addr;
|
||||
} __aligned(ARCH_DMA_MINALIGN);
|
||||
|
||||
static int dwmci_wait_reset(struct dwmci_host *host, u32 value)
|
||||
{
|
||||
unsigned long timeout = 1000;
|
||||
|
||||
@ -198,13 +198,6 @@ struct dwmci_host {
|
||||
bool fifo_mode;
|
||||
};
|
||||
|
||||
struct dwmci_idmac {
|
||||
u32 flags;
|
||||
u32 cnt;
|
||||
u32 addr;
|
||||
u32 next_addr;
|
||||
} __aligned(ARCH_DMA_MINALIGN);
|
||||
|
||||
static inline void dwmci_writel(struct dwmci_host *host, int reg, u32 val)
|
||||
{
|
||||
writel(val, host->ioaddr + reg);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user