mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-22 20:58:22 +00:00
mmc: fsl_esdhc: Migrate ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE to Kconfig
The flag for enabling the ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE quirk can be handled easily enough in Kconfig. This lets us remove a function but not obviously correct usage of the IS_ENABLED() macro. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
eeefcacb85
commit
569dceef2e
6 changed files with 7 additions and 16 deletions
|
@ -133,7 +133,6 @@
|
|||
#define CFG_FM_PLAT_CLK_DIV 1
|
||||
#define CFG_SYS_FM1_CLK CFG_FM_PLAT_CLK_DIV
|
||||
#define CFG_SYS_FM_MURAM_SIZE 0x30000
|
||||
#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
|
||||
#define QE_MURAM_SIZE 0x6000UL
|
||||
#define MAX_QE_RISC 1
|
||||
#define QE_NUM_OF_SNUM 28
|
||||
|
@ -146,7 +145,6 @@
|
|||
#define CFG_SYS_FM1_CLK 0
|
||||
#define CFG_QBMAN_CLK_DIV 1
|
||||
#define CFG_SYS_FM_MURAM_SIZE 0x30000
|
||||
#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
|
||||
#define QE_MURAM_SIZE 0x6000UL
|
||||
#define MAX_QE_RISC 1
|
||||
#define QE_NUM_OF_SNUM 28
|
||||
|
@ -165,7 +163,6 @@
|
|||
#define CFG_SYS_PME_CLK CFG_PME_PLAT_CLK_DIV
|
||||
#define CFG_SYS_FM1_CLK 0
|
||||
#define CFG_SYS_FM_MURAM_SIZE 0x28000
|
||||
#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
|
||||
|
||||
#elif defined(CONFIG_ARCH_C29X)
|
||||
#define CFG_SYS_FSL_SEC_IDX_OFFSET 0x20000
|
||||
|
|
|
@ -928,6 +928,12 @@ config ESDHC_DETECT_QUIRK
|
|||
bool "QIXIS-based eSDHC quirk detection"
|
||||
depends on FSL_ESDHC && FSL_QIXIS
|
||||
|
||||
config ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
|
||||
bool
|
||||
depends on FSL_ESDHC || FSL_ESDHC_IMX
|
||||
def_bool y if ARCH_T1024 || ARCH_T1040 || ARCH_T1042 || ARCH_T2080 \
|
||||
|| FSL_ESDHC_IMX
|
||||
|
||||
config FSL_ESDHC_IMX
|
||||
bool "Freescale/NXP i.MX eSDHC controller support"
|
||||
help
|
||||
|
|
|
@ -40,12 +40,6 @@
|
|||
#include <linux/iopoll.h>
|
||||
#include <linux/dma-mapping.h>
|
||||
|
||||
#ifndef ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
|
||||
#ifdef CONFIG_FSL_USDHC
|
||||
#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#define SDHCI_IRQ_EN_BITS (IRQSTATEN_CC | IRQSTATEN_TC | \
|
||||
|
@ -376,7 +370,7 @@ static int esdhc_setup_data(struct fsl_esdhc_priv *priv, struct mmc *mmc,
|
|||
(timeout == 4 || timeout == 8 || timeout == 12))
|
||||
timeout++;
|
||||
|
||||
if (IS_ENABLED(ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE))
|
||||
if (IS_ENABLED(CONFIG_ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE))
|
||||
timeout = 0xE;
|
||||
|
||||
esdhc_clrsetbits32(®s->sysctl, SYSCTL_TIMEOUT_MASK, timeout << 16);
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
|
||||
#include <asm/arch/imx-regs.h>
|
||||
|
||||
#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE 1
|
||||
|
||||
#define PHYS_SDRAM 0x80000000
|
||||
#define PHYS_SDRAM_SIZE (32 * 1024 * 1024)
|
||||
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
|
||||
#include <asm/arch/imx-regs.h>
|
||||
|
||||
#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE 1
|
||||
|
||||
#define PHYS_SDRAM 0x80000000
|
||||
#define PHYS_SDRAM_SIZE (32 * 1024 * 1024)
|
||||
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
#include <asm/arch/imx-regs.h>
|
||||
|
||||
#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE 1
|
||||
|
||||
/*
|
||||
* Configuration of the external SDRAM memory
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue