Skip to content
Commit 5359cd11 authored by Greg Malysa's avatar Greg Malysa Committed by Jaehoon Chung
Browse files

mmc: Support 32-bit only ADMA on 64-bit platforms



Some arm64 platforms may include SDIO host controllers that
only support 32-bit ADMA. While the Linux kernel detects which
size is supported and adjusts the descriptor size used dynamically,
the previous u-boot implementation statically selected between the
two depending on whether DMA_ADDR_T_64BIT was defined. Because the
static selection is already in place and effective for most platforms,
this patch logically separates "64 bit addresses are used for DMA on
this platform" and "64 bit addresses are used by the SDIO host
controller for ADMA" in order to support the small number of platforms
where these statements are not equivalent.

Using 32 bits is opt-in and existing 64 bit platforms should be
unaffected by this change.

Co-developed-by: default avatarNathan Barrett-Morrison <nathan.morrison@timesys.com>
Signed-off-by: default avatarNathan Barrett-Morrison <nathan.morrison@timesys.com>
Co-developed-by: default avatarIan Roberts <ian.roberts@timesys.com>
Signed-off-by: default avatarIan Roberts <ian.roberts@timesys.com>
Signed-off-by: default avatarGreg Malysa <greg.malysa@timesys.com>
Reviewed-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
parent 5f071449
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment