diff options
author | Stefano Babic <sbabic@denx.de> | 2016-10-17 15:51:34 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-11-16 20:53:55 +0100 |
commit | 322ac5f1d5e564bca95cce7d8410c215f93a0255 (patch) | |
tree | 34d9d003dbde4a6ecc4fd39e091481c7ea4d3f0f /board/CarMediaLab/flea3/flea3.c | |
parent | 146fff347aaf241246a59ce0fe02543499a45147 (diff) | |
download | u-boot-imx-322ac5f1d5e564bca95cce7d8410c215f93a0255.zip u-boot-imx-322ac5f1d5e564bca95cce7d8410c215f93a0255.tar.gz u-boot-imx-322ac5f1d5e564bca95cce7d8410c215f93a0255.tar.bz2 |
mx35: add GPIO setup on flea3 board
Hardware revision "e" of the board introduces
a GPIO to reduce power consumption in stand-by mode.
This must be enable (active low) at the startup
for normal behaviour.
Signed-off-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board/CarMediaLab/flea3/flea3.c')
-rw-r--r-- | board/CarMediaLab/flea3/flea3.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/CarMediaLab/flea3/flea3.c b/board/CarMediaLab/flea3/flea3.c index ca3e44b..3cd4dc9 100644 --- a/board/CarMediaLab/flea3/flea3.c +++ b/board/CarMediaLab/flea3/flea3.c @@ -122,6 +122,8 @@ static void setup_iomux_fec(void) MX35_PAD_FEC_TDATA2__FEC_TDATA_2, MX35_PAD_FEC_RDATA3__FEC_RDATA_3, MX35_PAD_FEC_TDATA3__FEC_TDATA_3, + /* GPIO used to power off ethernet */ + MX35_PAD_STXFS4__GPIO2_31, }; /* setup pins for FEC */ @@ -183,6 +185,11 @@ int board_init(void) /* address of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100; + /* Enable power for ethernet */ + gpio_direction_output(63, 0); + + udelay(2000); + return 0; } |