mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
arm, mx27: add support for SDHC1 pin init
Signed-off-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
3bb6b037e8
commit
1e65c2beb5
2 changed files with 18 additions and 0 deletions
|
@ -316,6 +316,23 @@ void mx27_fec_init_pins(void)
|
||||||
#endif /* CONFIG_FEC_MXC */
|
#endif /* CONFIG_FEC_MXC */
|
||||||
|
|
||||||
#ifdef CONFIG_MXC_MMC
|
#ifdef CONFIG_MXC_MMC
|
||||||
|
void mx27_sd1_init_pins(void)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
unsigned int mode[] = {
|
||||||
|
PE18_PF_SD1_D0,
|
||||||
|
PE19_PF_SD1_D1,
|
||||||
|
PE20_PF_SD1_D2,
|
||||||
|
PE21_PF_SD1_D3,
|
||||||
|
PE22_PF_SD1_CMD,
|
||||||
|
PE23_PF_SD1_CLK,
|
||||||
|
};
|
||||||
|
|
||||||
|
for (i = 0; i < ARRAY_SIZE(mode); i++)
|
||||||
|
imx_gpio_mode(mode[i]);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
void mx27_sd2_init_pins(void)
|
void mx27_sd2_init_pins(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -37,6 +37,7 @@ extern void mx27_fec_init_pins(void);
|
||||||
#endif /* CONFIG_FEC_MXC */
|
#endif /* CONFIG_FEC_MXC */
|
||||||
|
|
||||||
#ifdef CONFIG_MXC_MMC
|
#ifdef CONFIG_MXC_MMC
|
||||||
|
extern void mx27_sd1_init_pins(void);
|
||||||
extern void mx27_sd2_init_pins(void);
|
extern void mx27_sd2_init_pins(void);
|
||||||
#endif /* CONFIG_MXC_MMC */
|
#endif /* CONFIG_MXC_MMC */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue