Skip to content

Commit

Permalink
mx35: add GPIO setup on flea3 board
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Heiko Schocher <[email protected]>
  • Loading branch information
sbabic committed Nov 16, 2016
1 parent 146fff3 commit 322ac5f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions board/CarMediaLab/flea3/flea3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 322ac5f

Please sign in to comment.