diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-06-10 00:25:29 +0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-07-16 22:24:06 +0200 |
commit | b33433a63fe08c9e723ea15a7c7c7143bf527c6d (patch) | |
tree | ec16d0a8649862b41c26fcc07374350e53077a5d /include/fsl_esdhc.h | |
parent | 93f9dcf9e8b8182e97aeb7965c687176cbd0b933 (diff) | |
download | u-boot-b33433a63fe08c9e723ea15a7c7c7143bf527c6d.tar.gz u-boot-b33433a63fe08c9e723ea15a7c7c7143bf527c6d.tar.bz2 u-boot-b33433a63fe08c9e723ea15a7c7c7143bf527c6d.zip |
fsl_esdhc: Add device tree fixups
This patch implements fdt_fixup_esdhc() function that is used to fixup
the device tree.
The function adds status = "disabled" propery if esdhc pins muxed away,
otherwise it fixups clock-frequency for esdhc nodes.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'include/fsl_esdhc.h')
-rw-r--r-- | include/fsl_esdhc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h index 0a5c5d6268..89b8304d5f 100644 --- a/include/fsl_esdhc.h +++ b/include/fsl_esdhc.h @@ -26,6 +26,8 @@ #ifndef __FSL_ESDHC_H__ #define __FSL_ESDHC_H__ +#include <asm/errno.h> + /* FSL eSDHC-specific constants */ #define SYSCTL 0x0002e02c #define SYSCTL_INITA 0x08000000 @@ -140,6 +142,12 @@ #define ESDHC_HOSTCAPBLT_DMAS 0x00400000 #define ESDHC_HOSTCAPBLT_HSS 0x00200000 +#ifdef CONFIG_FSL_ESDHC int fsl_esdhc_mmc_init(bd_t *bis); +void fdt_fixup_esdhc(void *blob, bd_t *bd); +#else +static inline int fsl_esdhc_mmc_init(bd_t *bis) { return -ENOSYS; } +static inline void fdt_fixup_esdhc(void *blob, bd_t *bd) {} +#endif /* CONFIG_FSL_ESDHC */ #endif /* __FSL_ESDHC_H__ */ |